LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-30-2010, 04: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, 04:34 PM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
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



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

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

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