在 ArchLinux 上更改 apache 的 umask [英] Changing umask of apache on ArchLinux

查看:43
本文介绍了在 ArchLinux 上更改 apache 的 umask的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这不起作用:

设置Apache用户的umask

Arch 没有 /etc/apache2/envvars 文件,更改 /etc/rc.d/httpd 脚本没有任何改变.

Arch doesn't have a /etc/apache2/envvars file, and changing the /etc/rc.d/httpd script didn't change anything.

也许有人可以启发我如何/在何处准确更改 rc 脚本,因此 apache 有一个 umask 002

Maybe someone can enlighten me how/where to exactly change the rc-script, so apache has an umask 002

推荐答案

再次尝试后,奇怪地编辑了 /etc/rc.d/httpd 文件.

After trying again, strangely editing the /etc/rc.d/httpd file works.

就放

umask 0002

就在 #!/bin/bash 之后,一切正常.

Right after the #!/bin/bash and everything works as it should.

不知道为什么它以前不起作用,但好吧...

No idea why it didn't work before, but well...

这篇关于在 ArchLinux 上更改 apache 的 umask的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆