LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-24-2014, 10:01 AM   #1
nghoangquang
LQ Newbie
 
Registered: Oct 2014
Posts: 2

Rep: Reputation: Disabled
How do I assign different permission to different group?


If I have three group, A B and C and a directory called Test and I want group A to be able to read/write and execute, group B to only be able to Write and Execute and group C only to be able to read. How would I do this in the command line? Any help is appreciated.
 
Old 10-24-2014, 10:29 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
If this is homework please read the LQ Rules. For your convenience I repeat one here:
Quote:
Do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and searches) and we'll do our best to help. Keep in mind that your instructor might also be an LQ member.
You can have a look at this site and then post your attempt at a command. We will be glad to help you if you have problems.
jdk
 
Old 10-28-2014, 10:04 AM   #3
nghoangquang
LQ Newbie
 
Registered: Oct 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
No this is not a homework question. It is for work but thanks for the information.
 
Old 10-28-2014, 10:28 AM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,413

Rep: Reputation: 2027Reputation: 2027Reputation: 2027Reputation: 2027Reputation: 2027Reputation: 2027Reputation: 2027Reputation: 2027Reputation: 2027Reputation: 2027Reputation: 2027
You can't do this with standard permissions, you'll need to use ACLs.
 
Old 10-29-2014, 02:30 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,326

Rep: Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364
Note also that for a dir, x=search, not execute; that's only for files.

As above, it sounds like you'll need ACLs
 
  


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
how to assign password to a group AbidDhanaiser Linux - Desktop 2 08-28-2013 02:37 PM
Use AD to assign a user to a group? Beandip408 Linux - Security 3 08-16-2011 09:38 PM
lp permission assign to user group syedali Linux - Desktop 0 08-06-2011 03:17 AM
How can we assign group password?? JATA01 Linux - Server 5 11-15-2008 12:47 AM
Assign group by IP waifurchin Linux - General 1 01-29-2003 04:36 PM


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