[linux-cifs-client] mount.cifs - everything is owned by root (when mounting 2003 shares)

Steven French sfrench at us.ibm.com
Wed Mar 8 17:01:06 GMT 2006






There is no code in cifs (or any Linux kernel filesystem as far as I know)
to map "rich ACLs" (such as Windows/CIFS ACLs or NFS version 4 ACL) to mode
bits (Unix permissions) yet.   That (mapping CIFS ACLs to and from mode
bits) is something that has been started in the current CIFS code but not
completed (anyone who wants to help with that would be welcome ... it is an
interesting problem with some precedent in Samba code and also in a draft
RFC that Bruce Fields of the NFSv4 community has been working).

With mount option "sfu" the cifs client will map the obscure Linux mode
bits above 0777 to extended attributes but the bits 0777 and below still
are taken from the default mode specified at mount ("dir_mode" and
"file_mode") at least until the ACL mapping code is complete.

Mounts to servers supporting the Unix extensions (such as Samba) do not
have this problem as the protocol supports reporting the mode bits and
actual uid/gid of the owner.




Steve French
Senior Software Engineer
Linux Technology Center - IBM Austin
phone: 512-838-2294
email: sfrench at-sign us dot ibm dot com

linux-cifs-client-bounces+sfrench=us.ibm.com at lists.samba.org wrote on
03/08/2006 04:43:05 AM:

> I sent a similar message to samba at lists..., but then I found that this
> group is more appropriate.
>
>
> I just tried to mount Windows 2003 share.
>
> I used the following command to mount it:
>
> mount.cifs //10.1.1.1/G$ /mnt/2003/ -o user=admin,domain=MYDOMAIN
>
> The mount is fine, I can read the files.
>
> However, each and every file is owned by root, which is not true.
>
> Moreover, each and every file and folder has the same permissions, which
> is also not true.
>
> I can change the owners and permissions, but they are not reflected on
> Windows 2003, only Linux sees it.
> If I umount the share and mount it again, all ownership/permission
> changes I made are lost.
>
>
> getent passwd returns all Windows users correctly.
>
> I'm using winbind from Samba 3.0.20.
>
> mount.cifs version is 1.9.
>
> kernel version is 2.6.12.
>
> Where should I look to solve the issue?
>
>
> --
> Tomasz Chmielewski
> http://wpkg.org
> _______________________________________________
> linux-cifs-client mailing list
> linux-cifs-client at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux-cifs-client
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the linux-cifs-client mailing list