LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-24-2004, 02:41 AM   #1
nyy
LQ Newbie
 
Registered: Aug 2004
Posts: 3

Rep: Reputation: 0
How to set user's root directory in SSH?


I created the user for ssh access.
I want this user to only be accessed to his/her home directory.

I did set /etc/passwd like:

ftp_user:x:111:111::/home/user/public_html/./:/bin/bash

But no luck.

Any advise?

Thanks,
 
Old 08-24-2004, 03:45 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
you'll want to use a chroot jail to only let them see their own directory. check the manpage and howto's for chroot.
 
Old 08-24-2004, 07:07 AM   #3
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
And try here: http://chrootssh.sourceforge.net/index.php

Enjoy!
--- Cerbere

[edit] And Welcome to LQ.org! [/edit]

Last edited by Cerbere; 08-24-2004 at 07:08 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Not able to go to other user's home directory biswajit_dey Linux - Software 6 07-21-2005 09:14 AM
Changing user's home directory? HOW barton Debian 10 04-04-2005 03:27 AM
unable to set a site root directory in apache wendallsan Linux - Software 2 09-25-2003 06:50 PM
Non-root users can log in to SSH but not read Home Directory? Bizanshee Linux - Software 1 09-18-2002 08:01 PM
how to change a user's Home directory n1wil Linux - General 8 08-24-2002 04:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration