Welcome to the most active Linux Forum on the web.
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 01-22-2006, 07:22 AM   #1
Registered: May 2005
Location: Írebro, Sweden
Distribution: Ubuntu 6.06
Posts: 92

Rep: Reputation: 15
Talking Deny SSH-users to read filesystem, except their homedirs?

Hi, this might be a question that belongs in the Security section, but it can also be n00b-question, but I rather want to be called a n00b in the n00b-forum than in the Security-forum
(But moderator, please move the thread if it placed in the wrong category)

Anyway, I've a server that runs FTP, DC-hub, Apache2+PHP4 etc etc.

All new users I add to the system are allowed to connect to the FTP, and their homedir is a sub-directory in the www-dir. BUT, they're also allowed to connect to the SSH-server, and browse the whole filesystem. The access via SSH is pretty fun when it makes it possible to use nmap and irssi or whatever through SSH.
BUT, I want them to stay in their homedirs.

Is this possible to perform in an easy way? I'm not really familiar with chmod (If it's nessasary).

Thank you!
/Linus Waerner
Old 01-22-2006, 09:29 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 256Reputation: 256Reputation: 256
Keyword you want to search on is chroot.
Old 02-12-2006, 08:44 AM   #3
Registered: May 2005
Location: Írebro, Sweden
Distribution: Ubuntu 6.06
Posts: 92

Original Poster
Rep: Reputation: 15
Omg, sorry for a reaaally late reply from my side

Thanks alot mate

Last edited by Waerner; 02-12-2006 at 08:50 AM.


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
ssh: deny all users, except one hamish Linux - Security 13 09-07-2008 08:58 PM
how to deny ssh for ip range? maginotjr Slackware 11 11-01-2005 08:01 AM
Apache forwarding users to their homedirs ashembers Linux - Newbie 5 06-17-2004 10:16 AM
how to deny all users in vsftp except one? lzyking Linux - Software 7 12-11-2002 11:02 PM
Non-root users can log in to SSH but not read Home Directory? Bizanshee Linux - Software 1 09-18-2002 08:01 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:27 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration