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

社会主义新天地 提交于 2020-01-03 18:55:48

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!