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 07-30-2010, 05:21 PM   #1
jaypas
LQ Newbie
 
Registered: Jul 2010
Posts: 21

Rep: Reputation: 1
Remove Write-Protected File


Hi,

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?

Thanks
jaypas
 
Old 07-30-2010, 05:34 PM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,252

Rep: Reputation: 313Reputation: 313Reputation: 313Reputation: 313
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.
 
  


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


All times are GMT -5. The time now is 06:25 AM.

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