unix - Permission Denied error setting 777 folder access -
i created user admin access named hadoop. funny thing when create folder , try give 777 access gives me error.
hadoop@linux:~$ mkdir testfolder hadoop@linux:~$ ls -ltra testfolder/ total 8 drwxrwxrwx 25 hadoop sudo 4096 jun 14 20:00 .. drwxrwxr-x 2 hadoop hadoop 4096 jun 14 20:00 . hadoop@linux:~$ chmod -777 -r testfolder/ chmod: cannot read directory ‘testfolder/’: permission denied
why when creator of directory ?
hadoop@linux:~$ groups hadoop root sudo
strangely, using gui, can go in , right click directory , change file permissions. can me understand not understanding.
note : use ubuntu 14
your command chmod -777 -r testfolder/
issue here, more specific -
part of first argument.
leave away, use chmod 777 -r testfolder/
, should fine...
not sure details, -777
should remove permissions, preventing access @ least recursive portion of command. assume not want do. instead want grant more permissions directory. looks command blocks itself. though might purpose, @ least in indirect manner.
Comments
Post a Comment