Sponsor
Like this page 1
Like this page 2
Click Here!
Join & Earn
I am Here!
Huge Money
Earn Money
Earn By Posing
2 cent Per Post
Earn by typing
Click Here!
Search Engine
Promote and earn
User Who get the master Card
Click Here!
Rules for eligible
Ved International
General Rules
Payment proof 1
Happy Moment
Job Discussion
Fantastic Ved
Earn By Posing
I am Here!
Huge Money
Earn Money
Earn By Posing
2 cent Per Post
Earn by typing
Click Here!
Search Engine
Promote and earn
User Who get the master Card
Click Here!
Rules for eligible
Ved International
General Rules
Payment proof 1
Happy Moment
Job Discussion
Fantastic Ved
Earn By Posing
Earn by typing
Click Here!
Search Engine
Promote and earn
User Who get the master Card
Click Here!
Rules for eligible
Ved International
General Rules
Payment proof 1
Happy Moment
Job Discussion
Fantastic Ved
Earn By Posing
Social bookmarking
Bookmark and share the address of Ved International Discussion Board on your social bookmarking website
Top posting users this month
No user |
Most active topic starters
jesus | ||||
blackroseshrestha | ||||
oshen011 | ||||
riship | ||||
black.bitch222 | ||||
awesomeanil | ||||
binusasi | ||||
hacker1187 | ||||
apocalypto!! | ||||
evergreen55555 |
How to delete a write protected file
4 posters
Page 1 of 1
How to delete a write protected file
How to delete a write protected file
"How to delete write protected file under Linux..."
Under Linux (and other Unixsh oses) following criteria should matched before deleting a file:
Criteria # 1
To delete or remove a file you need to be owner of a file. Use ls -l command to verify your ownership:
$ ls -l filename
If you have sufficient rights, you can remove a file. Otherwise, become a superuser to remove a file.
Criteria # 2
In addition, you must have a write access to on a directory that allows you to remove or add new files. Again us ls -l or ls -ld command to get write ownership of directory.
$ ls -ld dirname
If you have sufficient rights, you can remove a file. Otherwise, become a superuser to remove a file. Use chown / chmod commands to setup permission OR run rm command as root user:
# su -
# rm -f file.txt
Criteria # 3
Make sure file is not protected using extended file system 'i' attribute. A file with the 'i' attribute cannot be modified, it cannot be deleted or renamed, no link can be created to this file and no data can be written to the file. Only root can add or remove 'i' attribute. Use lsatter command to verify that file is not write protected using extended 'i' attribute:
$ lsattr file.txt
Output:
----i------------ file.txt
Above output indicates that file.txt has i attribute set on it. Become a superuser and follow the instruction mentioned here to remove a write protected file:
# chattr -i file.txt
# rm -f file.txt
hope this will help you out...
bindaas7- Newbies
- Posts : 21
Join date : 2012-07-27
Age : 31
Re: How to delete a write protected file
Actually i was surfing the net to solve my same problem, and here it is, the solution!! thanks a lot to you as well as this forum!! keep posting more!!
Re: How to delete a write protected file
Oh yes you have solve the main problem of mine and this technique has helped me lot. I like the concept very much. Thank you for sharing this post and solving my problem.
swikritipradhan- Eligible
- Posts : 1110
Join date : 2012-07-31
Age : 30
Location : patan sundhara
Re: How to delete a write protected file
Well this is a new topic for me. I think I must give it a try. I didn't know about that. Well thank you so much for sharing that thread with us in this forum.
sujin007- Eligible
- Posts : 11545
Join date : 2012-07-06
Age : 30
Location : Putalisadak, Kahmandu
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum