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 - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-20-2011, 07:50 AM   #1
rakeshkumar.techie
LQ Newbie
 
Registered: Jul 2009
Posts: 2

Rep: Reputation: 0
How can we set permission type on a file to a particular user in a group ?


hi

i want to set permission type "write" on a file to a particular user in a group of users ( not all users in that group).

chown is changing a user to root , but i want to set say permission of "write" only to a user 1 in group staff which contains 10 users 1 , user 2 ...user 10.
 
Old 01-20-2011, 07:53 AM   #2
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 624

Rep: Reputation: 64
Quote:
Originally Posted by rakeshkumar.techie View Post
hi

i want to set permission type "write" on a file to a particular user in a group of users ( not all users in that group).

chown is changing a user to root , but i want to set say permission of "write" only to a user 1 in group staff which contains 10 users 1 , user 2 ...user 10.
You can use ACL in order to do that.

Check the ACL part of the link below,
http://www.yolinux.com/TUTORIALS/Lin...ingGroups.html
 
1 members found this post helpful.
Old 01-20-2011, 09:20 AM   #3
rakeshkumar.techie
LQ Newbie
 
Registered: Jul 2009
Posts: 2

Original Poster
Rep: Reputation: 0
i know about the permissions and also aware of chown.

we can user chown to give make the root permissions but i dont want that.

i want to grant a "execute" to a particular user not group of users. also i dont want to give him all the permissions only "excecute" permission to user X in group 1.
 
Old 01-20-2011, 09:30 AM   #4
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
For this purpose I create a separate group for each user. Because setfacl isn't standard and I just don't wanna mess with it.
1 user - 1 group; and all the permissions for this user and his group.

Last edited by Mr. Alex; 01-20-2011 at 09:31 AM.
 
  


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
User & group permission confusion A32 Linux - Newbie 12 08-31-2014 07:46 PM
can i give directory permission to a group and not specific user? SamuraiCoder Linux - Newbie 5 05-26-2010 04:23 PM
SGID fails to set w permission for the group eantoranz Linux - Security 3 02-01-2008 06:15 AM
smb permission for (sub)user group mweil Linux - Networking 0 07-23-2004 07:59 AM
How to view set-user-ID and set-group-ID Xris718 Linux - General 7 01-10-2004 01:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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