LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 09-14-2005, 06:15 AM   #1
raptorman
Member
 
Registered: Jul 2005
Location: Belgium
Distribution: Debian 2.6.13.2
Posts: 38

Rep: Reputation: 15
Disabling commands


Is it possible to disable certain commands like "rm -rf", "deluser"... from being runned in Debian, even when logged in as root?
 
Old 09-14-2005, 07:26 AM   #2
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
I'd say no, unless you're willing to modify the source code of those commands. This should not be too difficult, and after all this is what open source is all about.

Yves.
 
Old 09-14-2005, 10:04 AM   #3
yanik
Member
 
Registered: Oct 2003
Location: Montreal Beach
Distribution: Debian Unstable
Posts: 368

Rep: Reputation: 30
You could always link them to a script that says "Forbidden". But root is root, he could fix it easily. Unless root is a newbie?
 
Old 09-14-2005, 04:58 PM   #4
rednuht
Member
 
Registered: Aug 2005
Posts: 239
Blog Entries: 1

Rep: Reputation: 30
create a superuser + group let the admin use that and limit the superuser to access most stuff except the stuff you want protected.
as noted previously root is root !
 
Old 09-15-2005, 05:12 AM   #5
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
Don't forget that "rm -rf", "rm -fr", "rm -r -f", and "rm -f -r" do the same (and you can add other options), so filtering them will be a pain, though in most cases using getopts can help.

Yves.
 
Old 09-20-2005, 07:57 AM   #6
raptorman
Member
 
Registered: Jul 2005
Location: Belgium
Distribution: Debian 2.6.13.2
Posts: 38

Original Poster
Rep: Reputation: 15
Thanks for the replies. I decided to create an "admin" with only access to the commands he'll need.
 
  


Reply


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
disabling sftp wappy Linux - Networking 1 09-07-2005 03:07 PM
Disabling IRQ #11 keripukki Linux - Hardware 4 09-18-2004 06:54 PM
Disabling DHCP Yohhan Linux - Networking 3 12-21-2002 07:27 PM
Disabling my Mousepad Rotten Deadite Linux - Hardware 1 06-13-2002 07:55 AM
Disabling console commands? Kage Linux - Newbie 4 02-09-2002 01:38 PM


All times are GMT -5. The time now is 04:23 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration