Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-08-2003, 10:21 PM   #1
LQ Newbie
Registered: Jul 2002
Posts: 10

Rep: Reputation: 0
Quick users/groups question

I have a web box I just reinstalled redhat 9 on. in the /var/www/html folder there are different folders for different clients. Each client has a login (e.g. bob, linda).

I only want bob to be able to access the bob folder and down and linda to be able to access the linda folder and down. However I want my login to be able to all of those folders.

bob and linda also have their own groups. I made a group called htmladmin.

Now if I chmod -R 750 bob only and chgrp -R bob bob and chown -R bob bob, bob should be able to access only his folder and linda won't be able to.

If I add the group bob and linda to the htmladmin group and then make my primary group htmladmin, I should be able to access both of their directories, correct?


Old 12-08-2003, 10:32 PM   #2
Senior Member
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
I think you have to add yourself to the bob and linda group. Primary group is meaningless; you can temporarily change it (in effective sense) with newgrp command.
Old 12-09-2003, 01:18 AM   #3
Registered: Feb 2002
Posts: 322

Rep: Reputation: 30
If you give owners full permission to their files/folders (chown -R <user>) and then make htmladmin the group (chgrp -R <group>) -- make sure your user is a member), then it should all work. If you were to do that, I would do chmod -R 770, which would give the owner full control, and the group (which you belong to), but no one else would be able to view anything.

That's my suggestion.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
users and groups twb2005 Linux From Scratch 2 10-10-2005 01:47 PM
users and groups twb2005 Red Hat 1 10-10-2005 01:47 PM
Users, groups, permissions - specific task question Doctafonk Linux - General 2 04-21-2004 09:05 PM
users and groups krfulton Linux - Security 1 01-05-2004 03:43 AM
Quick Question about Adding Users ?? RyanMc Linux - General 4 12-18-2002 01:05 PM > Forums > Linux Forums > Linux - General

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