LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 05-04-2004, 03:05 PM   #1
PaladinCowboy75
LQ Newbie
 
Registered: Oct 2002
Location: DFW, Texas
Distribution: Mandrake 9.2
Posts: 12

Rep: Reputation: 0
Question Group Permissions (m9.2)


I'm working on a school project and have scoured the web for an answer to no avail.

I have already set up and configured a Linux/Windows/Novell Network, now I'm down to ADDING USERS and GROUPS and assigning permissions.

My problem is this: on the Linux Box, I have created some USERS, GROUPS, and a few folders. I need to assign varying levels of permision to the folders for each group.

i.e. group 'Manager' get's full access (easy if I make this group the OWNER)

but, group 'Supervisor' also needs access, but no write
and group 'Employees' needs read rights only, as well as the group 'Temp'.

How can you assign MULTIPLE GROUPS permissions to a single directory???

Last edited by PaladinCowboy75; 05-04-2004 at 03:07 PM.
 
Old 05-04-2004, 03:13 PM   #2
Caeda
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Suse 6.0+, Mandrake 5.0-10.0, Redhat 6.0-9.0, Gentoo 1.2+, Gnoppix, Knoppix, Sabayon, Ubuntu 5.04+
Posts: 1,811

Rep: Reputation: 45
Well. your going to have to set the Manager up as the Root owner... Supervisor goes under the group and gets read and execute.. and Employees and temp go under the "everybody else" catagory with all other people having just read access, which means anyone and everyone.

*Edit*

Then after I said that I had another idea...

Make 2 new groups. Name one... readexec and the other reader or something close to that... Make the directory belong to readexec. And its group owner be reader... Give readexec read and execute privelages, and reader, read privelages... Getting the idea?

Then, just put your users in the appropriate group. readexec for both... read for just read. That way the directories only need the two permissions

Last edited by Caeda; 05-04-2004 at 03:17 PM.
 
Old 05-04-2004, 03:26 PM   #3
PaladinCowboy75
LQ Newbie
 
Registered: Oct 2002
Location: DFW, Texas
Distribution: Mandrake 9.2
Posts: 12

Original Poster
Rep: Reputation: 0
...

What you proposed FIRST is what I've already tried, but I keep getting DENIED ACCESS when logged onto a user that SHOULD have permission to access.

I Made mysefl the USer Owner, then assigned the group 'Manager' as the group, and gave them FULL access. Yet when I'm logged on as a user in the group 'Manager' , they are denied access when trying to create a text file in the directory they were given full access too.

As for your second suggestion, I can't do that becuase this is a class project with a specific GROUP structure.
 
Old 05-04-2004, 04:11 PM   #4
PaladinCowboy75
LQ Newbie
 
Registered: Oct 2002
Location: DFW, Texas
Distribution: Mandrake 9.2
Posts: 12

Original Poster
Rep: Reputation: 0
...

I think I may have solved my problem.

I found information on using ACL's and the 'setacl' command.

I haven't been able to test it yet, so if anyone has any other ideas , please feel free to post them here in case 'setacl' does not work for me.
 
Old 05-06-2004, 08:20 AM   #5
PaladinCowboy75
LQ Newbie
 
Registered: Oct 2002
Location: DFW, Texas
Distribution: Mandrake 9.2
Posts: 12

Original Poster
Rep: Reputation: 0
.

Looks like 'setfacl' command will work..... I had to install the acl and attr related rpms. Whan I ran some tests commands it showed them working... but when I ran the commands without the --test switch, I got an error.

I read that my Kernel has those functions disabled (2.4)... so I'm hoping after I patch the kernel to 2.6 that they will work.
 
  


Reply



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
group permissions nanjil SUSE / openSUSE 4 10-20-2005 01:51 PM
regarding group permissions zameer_india Linux - Networking 1 02-11-2005 04:07 AM
group permissions mikeghet Linux - Newbie 1 12-06-2004 03:49 AM
Group Permissions mallikarjun Linux - Security 4 07-03-2002 04:37 PM
group permissions once Linux - Newbie 5 06-02-2002 03:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 09:07 AM.

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
Open Source Consulting | Domain Registration