Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


Search this Thread
Old 08-06-2012, 01:32 AM   #1
LQ Newbie
Registered: Aug 2012
Posts: 2

Rep: Reputation: Disabled
How to give access to user only home directory through ssh?


Create user and add the user into rbash.

cat /etc/passwd

Old 08-06-2012, 09:51 AM   #2
Senior Member
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 3,422

Rep: Reputation: 1239Reputation: 1239Reputation: 1239Reputation: 1239Reputation: 1239Reputation: 1239Reputation: 1239Reputation: 1239Reputation: 1239
Impossible. The user MUST have access to at least a few directories/files/devices outside of their home directory or they can't log in. For example, you want them to run /bin/rbash, but if they can't see anything outside of /home/jeeva, then how could they?

The simplest way to restrict them to ONLY those directories/devices/files that they need is to set up a chroot jail.
1 members found this post helpful.


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
Lockdown User to Home Directory with SSH problem manutdfan1988 Linux - Networking 8 01-29-2013 04:36 PM
How do I prevent an ssh user from viewing anything but his home directory? SentralOrigin Linux - Security 4 12-20-2011 11:04 AM
Unable to access home directory of AD user after logging in via SSH with Samba transient Linux - Software 1 08-24-2011 01:01 PM
SSH and User Home Directory htabesh Linux - Security 3 10-29-2008 09:13 AM
Locking SSH user to home directory. paroxsitic Linux - Software 2 04-03-2007 06:50 PM

All times are GMT -5. The time now is 06:27 AM.

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