We help IT Professionals succeed at work.
Get Started

How to Jail/chroot AD-integrated users on Ubuntu 12.04

Last Modified: 2015-04-24
I am in the process of replacing an FTP server with a more secure alternative.  What I would like to do is to use a Linux server running OpenSSH to secure the connections.  This works great out of the box but I would like to both secure and simplify the experience for the end-users by locking them into their home directories when they log in. I have the AD integration part in place and working just fine.  What I need next is to chroot or jail those accounts into their home directories.  I can't figure out how to set home dirs for AD users since they don't have entries in the passwd file.  As it stands they are dumped at the server's root when they login so they see everything even though a lot of it is unreadable.  What I want is something that looks like an FTP connection.  Help would be appreciated

I used this as the guide for setting up a chrooted directory for Linux users:



Watch Question
Top Expert 2015
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE