Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

chmod after reboot -> Permissions change

I'm working on Ubuntu 14.04 and I make chmod +x to a file, but, when I reboot the computer, the permissions change. How can I make to put chmod permanent?

like image 275
PRVS Avatar asked Oct 17 '15 13:10

PRVS


People also ask

What does chmod 775 do?

The chmod 775 is an essential command that assigns read, write, and execute permission to a specific user, group, or others.

What does chmod 644 do?

Permissions of 644 mean that the owner of the file has read and write access, while the group members and other users on the system only have read access. For executable files, the equivalent settings would be 700 and 755 which correspond to 600 and 644 except with execution permission.

What does the command * chmod 755 File_name * do?

755 means read and execute access for everyone and also write access for the owner of the file. When you perform chmod 755 filename command you allow everyone to read and execute the file, the owner is allowed to write to the file as well.

What does chmod R 777 do?

The command chmod -R 777 / makes every single file on the system under / (root) have rwxrwxrwx permissions. This is equivalent to allowing ALL users read/write/execute permissions. If other directories such as home, media, etc are under root then those will be affected as well.


1 Answers

You can't make it permanent, but you can automate the chmod command at boot-time by putting it in /etc/rc.local.

like image 54
MohitC Avatar answered Sep 21 '22 01:09

MohitC