LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices



Reply
 
Search this Thread
Old 03-07-2005, 11:01 AM   #1
cbekannan
LQ Newbie
 
Registered: Dec 2004
Location: Coimbatore
Posts: 23

Rep: Reputation: 15
Post Samba share permission issue


Hi all,

I have a samba network with windows xp client, all settings are working and also it is been in live server status for the past 3 months, suddenly there is requirement of having a folder which should be accessed by 1 group of people as read only and 4 group as read/write, management wants to restrict a one particular group from writing / chaning any files or folder inside that particular folder, I tried the following and set it as 0775 mask and allowed group4 as a default group for that particular folder, also the group1 user will be there in group2 and group1 and 2 users added in group3 and all group 1,2 and 3 users added in group4. In this if any group going upwards create any folder or file inside this particular shared folder, the same group or higher than that can able to create or modify inside the folder created by that particular folder. I can not give 0777 access to this folder because there is a group which I have to have restrict from creating or modifying anything inside of it but readonly.

The smb.conf file sharing configuration details is pasted below.

[downloads]
path = /data/downloads
writeable = yes
create mode = 0665
directory mode = 0775

Please let me know how I can go forward, if there is any solution for this please let me.

Thank You

Kannan B
 
Old 03-09-2005, 06:58 PM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
Check if your distribution supports ACLs - Linux ACLs are similar enough to Windows to be easy to work out, but not all distributions include support for them. If yours does then you can assign different permissions to different groups with the setfacl utility.
 
Old 03-10-2005, 07:09 AM   #3
cbekannan
LQ Newbie
 
Registered: Dec 2004
Location: Coimbatore
Posts: 23

Original Poster
Rep: Reputation: 15
Post

Thanks for your kind reply, could you please explain me with an example to change the ACL of a Folder in linux for a group, let say group1, also I found setfacl utility is available in my RedHat Linux 9 server, but I'm not able to manipulate any options with this command.

Thanks again

Kannan
 
Old 03-10-2005, 08:38 AM   #4
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
You can view any ACLs with the getfacl command (rather than ls -l).

The RH manuals explain using ACLs pretty well, so I'm just going to point you to their site:

http://www.redhat.com/docs/manuals/
 
Old 03-11-2005, 04:52 AM   #5
cbekannan
LQ Newbie
 
Registered: Dec 2004
Location: Coimbatore
Posts: 23

Original Poster
Rep: Reputation: 15
Hi,

Many thanks for your reply, meanwhile I tried some set Group Id option in permission tab of folder properties, it is serve my purpose, for better understanding and future precautionary act for these kind of problem your valid information will be useful.

Thanks a ton

Kannan B
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't get RW permission on a mounted samba share darkangel12613 Linux - Software 6 08-31-2006 08:04 AM
Can't access my linux share through samba. I get permission denied. mlsbraves Linux - Software 1 08-16-2005 08:59 PM
Samba - permission problem on multiple user share timmywo Linux - Software 1 08-06-2005 06:30 PM
Samba Share Write permission Issues Colossus610 Linux - Software 4 08-12-2004 06:20 PM
Samba Share Access Issue gauge73 Linux - Software 0 06-16-2003 11:49 AM


All times are GMT -5. The time now is 06:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration