Issue with Permissions
Deleted
|
so set the parent of that main folder to read only.
|
Quote:
Thanks for your answer.Unfortunately if we set the parent of the main folder,the users accessing from samba share (windows) could not read write and modify the folder. |
you need to give more info about: how are the permissions currently set on the directories mentioned, how the samba share configured and how it was mounted. (and other related info...)
|
Deleted
|
this is not nfs at all.
And as I told you you need to change the parent dir of the main dir (in your case it is probably /limit/smb-users). And you need to set it as read only. In that case noone will be able to remove anything from it, including the dir named share. |
The users should not be able to delete the CIFS-shared folder /limit/smb-users/share by means of CIFS access.
Nevertheless you can add additional protection on its parent folder on the Samba server Code:
chown root:root /limit/smb-users Code:
chmod 1777 /limit/smb-users/share |
Thanks for the reply. If the shares are mounted through NFS and if we apply the stickybit on the main share does the linux permissions will overwrite?
|
Why do you delete your earlier posts?? This is a public forum. It offends every reader :(
The chown and chmod set Linux permissions on file level. It does not matter if this is on a local disk or a NFS-mounted NetApp disk. In addition there can be CIFS share permissions defined in smb.conf. If conflicting, in most cases the most restrictive permission wins. |
But there is no CIFS share permissions defined in smb.conf so I would like to apply the permissions from linux. So i just wanted to be sure
|
Sorry I have forgotten your problem description that was in your initial post, and is deleted now.
I thought your problem was about Samba. |
the issue which was posted was applied with rightpermissions same as you suggested.
But we have few more servers and shares where the shares are mounted through Netapp and not have CIFS share. so what if we apply the same permissions on linux server, will it be any problem? |
If
df /limit/smb-users shows that it is NFS from NetApp, then you can still run the chmod and chown commands. At least for the latter you must have root rights on the NFS share, i.e. a root= clause in the NetApp's exports that lists the IP or hostname or a netgroup (that has a list of IPs or hostnames) with the NFS-root rights. Once the permission change on the file system is done, any other servers that mount the same will get the change. |
Thanks for the reply. I found it
|
Resolved
|
All times are GMT -5. The time now is 08:56 AM. |