LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-21-2011, 07:52 AM   #1
Praveen1589
LQ Newbie
 
Registered: Oct 2011
Posts: 2

Rep: Reputation: Disabled
Restriction for file deletion(s)-Mod corrected title(was Urgent)


Hi,
I am new to linux. Is it possible to restrict the rm command by setting a password for the root user?? i.e deleting a dir/file using a rm command must be done only after entering the password,, is it possible? Please help me

Any help would be appreciated.

Regards,
Praveen
 
Old 10-21-2011, 08:06 AM   #2
teebones
Member
 
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 502

Rep: Reputation: 56
what distribution?
 
Old 10-21-2011, 08:57 AM   #3
Praveen1589
LQ Newbie
 
Registered: Oct 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
sry wat distribution means what does it mean? u mean which platform?
 
Old 10-21-2011, 09:18 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,603
Blog Entries: 25

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
Moved: This thread is more suitable in <Linux-Newbie> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 10-21-2011, 09:30 AM   #5
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Quote:
Originally Posted by Praveen1589 View Post
I am new to linux. Is it possible to restrict the rm command by setting a password for the root user?? i.e deleting a dir/file using a rm command must be done only after entering the password,, is it possible? Please help me
I think that a better solution would be to not give anyone but root permission to run the rm executeable in the first place.

Code:
chmod 700 /bin/rm
But note that taking away rm will not prevent users from being able to delete files. They could write a program that does it, or use other programs that can delete files.

Quote:
Originally Posted by Praveen1589 View Post
sry wat distribution means what does it mean? u mean which platform?
This is really something you should know before using Linux.

https://secure.wikimedia.org/wikiped...x_distribution
 
1 members found this post helpful.
Old 10-21-2011, 10:29 AM   #6
jonkiribati
LQ Newbie
 
Registered: Sep 2011
Posts: 23

Rep: Reputation: Disabled
You've to play with the file's rights and the user owner and group owner.
 
  


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
detect file deletion on an operating system and trace the file history or activity? lovsis Linux - Security 2 10-19-2010 09:52 AM
Ban posts with 'Urgent', 'Help' as sole title. SkinnerC LQ Suggestions & Feedback 15 12-04-2008 10:46 AM
Multiple file deletion zeromaster Linux - Newbie 2 05-03-2008 01:08 PM
File Deletion mhkhalqani Linux - General 1 10-12-2005 04:08 AM


All times are GMT -5. The time now is 05:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration