LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices



Reply
 
Search this Thread
Old 04-11-2003, 02:55 PM   #1
jasonweb
LQ Newbie
 
Registered: Apr 2003
Distribution: RH 8.0
Posts: 1

Rep: Reputation: 0
Question SSH lock users to the Home Directory


I have been setting up an SSH server at remote site for my users to be able to login using SFTP and backup their work. This works well but only one problem even after chaning the rights to the folders using CHMOD to 700 the users still can go out of their home diretory and browse the upper levels. It's not so bad because the users can not open the other files or directories but, I would like these to be hidden to them. I had though that if I took the read away from them they would not be able to read the contents which includes the directory.

Any ideas?
 
Old 04-11-2003, 06:47 PM   #2
tyler_durden
Member
 
Registered: May 2001
Posts: 125

Rep: Reputation: 15
in their bash rc script put the command
chroot homedir
 
Old 04-11-2003, 07:20 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,744
Blog Entries: 54

Rep: Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973
Quote:
Originally posted by tyler_durden
in their bash rc script put the command
chroot homedir
Which leaves you with the line "bash: chroot: command not found"...

I'd vote for chrooting ssh users (chrootssh.sourceforge.net) or make 'em use a scp-only shell like scponly (sublimation.org) or rssh (pizzashack.org).
 
  


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
lock /home for other users? czon Linux - Newbie 18 08-22-2005 12:08 PM
lock other users from you /home czon Debian 18 08-19-2005 11:04 PM
VSFTPD - lock user to home directory ohleary Linux - Software 3 11-20-2003 03:04 PM
how would i safely lock users to thier home dir? f1uke Linux - Security 2 07-22-2003 02:23 AM
Non-root users can log in to SSH but not read Home Directory? Bizanshee Linux - Software 1 09-18-2002 08:01 PM


All times are GMT -5. The time now is 01:05 AM.

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