Write permission for group in samba share
1 Attachment(s)
Hi..All,
I want to create samba share for a group with write permission for the group members by which the user can edit other files. For that I created folders with below permission Code:
ls -l /samba/ Code:
ls -l /samba/kumar/ So please help me to enable automatic group write permissions. Here is the smb.conf file details Code:
[Public] |
What's your OS? Do you have SELinux enabled? If you have SELinux enabled what context are your shares?
If you don't know how to answer those questions then you need to run the following commands. OS? Code:
uname -a Code:
getenforce Code:
ls -Z /samba/roopa If you have SELinux installed then you'll want to read the following man page. Code:
man samba_selinux Code:
[global] |
Hl...Thanks for the reply sag47
I am sorry, I forgot to tell about the O/S Code:
uname -a Code:
cat /etc/issue Code:
getenforce Code:
ls -Z /samba/roopa/ Code:
\\ip_address_of_samba_server But if roopa creates files and folders inside kumar folder after logging into samba server, then those files and folders becomes as sambashare group with write permission enabled. But it is not happening from the window PCs. So please help me that how can I fix this problem. |
I guess you have given the umask command from your shell
but in samba you need to mention the umask option in conf file Code:
[Public] |
Hi..Thanks Deeepak,
Code:
create mask = 0775 Now roopa can create files and folders from /samba/kumar folders as well as kumar can create files and folders in /samba/roopa folders while normal users can do it only with /samba/public folders. But still both are unable to edit/create the file/folders which belongs to other even those directory is owned by sambashare group with write permission enabled. For example Code:
ls -l /samba/kumar/ Code:
ls -ld /samba/ Code:
ls -l /samba/ Code:
ls -l /samba/roopa/ But both can edit/create if they login to linux box. Since I don't want to allow them to linux server I have given /usr/sbin/nologin shell. So they can not login to the server but they can create files/folders by accessing shared folders. So please help me what can be done to allow roopa to edit/create file/folder inside /samba/kumar/kumar as well as to kumar to edit/create file/folder inside the /samba/roopa/roopa |
Hi, there is a separate mask for directories.
Code:
create mask = 0775 |
Quote:
as the above says that kumar is the owner and for others there is no permission but for sambshare group you have given write permission. so you can give 0755 or I would say 1755 would be better. Code:
#chmod -R 1750 /samba/kumar and honestly reading all those is confusing me:o so it would be better if you can tell me in brief what type of permission implementation are you looking for?:cool: |
Hi...Thank you sag.
Code:
create mask = 0775 Code:
ls -lR /samba/kumar Code:
ls -lR /samba/roopa/ |
Thanks Deepak,
Code:
#chmod -R 1750 /samba/kumar So I will make one more group and enables the sticky bit permission without write permission to the others of the group. Once again thank you both and very very thanks to linuxquestions.org site. |
All times are GMT -5. The time now is 10:16 PM. |