2009/174 VERY SHORT TIMEOUT smbfs mount permissions

James Carlson james.d.carlson at sun.com
Thu Mar 12 10:10:22 PDT 2009


Gordon Ross writes:
> 
> > Also, why should dirperms default to 755 instead of 700?
> 
> They're not.  The default dirperms are derived from whatever
> turns out to be the fileperms setting, plus X bits.  i.e.
> if the user specifies fileperms=640, the default dirperms
> will be 750.  If they don't specify either one, the default
> dirperms will be 700.

I'm guessing the (unchanged) logic is something like:

	dirperms = fileperms;
	if (fileperms & 0600)
		dirperms |= 0100;
	if (fileperms & 0060)
		dirperms |= 0010;
	if (fileperms & 0006)
		dirperms |= 0001;

> Again, that part of the functionality is not changed by
> this proposal.

OK; that sounds good to me.  +1

-- 
James Carlson, Solaris Networking              <james.d.carlson at sun.com>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677



More information about the opensolaris-arc mailing list