Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux set permission to a folder and all it's sub files or folders [closed]

Tags:

linux

fedora

i am using fedora and a folder i want to set permission public every one read write

chmod -R 755 /directory
chmod owner group world FileName

and other's but can't work

how i can give public permission to every one one of my folder and every thing under it to other users

thanks

like image 643
Welcome Always Avatar asked Nov 29 '22 01:11

Welcome Always


1 Answers

Following two commands will ensure your purpose

chmod -R 755 /directory
chown -R owner.group /directory

This will give read permissions to everyone. You may be facing issue due to wrong ownership. If the file is not very sensitive, you can also use:

chown -R nobody.nobody /directory   ( No body means anyone )
like image 72
abhishek verma Avatar answered Dec 06 '22 07:12

abhishek verma