LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 04-24-2004, 01:25 AM   #1
reddog64
Member
 
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...

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

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

usr/games/cs1/hlds_l/#
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?

-Aaron
 
Old 04-24-2004, 10:34 AM   #3
jeffreybluml
Member
 
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...
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:58 AM.

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
Open Source Consulting | Domain Registration