Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 14215  / 2 Years ago, mon, october 24, 2022, 1:25:44

I can't chmod 000 for a folder in Ubuntu 13.10


More From » permissions

 Answers
0

There is a manual page for chmod here.



Basically, look at this table on that page:



enter image description here



You can change the tick boxes, so that different people have different permissions.



Owner is the permissions on that file of the owner of the folder - usually the user that has created them - can be changed with chown.



Group is the permissions on that file of the group of the folder - can be changed with the chown or the chgrp commands.



Other is the permissions on that file of everyone who does not fall into the above two categories.



So running chmod 600 /PATH/TO/FILE will change the permissions so that only the owner can read the file, and write to it.



You can also do the same for folders, but by using chmod -R 600 /PATH/TO/FILE so the contents of the folder is the same as well.



The thing is, if you try entering it as 000:



enter image description here



Then no one can access or write to the file, except root, and the owner if they change the permissions again. This can work, but there is not much point to it as:




  • Anyone who is logged in as the owner could remove the file.

  • They could change the permissions back again, either by chmod, or by & Properties

  • If they are not the owner of the file, you do not need to chmod 000 .., just use chmod 600 ..



So if you want to stop people accessing the file, encrypting the file with a password would be the better idea. So to stop people accessing a file or folder, open Archive Manager, and click New - create one that you can encrypt (under Other Options) - I use .7z, as then you can encrypt the file list to. Then type the password you want to use.



enter image description here



Then you can add files:



enter image description here



Then you have an encrypted archive with your files secure inside - though it can still be deleted...


[#28059] Monday, October 24, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
warrdel

Total Points: 356
Total Questions: 103
Total Answers: 118

Location: Bangladesh
Member since Sat, Jan 23, 2021
3 Years ago
;