Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Create a chrooted SSH/SFTP server on OS X' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create a chrooted SSH/SFTP server on OS X
Authored by: Schwie on Feb 10, '05 10:45:06PM

Thanks to SonyaLynn and mwnovak! I finally got this going on my machine... More advice...

I was trying to set up my sftp chroot so that each user would be confined to their own Home directory and not be able to see other users in the main "Users" directory. To do this, I had to copy three folders from the Users folder "etc", "bin", and "usr" and place them in each user's home directory that I wanted to jail to their home directory (these three folders were made when following the directions on the website recommended by SonyaLynn).

Finally, I had to go into NetInfo and change the "Home" path to "/Users/chet/./Sites" (for a user named chet). This will confine the user "chet" to his own home directory and when he logs in using an sftp client, he'll end up in his Sites folder. He'll be able to back up one directory level to see his entire Home folder, but thats as far as he's going.

Pretty slick! I'm tickled to finally have this working!!!



[ Reply to This | # ]
Create a chrooted SSH/SFTP server on OS X
Authored by: jahama on Feb 17, '05 09:34:14PM

Schwie,

Did you have to move any passwd files around? I got to the test portion and it tells me "Permission Denied" after I put my password in. I tested the password, and it works outside of SSH. I think I'm close if I can just figure this one out.

Thanks!
Jay



[ Reply to This | # ]
Create a chrooted SSH/SFTP server on OS X
Authored by: Schwie on Feb 25, '05 12:05:53AM
Jay,

No, I never had to move any passwd files from what I remember.

If you want a revised list of instructions in better english, I re-wrote the instructions, and these should work for you.

http://www.schwie.com/brad/macosxsftpchroot

Let me know if you hit anymore stumbling blocks. I'll add any recommendations you come up with.

When it works, its really slick! Best of luck to you.

Brad

[ Reply to This | # ]

Create a chrooted SSH/SFTP server on OS X
Authored by: bsiu922 on Mar 15, '05 08:41:41PM

Do I use the latest version of the OpenSSH or use the 3.6.1, i try a few time and still get the connection refused when i do the testing



[ Reply to This | # ]
Create a chrooted SSH/SFTP server on OS X
Authored by: jepler on Nov 19, '07 10:13:29AM
I recently got this to work on OS 10.3.9 after a few hiccups along the way. I posted my experience here (Mac OS X Server 10.3.9 and the Chroots of My Labor) if interested.

---
Jim Epler
San Diego, CA
[link:]http://mytechmusings.blogspot.com

[ Reply to This | # ]