file permission 000 | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


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 !!

file permission 000

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-03-2007
zedex zedex is offline
Registered User
 
Join Date: Feb 2007
Last Activity: 3 June 2014, 8:04 AM EDT
Location: Mumbai, India
Posts: 185
Thanks: 6
Thanked 5 Times in 5 Posts
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
Sponsored Links
    #2  
Old 12-03-2007
porter porter is offline Forum Advisor  
Registered User
 
Join Date: Jan 2007
Last Activity: 8 January 2008, 6:50 PM EST
Posts: 2,965
Thanks: 0
Thanked 5 Times in 5 Posts
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.
Sponsored Links
    #3  
Old 12-03-2007
mvictorvijayan mvictorvijayan is offline
Registered User
 
Join Date: Sep 2007
Last Activity: 13 April 2011, 5:09 PM EDT
Location: Columbia,MD,USA
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
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.
    #4  
Old 12-03-2007
porter porter is offline Forum Advisor  
Registered User
 
Join Date: Jan 2007
Last Activity: 8 January 2008, 6:50 PM EST
Posts: 2,965
Thanks: 0
Thanked 5 Times in 5 Posts
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

Sponsored Links
    #5  
Old 12-03-2007
prowla prowla is offline
Read Only
 
Join Date: Nov 2007
Last Activity: 16 July 2012, 4:02 PM EDT
Posts: 165
Thanks: 0
Thanked 2 Times in 2 Posts
root can read/write the file, but can't execute it.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
File permission paragnehete Ubuntu 4 08-26-2011 02:41 AM
permission on file sourav_ray UNIX for Dummies Questions & Answers 1 10-17-2008 09:20 AM
file permission/acl: 2 users with write access on 1 file... elzalem Security 0 08-28-2008 05:25 AM
The file permission ust UNIX for Dummies Questions & Answers 2 05-05-2005 09:18 AM
Log file - permission ajkiruba UNIX for Advanced & Expert Users 6 04-24-2002 12:42 PM



All times are GMT -4. The time now is 09:49 AM.