LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-11-2007, 11:57 AM   #1
ramesh_manu
LQ Newbie
 
Registered: Dec 2006
Location: chennai, India
Distribution: redhat & mandriva
Posts: 17

Rep: Reputation: 0
regarding permission


i revoked a write permission form a file.

$ chmod u-w abc

Eventhough i can override the write permission(I can alter and save the file in vi editor using :wq! command). then how linux permission is powerful.
 
Old 01-11-2007, 01:32 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
The "!" is to override and ignore complaints. Since the user owns the file he has permissions on it no matter what. Without write permission explicitly given it will complain about attempts to write. So if you try to rm the file it would prompt you but wouldn't prevent you. If you do rm -f (DANGER in this command) on the file you're telling it don't even prompt me - just do it.

If you really want a user NOT to be able to write to a file you should make someone else the owner and then put him in a group that has access to the file and remove write from group and other.
 
  


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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
How to get the permission? lugia Ubuntu 23 07-25-2006 06:39 PM
permission problem - "You don't have permission to access" radone Linux - General 3 07-24-2006 10:23 AM
no permission... mifan Linux - Networking 9 01-23-2006 09:56 AM
how to have permission? jesusphreak Linux - Newbie 4 01-23-2005 05:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 10:31 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
Open Source Consulting | Domain Registration