问题
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
回答1:
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 )
回答2:
use command chmod -R 777 yourdirectory
来源:https://stackoverflow.com/questions/17250941/linux-set-permission-to-a-folder-and-all-its-sub-files-or-folders