[systemd-devel] root directory permissions vs OpenSSH chroot

微菜 microcai at fedoraproject.org
Sat Jun 4 21:02:00 PDT 2011


于 2011年06月05日 04:56, Albert Strasheim 写道:
> Hello all
> 
> OpenSSH has a chroot feature, but for it to work, the root directory
> must have permissions of 0755 otherwise one gets the error:
> 
> sshd[15705]: fatal: bad ownership or modes for chroot directory component "/"
> 
> Is this something that systemd can control or fix when it starts? It、

add ExecStartPre=-/bin/chmod 0755 balabala

> seems to be defaulting to 0775 on my Fedora 15 system.
> 
> Regards
> 
> Albert
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel


-- 
我是天马博士,对,就是创造了阿童木的那个天马博士

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20110605/8bf93227/attachment.pgp>


More information about the systemd-devel mailing list