Re: Apache and umask for document root

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,


>> I've actually already done these exact steps, and it doesn't work (on
>> fedora23). When you say you've tested it, do you mean you tested the
>> steps above, or you did something to confirm afterwards that its umask
>> is 0002?
>>
>> # cat /etc/systemd/system/httpd.service.d/override.conf
>> [Service]
>> UMask=0002
>> # systemctl restart httpd
>> # su - apache -s /bin/bash
>> -bash-4.3$ umask
>> 0022
>
> Alex, the change to the override.conf file affects ONLY the httpd
> _process_ started by systemd. It does NOT change the umask for the
> apache _user_ (which is what you tested).
>
> To only way to verify the change "took" is to have the httpd process
> create a file and check the mode of the file created.

Yes, thanks. I still need to test it for joomla through the apache
user, but as I mentioned in a previous email a few minutes ago, it
still appears to be 0022.

How is it set for the normal user? I've modified /etc/bashrc (and even
/etc/profile), and the apache user doesn't have a .bashrc or
.bash_profile, and it's still 0022.

This is important because the "joomadmin" user will be manipulating
these files via sFTP or scp.

I've also tried modifying the Subsystem variable to first set the
umask before running /usr/libexec/openssh/sftp-server, and the Windows
sFTP client they're using apparently can't handle this.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux