Help answer threads with 0 replies.
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 04-24-2004, 01:25 AM   #1
Registered: Apr 2004
Posts: 34

Rep: Reputation: 15
Creating Users [HELP]

I want to create a user and give them read write execute permissions only for the directory home/usr/games/cs1 and anythgin after that...
I want to be able to lock teh user to this directory so they cant go up...

I've searched google and here, but just get lost..

I thought i had it but i could still go "up" to root and everywhere else..

I need the user to be able to execute a program... but obnly a program in that directory or further in... teh program writes logs... so they have to be able to write logs (in that directory)

Please help...

I'm stuck...

and webmin isnt helping any...

Old 04-24-2004, 02:23 AM   #2
Registered: Apr 2004
Posts: 34

Original Poster
Rep: Reputation: 15
ok i went to teh correct directory first...

and put in "chown -R cs1:cs1 /usr/games/cs1/hlds_l"

i did however create users in webmin called cs1 first...

then i "chmod 700" the directory? does that sound right?

Old 04-24-2004, 10:34 AM   #3
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405

Rep: Reputation: 30
I don't think that'll stop the user form going up, it'll just stop other users from being able to read that path. You would, I think, need to create a new group and user, and make sure that the only group this user belongs to is this new one. Otherwise all the other areas on your drive that have permissions set to something like 75* will let anyone in the group that owns the file read it.

Even after this, however, anything on your system that has permissions with anything other than a 0 as the final digit will allow this user at least read or execute access. Most of the things that are setup like this can and should be left that way, though, and it shouldn't be a problem. I suppose if the directory right above the one you want this user to access is set up not to let other groups see it (last digit is a 0) that may stop the user form entering it and therefore going any further up, lest he has the ability to just type the path into a terminal or address bar.

Man, am I rambling or what!? It's early for me...if I haevn't been clear let me know. If it doesn't work, or if I have mis-spoken, perhaps somebody else will chime in here with a more articulate response...

Good luck...


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
creating new users skvasistha Linux - General 3 11-26-2004 11:02 PM
I'm having trouble creating users royalflush Linux - Newbie 6 08-02-2004 10:31 AM
creating users ergo_sum Linux - Newbie 3 08-13-2003 04:46 PM
Creating Users mrsolo Linux - Software 2 12-10-2002 01:39 AM
Creating users... sancho5 Linux - General 2 08-23-2001 06:20 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:33 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration