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


  Search this Thread
Old 07-21-2003, 09:30 PM   #1
Registered: Jan 2003
Location: norfolk, VA
Distribution: suse 8.2, redhat 8.0
Posts: 60

Rep: Reputation: 15
Question how would i safely lock users to thier home dir?

I have a few questions, the first is how would i safely lock users to there home dir, so that they are not able to roam around the box freely?

My second question is I have added a group called ftpusers, which im am adding the users I only want to allow to sftp in. Ive tried replacing "/bin/bash" with "/sbin/nologin" in the passwd file for that account, but that then doesnt allow them to sftp in? How can I fix this and do it right?

Old 07-21-2003, 11:14 PM   #2
Registered: May 2001
Posts: 61

Rep: Reputation: 15
You will have to give them a valid login shell.

Try this keyword to set the default root.
I use proftp so I'm not sure if it will work for you.

DefaultRoot &nbsp ~

or to set the default root for a single user use:

DefaultRoot /home/guest &nbsp guest

Last edited by cxel91a; 07-21-2003 at 11:35 PM.
Old 07-22-2003, 02:23 AM   #3
LQ Newbie
Registered: Jul 2003
Posts: 1

Rep: Reputation: 0
Thumbs up


Can you please try with the file /etc/security/access.conf and specify the users who are not allowed to login thru console.

Hope this will solve ur prob.


Last edited by bsunil; 07-22-2003 at 02:24 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
Lock user in home dir JJX Linux - General 9 06-28-2011 03:09 PM
lock /home for other users? czon Linux - Newbie 18 08-22-2005 12:08 PM
lock new user into home dir eyewittness Linux - Security 4 06-19-2005 01:33 PM
Need to chroot bash users to thier home directory coloradopaul Linux - Security 1 09-16-2004 11:51 PM
Lock user in their home dir MarleyGPN Linux - Software 1 04-26-2003 06:12 AM

All times are GMT -5. The time now is 09: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