-----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-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04/11/2011 01:13 PM, James Moe wrote:> 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. > [...] > 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? >Either this is profoundly obvious or very obscure. :-( Can anyone recommend resources that discuss this issue? - -- 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/ iEYEARECAAYFAk2l4OcACgkQzTcr8Prq0ZPawgCgsJqhPWnEJeq2u5b6zGLIgXEH M4YAoIpRx1pC9N0Eagxoy1vInUhR3Amj =4Vzf -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04/11/2011 01:13 PM, James Moe wrote:> 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. > > [...] > 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? >No one?!? - -- 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/ iEYEARECAAYFAk2vB/AACgkQzTcr8Prq0ZN7wwCfcTq0AYxjzHmuyethR+sThwPA yx8AoI6f5XhalQRnMtR8ZkOZpvJ7iss8 =LZng -----END PGP SIGNATURE-----
From: James Moe <jimoe at sohnen-moe.com> Date: Wed, 20 Apr 2011 09:21:04 -0700> > 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. > > > >[...]> > Is there a way to have the actual, real, local permissions shown to > > remote hosts?No, CIFS essentially do not have the semantics of "permission". Because it is natively used to share Windows file system, which does not have the semantics. The permissions of mounted shares are created by client CIFS module internally and vanished when umounted. This is not the limitation of Samba or CIFS module but of CIFS protocol. Use NFS instead. --- TAKAHASHI Motonobu <monyo at samba.gr.jp>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04/20/2011 09:42 AM, TAKAHASHI Motonobu wrote:>>> Is there a way to have the actual, real, local permissions shown to >>> remote hosts? > > No, CIFS essentially do not have the semantics of "permission". > Because it is natively used to share Windows file system, which does > not have the semantics. > > The permissions of mounted shares are created by client CIFS module > internally and vanished when umounted. > > This is not the limitation of Samba or CIFS module but of CIFS > protocol. > > Use NFS instead. >Thank you. - -- 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/ iEYEARECAAYFAk2vr6EACgkQzTcr8Prq0ZOs7wCdHMqTwZcX5JhNrkhe+q0IIlAs 99IAnAxChWslO3rFLUb+0W5xsbocQpjX =fJub -----END PGP SIGNATURE-----