Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 3rd April 2012, 14:25
tripialos tripialos is offline
Junior Member
 
Join Date: Apr 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to add restrected user on CentOS

Hi guys

I would like to create a user on Cents with restricted access. The main idea is to create a user where:

1) The user will be able to perform specific commands such as ,ping,iptables, tracert,ifconfig.

2) The user WILL NOT BE ABLE to navigate to root directory or to any other folder except his home directory.

3) The user will be able to connect remotely with ssh.

Can someone please guide me on how to perform the above configuration? I am not asking for a step by step guide but just to know in which way i can add such user and from there i can make some studying. For example i have read from a forum that you can add such a user using rssh, or jailkit.

Will i have to use apps such as rssh or jailkit for such users or there are other ways? In case of the need for such application, which one is the best?

Thanks in advance for your help.
Reply With Quote
Sponsored Links
  #2  
Old 3rd April 2012, 14:58
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,034
Thanks: 826
Thanked 5,383 Times in 4,230 Posts
Default

You will have to setup a jail for the user, a jail is enviroment that contains only the commands and files that the user may access. Such a jail can be created manually (which can be a quite complicated task as you have to add all dependencysof all apps as well) or you use some helper applications like jailkit to craete it.

My recommendation is to create the jail with jailkit:

http://olivier.sessink.nl/jailkit/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 3rd April 2012, 15:07
tripialos tripialos is offline
Junior Member
 
Join Date: Apr 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by till View Post
You will have to setup a jail for the user, a jail is enviroment that contains only the commands and files that the user may access. Such a jail can be created manually (which can be a quite complicated task as you have to add all dependencysof all apps as well) or you use some helper applications like jailkit to craete it.

My recommendation is to create the jail with jailkit:

http://olivier.sessink.nl/jailkit/
Thanks a lot till. Your answear was simple, accurate and complete.
Reply With Quote
Reply

Bookmarks

Tags
jailkit, restricted user

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Squirrel Mail Unknown user or password incorrect. (CentOS 5.6) erocha_resendiz Server Operation 12 26th September 2011 18:12
My Server Is Sending Spam. How Do I Block This? LordJ Server Operation 1 7th July 2011 19:34
SAMBA LDAP issue after completing CentOS 5.x Samba Domain Controller With LDAP tygerlilyjp Server Operation 0 3rd June 2011 17:38
Vhosts...conf not synced to changes crypted General 50 24th April 2010 00:54
ftp issues user cannot connect Centos IzFazt Installation/Configuration 9 23rd July 2009 17:51


All times are GMT +2. The time now is 08:02.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.