LinuxQuestions.org
Help answer threads with 0 replies.
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 06-29-2004, 10:52 AM   #1
wiz1584
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, 03:50 PM   #2
Komakino
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, 04:03 PM   #3
wiz1584
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, 04:25 PM   #4
RockmanExe
Member
 
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

and

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
 
  


Reply


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



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

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