LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 04-01-2008, 04:11 PM   #1
chacaln
LQ Newbie
 
Registered: Apr 2008
Location: Santiago, chile
Posts: 8

Rep: Reputation: 0
group/users...


Hi all ...

well, i have a huge problem... i hope you can help me...

here is the backgrounds..

1.- i have a user N and he has a file system F.
2.- i have many users who lets its own files on file system F.
3.- i need that each user's file can be read only for its onwer and the user N, no one else... and that the problem...

i have created each user with its own group ..... and then i added

each user to the user's N group ... but it didn't work...


i hope if you can help me ..

Thanx...!!!
 
Old 04-01-2008, 04:52 PM   #2
beadyallen
Member
 
Registered: Mar 2008
Location: UK
Distribution: Fedora, Gentoo
Posts: 209

Rep: Reputation: 36
If I understand you correctly, you've done it the wrong way round. You need to add user N to each of the user's groups, not the way you've done it (which was adding each user to group N).

However, even this isn't ideal, since it gives N access to most of the other files created by any other users, (unless you have some sort of clever umask settings). Plus it gets unwieldy if there's lots of users. A better way to do it would be with POSIX ACLs. Have a look here. It's old (FC2), but still a good introduction to ACLs in linux.
 
Old 04-01-2008, 05:35 PM   #3
chacaln
LQ Newbie
 
Registered: Apr 2008
Location: Santiago, chile
Posts: 8

Original Poster
Rep: Reputation: 0
Thanx .. a lot !!! ... you understood right!!! i will try it!!!

but i am not brave enough to change the mount setting on production

file systems ..... :-)

but .. it is good to know....


Quote:
Originally Posted by beadyallen View Post
If I understand you correctly, you've done it the wrong way round. You need to add user N to each of the user's groups, not the way you've done it (which was adding each user to group N).

However, even this isn't ideal, since it gives N access to most of the other files created by any other users, (unless you have some sort of clever umask settings). Plus it gets unwieldy if there's lots of users. A better way to do it would be with POSIX ACLs. Have a look here. It's old (FC2), but still a good introduction to ACLs in linux.
 
  


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
I want a group to nice and renice the processes of other users of the same group tim_c Linux - Newbie 1 01-05-2007 05:39 AM
Adding users to a group shipon_97 Linux - Newbie 2 06-04-2006 11:40 AM
/etc/group - the group users empty Artanicus Linux - General 2 02-22-2005 04:25 AM
get users in group hindrik Linux - General 2 08-12-2004 08:05 AM
Users Group datadriven General 2 04-22-2004 01:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:40 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