[Samba] File permissions confusion
James Moe
jimoe at sohnen-moe.com
Mon Apr 11 14:13:10 MDT 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
samba Version 3.5.4-5.3.1-2489-SUSE-SL11.3
I do not understand why the file permissions of mounted shares are
different when the share is viewed locally and when viewed remotely.
When I initially created a share, for instance with
"//sma-nas-01/photos /v cifs
credentials=/home/sma-user4/.smb/.smbpw,uid=jmoe,gid=users" in
</etc/fstab>, a long directory listing (ls -l) show ALL permissions as
"775", regardless of the actual permissions as displayed locally. This
was not good, showing everything as executable.
I then added "file_mode=0664,dir_mode=0775" to the mount options and
got reasonable settings for the permissions. They, however, are not the
true settings. Again samba has masked over reality.
Using "chmod" to alter the file permissions does not work. The action
is simply ignored.
Is there a way to have the actual, real, local permissions shown to
remote hosts?
And to have the ability to change the permissions remotely?
- --
James Moe
moe dot james at sohnen-moe dot com
520.743.3936
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk2jYNYACgkQzTcr8Prq0ZMDbACfRIOQTy0Gt3erz+ZeGiHpjbag
XeIAnA3yvV4RFVx01ZSIkXLKDOiSUV+t
=J5BS
-----END PGP SIGNATURE-----
More information about the samba
mailing list