LinuxQuestions.org
Visit Jeremy's Blog.
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, 08: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, 08:53 AM   #2
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 616

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, 10: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, 10: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 10:31 AM.
 
  


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


All times are GMT -5. The time now is 04:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration