LinuxQuestions.org
Review your favorite Linux distribution.
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 01-28-2005, 04:25 AM   #1
Wynand1
Member
 
Registered: Mar 2004
Posts: 121

Rep: Reputation: 15
Question Permission Problems


This should be quite basic but I don't have a clue how to do this.

If've got a file that I need to give specific permission to various people (ie not one group) to access it , only they my access it, no one else.

What must I Do
 
Old 01-28-2005, 05:33 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

This is one way:

Create a new group with groupadd,
give 'the file' this group,
change group attributes (if needed),
add group to all users that need to access this file.

I.e.:

File in question testfile, example user is johndoe, newgroup xs4all:

$ groupadd xs4all
$ chgrp xs4all testfile
$ chmod 664 testfile
$ usermod -G xs4all,<other>,<other> johndoe


Do read the usermod manpage about the -G flag!!!!

If you are happy with the original group the testfile has, you can skip the first three and only do step 4 (adding the group to the user(s) using usermod).

All actions should be done by root.

Hope this is clear enough, if not. Just say so.
 
  


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
Permission problems britishnemesis Linux - Software 4 02-19-2005 01:45 PM
HD permission problems Sarrin Linux - Software 1 05-13-2004 09:16 PM
sm permission problems Jestrik Linux - Networking 0 03-27-2004 07:00 AM
Problems with Permission mordin Linux - Newbie 4 10-23-2003 01:45 PM
Permission Problems Ekim Gram Linux - Newbie 42 05-12-2003 03:23 PM

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

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