This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 01/06/2010 09:22 PM, Raman Gupta wrote:> permissions, do you?I have an smbfs mount (served by samba 3.4.2) in noacl mode on cygwin 1.7.1-1:
//smserver/smshare on /mnt/shar type smbfs (binary,notexec,noacl,user)
Here is the directory as seen on the unix server directly:
root@smserver foo]# ls -ald bar dr-xr-sr-x. 2 root agroup 4096 2007-04-21 23:23 bar
As you can see, the directory bar is not writable.
However, here is what cygwin in noacl mode sees:
Raman Gupta@client /mnt/shar/foo $ ls -ald bar drwxr-xr-x 1 Raman Gupta None 0 2007-04-21 23:23 bar
The mode shown is 755 rather than 555, and indeed cygwin does not have write access to this directory:
Raman Gupta@client /mnt/shar/foo/bar $ touch baz touch: cannot touch `baz': Permission denied
Shouldn't cygwin therefore read the permissions as 555?
In acl mode, cygwin does correctly show these directory permissions as 555.
Note that read-only *files* are correctly displayed by cygwin/noacl as 444.
Well, you've told Cygwin that it shouldn't consult the file system for permissions. So you see is what Cygwin defaults to in these situations. If you ask Cygwin to tell you the permissions on something in a file system where you also told it not to check the permissions, you don't expect to see the actual correct
root@smserver foo]# ls -ald bar baz dr-xr-sr-x. 2 root agroup 4096 2007-04-21 23:23 bar drwxrwsr-x. 2 root agroup 4096 2007-04-21 23:23 baz
Raman Gupta@client /mnt/shar/foo $ attrib bar R \\smserver\smshare\foo\bar
Raman Gupta@client /mnt/shar/foo $ attrib baz \\smserver\smshare\foo\baz
Raman Gupta@client /mnt/shar/foo $ ls -ald bar baz drwxr-xr-x 1 Raman Gupta None 0 2007-04-21 23:23 bar drwxr-xr-x 1 Raman Gupta None 0 2007-04-21 23:23 baz
Cheers, Raman
-- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |