Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-10-2004, 04:42 PM   #1
Registered: Dec 2003
Distribution: Debian
Posts: 92

Rep: Reputation: 15
chmod for a group on a certain directory?

Hi all,

there it goes a basic question.

How do I give all permisions of a basic directory only to a group of users

let's say I need to give access to /home/admin to the group @adm

chmod ...
Old 02-10-2004, 05:13 PM   #2
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
First, change ownership of the directory to the group:
chown root.adm /home/admin
Then make sure the adm group members have read and write access to all files in that tree:
chmod -R g+rw /home/admin

Remember, the execute permission (+x) when applied to directories gives access to that directory, but not the files in it.



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
chmod directory help ycamera2mank Linux - Software 3 10-03-2005 11:43 PM
What effect has chmod 222 on a directory? JZL240I-U Linux - Software 11 09-13-2005 05:23 AM
chmod whole directory waynejkruse10 Linux - Software 5 08-31-2005 04:57 PM
did chmod 666 on a directory but it doesn't work r3dhatter Linux - Newbie 6 06-10-2005 10:06 AM
Trouble understanding chmod & group permissions gen-ik Linux - Newbie 3 07-19-2004 01:51 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:04 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration