Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> Chmod Help!
post Mar 13 2004, 12:34 AM
Post #1

RMS is my Hero

Group: Support Specialist
Posts: 862
Joined: 18-February 04
From: Wisconsin
Member No.: 2,404

I have a users directory, with permissions set to 700 (recursivly) so only they can see/edit/execute stuff.

Now I want ONE OTHER USER to be able to have a permission of 7 as well (without these people being in the same group).

Any ideas?

*Points finger at the author above him* They're a witch! Burn them!
Vist my website!
Join me in IRC! Server: Channel: #UnhandledExceptions
Go to the top of the page
+Quote Post
post Mar 13 2004, 07:28 AM
Post #2

Its GNU/

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151

Put that one person in a group by himself .... in my example, I'll use the group xxxx
(or add it to the groups he is already a member of)

fist we make the group xxxx

groupadd xxxx

so user fred is the guy I want to have access to all the directories and files ... fred is already a memeber of fred,users,audio and I want to make him also a member of xxxx ... the command would be:

usermod -G fred,users,audio,xxxx fred

now fred is a member of the xxxx group.
Now we want to change the owner of the directories:

go to the directory that contains all the other directories ... ie if it were home and you wanted all the user directories effected ... go to /home

then issue the command:

chown -R :xxxx *

(that would make the group for each directory xxxx ... the user would stay what it is):

now do this:

chmod -R 770 *

(that makes it so the user and members of the group xxxx have 7 permissions .. all others have 0) ... since each user only has a 7 in his directory .... and xxxx users have all directories, that works ....

Johnny Hughes
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 21st July 2018 - 03:50 PM