Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux chmod command error: chmod: invalid mode: [closed]

Tags:

linux

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?

like image 484
Ray Avatar asked Dec 30 '15 09:12

Ray


People also ask

How do I give permission to 777 in Linux?

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

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
like image 78
vmonteco Avatar answered Oct 31 '22 14:10

vmonteco