If a file has permissions 000, then who can access the file?

Showing Answers 1 - 39 of 39 Answers

Kiran

  • Jul 19th, 2007
 

All types of access are denied. Also, setuid, setgid, sticky bits are cleared

  Was this answer useful?  Yes

shirish

  • Jul 20th, 2007
 

Root can access that file

Later he can change permissions of that file

Owner of that file can access that file too but after chaging permissions.

rachit

  • Jul 23rd, 2007
 

If a file has permissions 000, then only system administrator or super user can access the file.
When the file or directory is created, then initially the default permission creation of ALL FILES AND DIRECTORIES ARE :

PERMISSION OF FILES: 666(~rw-rw-rw-)
PERMISSION OF DIRECTORIES : 777(drwxrwxrwx)

If file has permission 000,
then mathematically it means that 666-000=666 permission means only accessed by super user but will not get execute permissions.
Owner of that file can access that file but after the permissions being changed.

  Was this answer useful?  Yes

raj2munna

  • Dec 14th, 2009
 

When a file or directory is created the default permisions inherited .they are
for files :666
for dir: 777

Actually it is not the file permission .
the "umask" value is subtracted from these default permission.it is set by superuser.
$umask
0022
so,file permission wil be 666-022=644

In our problem the permisions become 000
so the umask value should be 666
666-666=000

The read write exec permissions of the file are 0.so it cant be acceble by any user.
To acces the file ,the owner or superuser should change permission by  using command chmod

chmod a+rwx filename

Keith G.

  • May 21st, 2012
 

If all you want to do is get rid of that file, as I did, just save a known file, like a dummy text file, with that same name and overwrite the existing file. I replaced my errant directory file with a text data file of the same name, it overwrote the previous file, and it had new workable permissions, so I could then delete it. Kind of brute force, but hey, I had to do it.

  Was this answer useful?  Yes

Ashish

  • Jan 8th, 2016
 

If file has 000 permission, root user can read the file but cannot modify until he modifies permission

  Was this answer useful?  Yes

Ankit Saraf

  • Feb 14th, 2016
 

You cannot access the file with 000 permissions.

  Was this answer useful?  Yes

Vipin Kumar

  • Aug 18th, 2016
 

Root user can see and modify the file. Below are the steps -
1 > vi filename.txt
2 > change the contents
3 > :wq! (for forcefully edit)

  Was this answer useful?  Yes

shekhar

  • Jul 24th, 2017
 

Only root user

  Was this answer useful?  Yes

Anwar khan

  • Jul 26th, 2017
 

Only root user can access the file. if root user changes the access permisson to access the to user, group or other than only other can r,w,x the file

  Was this answer useful?  Yes

Vema Reddy Konda

  • Sep 7th, 2017
 

Sed -n 1p Filename | cut -d" " -f1

  Was this answer useful?  Yes

Abhishek

  • Oct 24th, 2017
 

This setting keeps the files useless; you cant do anything with it. But the user can still delete this file.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions