A newbie here.
Can someone help me understand what are the effects of running the following command from a directory:
sudo chmod -R 777 *
Will it effect the whole file system or the contents of that particular directory?
Thanks
A newbie here.
Can someone help me understand what are the effects of running the following command from a directory:
sudo chmod -R 777 *
Will it effect the whole file system or the contents of that particular directory?
Thanks
It will affect the directory the command is run from and all subdirectories.
The sudo
implies root access.
The -R
is recursive, so goes through subdirectories.
The *
implies all files/directories.
The 777
, of course, makes the files read, write and executable for all users and is generally not a great idea from a security point of view.