[linux-cifs-client] Re: How to mount cifs as 777 dir

Steve French smfrench at gmail.com
Sun Jun 10 18:47:06 GMT 2007


Is your server Samba (which therefore would support returning the mode
from the server) or Windows (for which the mode specified on the mount
is used initially for an inode, unless you change the inode's
permission later with chmod).

If your server is Samba and you don't want to use the actual mode on
the client (remember that the server's mode may still affect access
control decisions on the server side) then there are two choices:
1) turn off the Unix Extensions (so Samba will look like e.g. Windows
and not support Unix features like mode) "echo 0 >
/proc/fs/cifs/LinuxExtensionsEnabled"
or
2) disable the enforcement of permission checking on the client (so
mode is shown but is irrelevant on the client" - for this you add the
"noperm" mount option to the mount command (it is sometimes needed if
uids on the client and server do not match and permission checking
would fail on the client)

On 6/10/07, Robby Robertson wrote:
>
> I have to have the dir 777 in order for my upload application to work, but
...
>
> [root at localhost html]# ls -l
> total 8
> drwxr-xr-x 2   33 root    0 Jun  5 12:06 upload
>
> How do I make this a 777 directory?
>
> Thanks,
> Rob Robertson

-- 
Thanks,

Steve


More information about the linux-cifs-client mailing list