LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 06: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, 07: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, 07: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, 08:18 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
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, 08:30 AM   #5
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
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, 09: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



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 08:52 AM
Ban posts with 'Urgent', 'Help' as sole title. SkinnerC LQ Suggestions & Feedback 15 12-04-2008 09:46 AM
Multiple file deletion zeromaster Linux - Newbie 2 05-03-2008 12:08 PM
File Deletion mhkhalqani Linux - General 1 10-12-2005 03:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:45 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