LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-05-2014, 08:52 AM   #1
kamran.ayub
Member
 
Registered: Jan 2012
Posts: 72

Rep: Reputation: Disabled
Restricted Shell Centos


Dear All,

I want my users to use restricted shell with allowing specific commands to users as per their role.
I am following
http://www.server-world.info/en/note...ntOS_6&p=rbash

Now I have about 30 users on every machine for which I want to do this task. Can anybody please guide me that too much number of softlinks creation involved in this activity is suitable ?

Or please can anyone suggest a good alternative way to handle this requirement.


Regards,
Kamran Ayub
 
Old 06-05-2014, 08:54 AM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
do everything you need to do for the first user, then take the history of that whole process and turn it into a script to be run on the other machines.
 
Old 06-05-2014, 09:02 AM   #3
kamran.ayub
Member
 
Registered: Jan 2012
Posts: 72

Original Poster
Rep: Reputation: Disabled
Dear szboardstretcher,

Sorry if I am not able to make you understand my concern. My concern is to find that if 30 users have to use ping command so I have to make 30 times softlink with /bin/ping to /home/user/bin/ping. If centos will allow me to create 30 softlinks with a single target file.

Thanks

Regards,
Kamran Ayub
 
Old 06-05-2014, 09:18 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321
centos will allow you to do that.
 
Old 06-05-2014, 10:26 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,689

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by kamran.ayub View Post
Dear szboardstretcher,
Sorry if I am not able to make you understand my concern. My concern is to find that if 30 users have to use ping command so I have to make 30 times softlink with /bin/ping to /home/user/bin/ping. If centos will allow me to create 30 softlinks with a single target file.
No, your concern was fully understood, but it appears you didn't understand the answer. You can easily create that many symlinks to a single file, so as advised, script the process based on your initial setup of one user.
 
  


Reply



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] shell error:cd: restricted shell - can't cd nishanthp82 Linux - Newbie 4 04-04-2012 11:28 AM
[SOLVED] Needed to be $HOME/.bashrc disabled when user shell is 'rbash' (restricted shell) mgumbau Linux - General 2 06-16-2011 06:17 AM
restricted shell sulekha Linux - Security 2 07-09-2008 03:00 PM
Restricted shell Rocket01 Linux - Software 3 01-23-2003 09:37 PM
Restricted Shell johnlee Linux - Security 3 10-29-2001 08:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:49 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration