LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 07-21-2003, 08:30 PM   #1
f1uke
Member
 
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?

-Jason
 
Old 07-21-2003, 10:14 PM   #2
cxel91a
Member
 
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:

<Global>
DefaultRoot /home/guest &nbsp guest
</Global>


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

Rep: Reputation: 0
Thumbs up

Hi

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.

Regards

Last edited by bsunil; 07-22-2003 at 01:24 AM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lock user in home dir JJX Linux - General 9 06-28-2011 02:09 PM
lock /home for other users? czon Linux - Newbie 18 08-22-2005 11:08 AM
lock new user into home dir eyewittness Linux - Security 4 06-19-2005 12:33 PM
Need to chroot bash users to thier home directory coloradopaul Linux - Security 1 09-16-2004 10:51 PM
Lock user in their home dir MarleyGPN Linux - Software 1 04-26-2003 05:12 AM


All times are GMT -5. The time now is 11:50 PM.

Main Menu
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