Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-30-2010, 04:21 PM   #1
LQ Newbie
Registered: Jul 2010
Posts: 21

Rep: Reputation: 1
Remove Write-Protected File


When I ls -l /etc/passwd,
-rw-r--r-- 1 root root /etc/passwd

When I login as myself, and rm /etc/passwd, it asks:
rm: remove write-protected file '/etc/passwd'?

If I say yes, will it actually delete the passwd file?

Old 07-30-2010, 04:34 PM   #2
Senior Member
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,254

Rep: Reputation: 314Reputation: 314Reputation: 314Reputation: 314
Of course yes, if "myself" is root. Why do you think it will not be removed? You known that this file is neccesary for logins user and services.


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
Need to write a file in delete protected mode shiv.singh Linux - Newbie 7 05-17-2009 12:59 AM
File write protected without chattr??? abefroman Linux - Server 1 12-06-2008 06:12 AM
Cant remove write protected weird file tuxombie Slackware 13 12-07-2004 09:44 AM
remove write-protected file randomtask Linux - Newbie 5 04-22-2004 03:06 AM
Remove write file access for single user? HighLife Linux - Newbie 1 08-08-2003 12:22 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration