LinuxQuestions.org
Help answer threads with 0 replies.
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 12-12-2011, 03:45 AM   #1
takayama
Member
 
Registered: Sep 2009
Posts: 93

Rep: Reputation: 0
Building a locked environment on a Centos machine


Hello
Im looking to build system that lets a user (only one) ssh in. The user should log in to a directory and be locked into the home dir, i will also be looking to remove alot of other stuff so basicly the user only can execute one script.

Any tip? Im guessing some kind of chroot enviorment is the way to go?
 
Old 12-13-2011, 07:35 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Try the AllowUsers and ChrootDirectory options to sshd
 
Old 12-13-2011, 08:38 AM   #3
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi,

you can try restrict bash
or
chroot sshd


good luck
 
Old 12-13-2011, 04:44 PM   #4
takayama
Member
 
Registered: Sep 2009
Posts: 93

Original Poster
Rep: Reputation: 0
This was what i was looking for, thanks
 
  


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
[SOLVED] GNOME panel locked in CentOS 6.0 colucix Linux - Newbie 3 09-28-2011 05:51 PM
Locked out CentOS Putty keleas Linux - Newbie 3 10-26-2010 04:23 AM
How to know if a Linux machine is locked programmatically? logforlinux Linux - Newbie 9 06-22-2009 04:59 AM
Rebooting Locked up Linux Machine? matt80 Linux - General 6 05-19-2004 09:35 AM
machine accounts locked monc Linux - Networking 0 02-12-2004 07:40 AM


All times are GMT -5. The time now is 04:52 AM.

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