开发者

How can I set a default 'chmod' in a Linux terminal?

A previous question just to understand what I'm doing: Ho开发者_如何学运维w to change permissions for a folder and its subfolders/files in one step

So if I change the chmod to 755 for chmod 75 /opt/lampp/htdocs and I restart the system I want the files to be in chmod 755.


Once set, Linux filesystem permissions are unaffected by rebooting the system, unless you have some non-standard software running at boot time which is going back to change them to some default.


Use:

sudo chmod -R a+rwx PathOfFolder


If some process is changing them at boot, place a changeback in /etc/rc.local.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜