LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-06-2005, 03:36 PM   #1
mudasar
LQ Newbie
 
Registered: Oct 2005
Location: Pakistan
Posts: 5

Rep: Reputation: 0
A. how to permit more then one user to access a file


suppose there r three(more then) user/groups , and i want that first user can only read the file, second can read & write , and third have no access on the required file/folder
like windows right click on folder -> pro ->Secutity
there r multi user and grops that have different permissions
so i will be thank full to u
 
Old 11-06-2005, 04:18 PM   #2
pave
Member
 
Registered: Oct 2004
Posts: 42

Rep: Reputation: 16
I don't think it is possible for more than 3 users. Permissions and ownership of files is an old thing in Unix. For 3 users you can do it like that:

Set permission to 754
Set ownership to user A and group G
Create user A in group G
Create user B in group G
Create user C not in group G

Then A will have read, write and exec right
B will have read and write
and C will have read only.
 
Old 11-20-2005, 02:19 PM   #3
mudasar
LQ Newbie
 
Registered: Oct 2005
Location: Pakistan
Posts: 5

Original Poster
Rep: Reputation: 0
Re: A. how to permit more then one user to access a file

Quote:
Originally posted by mudasar
suppose there r three(more then) user/groups , and i want that first user can only read the file, second can read & write , and third have no access on the required file/folder
like windows right click on folder -> pro ->Secutity
there r multi user and grops that have different permissions
so i will be thank full to u
sol:
by using setfacl,getfacl.................these command r newely used in 2.6 kernal
so use it and enjoy
 
  


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
Permit access to only one website from a station in the internal network rocordial Linux - Security 20 06-06-2004 07:58 PM
user specific file access permission synna Linux - Security 3 01-14-2004 12:53 AM
User and File access controls questions sureshp1980 Linux - General 6 09-26-2003 05:12 PM
Remove write file access for single user? HighLife Linux - Newbie 1 08-08-2003 01:22 AM
MS Access DB File multi User problem with SAMBA hellertech Linux - Networking 0 07-14-2003 06:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:11 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
Open Source Consulting | Domain Registration