Chroot in OpenSSH
bsdphx writes "OpenSSH developers Damien Miller and Markus Friedl have recently added a nifty feature to make life easier for admins. Now you can easily lock an SSH session into a chroot directory, restrict them to a built-in sftp server and apply these settings per user. And it's dead simple to do. If you need to allow semi-trusted people on your computers, then you want this bad!"
Didn't we just read that chroot "jails" are not secure?
The real "Libtards" are the Libertarians!
I want it good. Perhaps you meant badly?
Insightful? Please.
Hooking up a computer to the Internet, by default, is completely insecure.
Yeah, why bother?
No security is foolproof; sure, chroots can be broken. They're also another obstacle in the way of your box being wtfpwned.
(However, in this case you're correct in your usage.)
Now I can finally switch some customers from FTP to SFTP. Thanks for making this hugely useful change!
Anyone know if SFTP logging will be added any time soon? That's the last missing feature i always have to manually patch in.
Dewey, what part of this looks like authorities should be involved?
I'd like to hear more about methods of breaking out of a chroot jail without becoming root during the process.
If it's for-profit but free, you're not the customer -- you're the product (e.g., the Slashdot Beta's "audience").
I was doing openssh(+sftp) with chroot on Solaris 2.6 several years ago. Does this have some Ubuntu GUI to make it easy or something?
This isn't really anything new. This functionality has existed as a patch for a while. It's still nice to see that it's finally being integrated into the main tree, though.
Barbie of Borg - She doesn't just Assimilate, She Accessorizes too!
The purpose of this feature doesn't seem to be to restrict what a shell user can do. Rather, if I read this correctly, it restricts what files a user can access via sftp. Without this feature, a user can sftp in, and then cd to / or any other folder that he has rights too. This chroot feature lets the admin limit the root to, say, his home directory, or some other folder such as a virtual web root or something.
It's only natural that this same chroot feature would be added to sftp.
Does this mean that I can give users shell access, by placing (hard links to) a stripped-down busybox and ash in $HOME/bin, and they won't be able to access anything outside the chroot environment? That could be sweet.
Je fume. Tu fumes. Nous fûmes!
It is cool tech but not the way I would do things. WebDav with ApacheSSL properly installed is lots safer. IMHO there should never be user accounts on a machine, other than root and the person administrating the box.
Having to work for a living is the root of all evil.
is that cron and ls aren't in the chrooted filesystem. That's why they're (supposedly) more secure than just running the daemons "from" /.
HAND.
I really love how vsftpd works.
This is a "Very Secure FTP Daemon" I would love for it to be configured exactly the same, but
the transport protocol would be Sech-file-xfer draft protocol (SFTP)
vssftpd ?
how about just a protocol option in the config of vsftpd...
This looks similar to the features in RSSH http://www.pizzashack.org/rssh/...
I think English speakers are slowly dropping use of "ly" on the ends of adjectives. If so, it's one of those things that will slowly happen more and more, until that's just the way it's done.
It is pitch black. You are likely to be eaten by a grue.
'If so, it's one of those things that will slow happen more and more, until that's just the way it's done.'
Did that sound good to you ? (Ironically, the word 'good' should really have been 'well' in the previous sentence)
Religion is what happens when nature strikes and groupthink goes wrong.
Ironically, the word 'good' should really have been 'well' in the previous sentence
Did it change the meaning to something other than what was intended? Because that's what ironic means.
Making the same mistake yourself while correcting someone else is not ironic. It's just humorously coincidental. Please watch this episode of Futurama for further education.
--
Promoting critical thinking since 1994.
This functionality was already available through an add-in called "scponly" http://sublimation.org/scponly/wiki/index.php/Main_Page. Sounds like it'll be easier to deal with when it's directly implemented in OpenSSH, though.
http://it.slashdot.org/article.pl?sid=08/02/10/2011257 simply, it doesn't, unless you want not to allow users to run anything?
Read and Comment at my BLOG
!!!