Fedora Linux Support Community & Resources Center
Old 20th October 2009, 02:15 PM
lynxus Offline
Registered User
Join Date: Oct 2006
Posts: 216
Question Restrict the running of every app apart from Telnet,Ping ....

Hi guys,

I have a server that people in my company SSH to so they can run pings , telnets etc from it.

I currently create them an account ie:
useradd blaa
passwd blaa

And then let them login.

However they can cd, ls, rm ,mkdir , vi , etc

How can I restrict these users apart from ROOT and maybe myself to only run programs like:


Any thoughts on the easiest way to do this ( Im good at linux, but not great... )


Last edited by lynxus; 20th October 2009 at 02:17 PM.
Reply With Quote
Old 20th October 2009, 08:26 PM
tho.mei Offline
Registered User
Join Date: Jun 2005
Location: St. Gallen Switzerland or Christchurch, New Zealand
Age: 32
Posts: 712
Change the rights of the programs. Remove the execution rights for others.
chmod o-x file file file
You need this to do in the folders /bin , /usr/bin and /usr/local/bin
Tray it like: chmod o-x * and then chmod o-x ls bash rm mkdir vi
cd is a in bash build in command
I use KDE!
Many workstions and few servers running on Fedora or Scientific Linux professionally.
Using LINUX to do some scientific 3D-stuff.
Reply With Quote
Old 21st October 2009, 08:43 AM
lynxus Offline
Registered User
Join Date: Oct 2006
Posts: 216
Thanks ill give that a try.

Reply With Quote
Old 21st October 2009, 04:12 PM
giulix Offline
Join Date: Oct 2005
Location: CE(S)T
Posts: 3,242
Have a look here (librenix.com) as well...
Asus K55VD, i5 3230M - Productivity/Programming (F24)
Asus M32CD - i7-6700, Asus STRIX-GTX970-DC2OC-4GD, 1x8 GB Sk Hynix 2133 MHz DDR4 - Gaming (W10)
HP Proliant DL 360 G5 - Heavy lifting (CentOS 7.2)
Reply With Quote

app, ping, restrict, running, telnet

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Restrict a User from running a command akt Using Fedora 3 29th September 2006 11:53 AM
Simple TELNET on FC3 not running? number5 Servers & Networking 5 28th April 2005 10:30 PM
Can't ping/telnet/ftp fedora box from windows machines pwbray Servers & Networking 1 1st October 2004 05:44 PM

Current GMT-time: 01:07 (Thursday, 24-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat