[systemd-devel] root directory permissions vs OpenSSH chroot

Mike Kazantsev mk.fraggod at gmail.com
Sun Jun 5 01:51:09 PDT 2011

On Sat, 4 Jun 2011 22:56:15 +0200
Albert Strasheim <fullung at gmail.com> wrote:

> 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
> seems to be defaulting to 0775 on my Fedora 15 system.

Why do you need systemd there? Can't you fix mode of that single path
by issuing one-time chmod command?

> Regards
> Albert

Mike Kazantsev // fraggod.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20110605/220ad40d/attachment.pgp>

More information about the systemd-devel mailing list