LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



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

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


Okay...

Create user and add the user into rbash.

like
cat /etc/passwd

jeeva:x:100:101::/home/jeeva:/bin/rbash
 
Old 08-06-2012, 09:51 AM   #2
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 3,212

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
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.
  


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
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:18 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration