You are not logged in.

#1 2006-10-21 00:06:46

DeepThoughts
Member
From: Norther part of Sweden (Piteå)
Registered: 2006-04-11
Posts: 44
Website

Lock in users? [SOLVED]

Here's the deal: I have a server running (it runs Ubuntu since it's a x586) and I want people to use ssh to gain access to it which is easy, but...

I want to lock the "sftp-users" to their home directory (I'm thinking that I can give them all the same home dir and then bind the partition with the goodies to it which would give everyone the same content) but how do I prevent them from going "lower" than their home dir, ie /home?

Do I make sense? (I'm a bit tired.) I assume that this can be done, but how?

I'm thankfull for every bit of information I can get. smile


Stefan Nitsche
stefan_at_nitsche_dot_se

Offline

#2 2006-10-21 00:21:08

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Lock in users? [SOLVED]

IIRC, you want a tool called "chrootjail" or something like that. I've never used it, just seen it recommended before.

Dusty

Offline

#3 2006-10-21 00:29:30

rawfuzz
Member
Registered: 2006-10-07
Posts: 16

Re: Lock in users? [SOLVED]

You need to create a chrooted environment, ;Ike the Gentoo installation uses. There's plenty of information on Google, like http://www.howtoforge.com/chrooted_ssh_howto_debian & http://www.brandonhutchinson.com/chroot_ssh.html. Though they are kinda old hmm

Offline

#4 2006-10-21 00:30:24

rawfuzz
Member
Registered: 2006-10-07
Posts: 16

Re: Lock in users? [SOLVED]

Offline

#5 2006-10-21 17:54:47

DeepThoughts
Member
From: Norther part of Sweden (Piteå)
Registered: 2006-04-11
Posts: 44
Website

Re: Lock in users? [SOLVED]

Thank you very much everyone. It's now set up and working perfectly. smile


Stefan Nitsche
stefan_at_nitsche_dot_se

Offline

#6 2006-10-22 00:59:51

rawfuzz
Member
Registered: 2006-10-07
Posts: 16

Re: Lock in users? [SOLVED]

you're welcome. Please add [solved] to the topic's title.

Offline

Board footer

Powered by FluxBB