Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 19/20 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 20th October 2009, 02:15 PM
lynxus Offline
Registered User
 
Join Date: Oct 2006
Posts: 216
linuxfedorafirefox
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:
telnet
ping
traceroute

?

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


Thanks
L

Last edited by lynxus; 20th October 2009 at 02:17 PM.
Reply With Quote
  #2  
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: 28
Posts: 710
linuxfedorafirefox
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
__________________
tho.mei
I use KDE!
Many workstions and few servers running on Fedora or Scientific Linux professionally.
Using LINUX to do some scientific 3D-stuff.
I'm RHCT
Reply With Quote
  #3  
Old 21st October 2009, 08:43 AM
lynxus Offline
Registered User
 
Join Date: Oct 2006
Posts: 216
windows_vistafirefox
Hi,
Thanks ill give that a try.

TY
Reply With Quote
  #4  
Old 21st October 2009, 04:12 PM
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
linuxfedorafirefox
Have a look here (librenix.com) as well...
Reply With Quote
Reply

Tags
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: 18:52 (Wednesday, 23-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

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