LinuxQuestions.org
Help answer threads with 0 replies.
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, 11: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, 11: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, 11: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, 11:28 AM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,260

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

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


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