Latest LQ Deal: Linux Power User Bundle
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 12-12-2011, 03:45 AM   #1
Registered: Sep 2009
Posts: 97

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

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
Senior Member
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
Try the AllowUsers and ChrootDirectory options to sshd
Old 12-13-2011, 08:38 AM   #3
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

you can try restrict bash
chroot sshd

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

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


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 > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:00 AM.

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