The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
File Permission KhawHL UNIX for Advanced & Expert Users 2 05-24-2006 02:05 AM
The file permission ust Shell Programming and Scripting 1 05-12-2005 06:01 AM
The file permission ust UNIX for Dummies Questions & Answers 2 05-05-2005 06:18 AM
Log file - permission ajkiruba UNIX for Advanced & Expert Users 6 04-24-2002 09:42 AM
File Permission sanjay92 UNIX for Advanced & Expert Users 6 04-02-2002 04:19 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-02-2007
Registered User
 

Join Date: Feb 2007
Location: india,mumbai
Posts: 70
Question file permission 000

hi all
i was reading some questions related to file permission if file has 000 permission then who can read the file ?

i think no one can read the file.
correct me if i am wrong
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-02-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by zedex View Post
i think no one can read the file.
root can read and write it. It would not surprise me if root could execute it as well.
Reply With Quote
  #3 (permalink)  
Old 12-02-2007
Registered User
 

Join Date: Sep 2007
Posts: 21
File Permission

Yes you are correct. If we make the file permission as 000. No one can Read from/Write into the file. But the owner of the file can change the permission accordingly, so that owner/everyone can read/write the file.
Reply With Quote
  #4 (permalink)  
Old 12-03-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by mvictorvijayan View Post
If we make the file permission as 000. No one can Read from/Write into the file.
root is not restricted

Code:
# echo fred >banana
# chmod 000 banana
# ls -ld banana
----------  1 root  wheel  5 Dec  3 21:22 banana
# cat banana
fred
Reply With Quote
  #5 (permalink)  
Old 12-03-2007
Read Only
 

Join Date: Nov 2007
Posts: 165
root can read/write the file, but can't execute it.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:10 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0