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 06-29-2004, 11:52 AM   #1
LQ Newbie
Registered: Jun 2004
Posts: 2

Rep: Reputation: 0
Need some help please...

Very new to this and need some help...

I'm trying to setup user accounts on my server using Webmin...

Each user I set up should only have access to their folder and any folder they create under theirs when they log into the server using SSH Putty...

They shouldn't be able to change directories out of their own folder( eg. cd / )

How can I do this???
Old 06-29-2004, 04:50 PM   #2
Senior Member
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Why would you want to prevent them CDing out of their own directory? They won't be able to write to any other files or read the contents of anyone else's directory anyway. I don't think it's possible to do what you're asking, unless you were to run chroot and limit them to their own directory, but then they would most likely lose access to any global programs or libraries - not very useful!
Old 06-29-2004, 05:03 PM   #3
LQ Newbie
Registered: Jun 2004
Posts: 2

Original Poster
Rep: Reputation: 0
I know its possible... I rented a game server before and I was limited to only my directory...

Lets say this for example: I want to be able to provide space for individual users (for a website, or a game server)....they should only have access to their folder (eg. /home/user )...They can upload to their folder via FTP and run commands from only their folder....shouldn't be able to access other folders....
Old 06-29-2004, 05:25 PM   #4
Registered: Aug 2003
Distribution: Mandriva, Slackware
Posts: 265

Rep: Reputation: 30
i did something similar at home: let's say i have a folder called 'mp3' which i want to prevent access from other users, except me.
then as root:

chmod 700 mp3


chown rockmanexe mp3

now only my user account 'rockmanexe' (and root of course) can access those files and subdirectories created within. If another user want to access via konqueror or command line, a 'permision denied' message appears
This could only apply to user's home folders tho, i don't know how to prevent access to the entire system folders, but by default users can't modify system files.

Hope this helps


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration