[systemd-devel] Default file permissions in user mode

Lennart Poettering lennart at poettering.net
Mon Apr 21 23:14:02 PDT 2014


On Sat, 12.04.14 12:14, Tanu Kaskinen (tanu.kaskinen at linux.intel.com) wrote:

> Hi,
> 
> The systemd.socket man page says that the default value for
> DirectoryMode is 0755. Judging from the code in the socket_init()
> function, the documentation matches the implementation. 0755 seems
> appropriate for the system mode, but wouldn't 0700 be better for the
> user mode? Likewise for the default socket mode 0666 vs. 0600, and
> probably similar permissions are specified elsewhere too.

The usual approach for user code is to keep things as closed as necessary
and as open as possible and leave the rest to the user with umask or
parent directories. 

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list