Click to See Complete Forum and Search --> : Need some help please...


wiz1584
06-29-2004, 12:46 PM
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???

happybunny
06-29-2004, 12:50 PM
im not interly sure, but search on the chroot command.

Also consider fixing your post...."please help" doesn't draw to much attention since it violates posting rules.

Moderators will be all over this soon.

wiz1584
06-29-2004, 01:00 PM
:confused: Checked the help section first..

elderdays
06-29-2004, 01:08 PM
Click the Systems tab.
Click on the icon to edit users and groups.
Click module config up at the top.
Change the default Permissions on Home Directories line from 755 to 700.

wiz1584
06-29-2004, 01:19 PM
:( that didn't work...Was still able to change directory to /

wiz1584
06-29-2004, 01:20 PM
It wouldn't be the shell would it???

using bin/bash

ph34r
06-29-2004, 01:21 PM
You want to setup a chroot jail. They will still be able to get to /, but what they see as / could be /shellaccounts/homes in reality.

elderdays
06-29-2004, 01:23 PM
I think you should do this:man chownand this:man chmodThey would have to be able to view the / directory since they probably need to be running commands from /bin or /usr/bin. What exactly are you trying to do with this?

Try this tooinfo coreutils chroot

serz
06-29-2004, 01:26 PM
Locking...

Please read the Community Help Posting Guidelines (http://www.justlinux.com/forum/showthread.php?s=&threadid=91072). Specially regarding thread subjects.