I want assign the privilege to directory app, my command as below:
sudo chmod -R hduser /app
hduser
is username in Linux, however, I got error message:
chmod: invalid mode: `hduser'
anything need update?
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.
I think the command you're searching for is chown
.
http://linuxcommand.org/man_pages/chown1.html
Enter somethink like :
sudo chown -R username[:groupname] /app
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With