Re: [systemd-devel] root directory permissions vs OpenSSH chroot

2011-06-15 Thread Lennart Poettering
On Sat, 04.06.11 22:56, Albert Strasheim (full...@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.

Which dir did you configure as root directory? Why don't you just fix
the access mode of that one once and for all with chmod on the shell?

Lennart

-- 
Lennart Poettering - Red Hat, Inc.
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] root directory permissions vs OpenSSH chroot

2011-06-05 Thread Mike Kazantsev
On Sat, 4 Jun 2011 22:56:15 +0200
Albert Strasheim  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


signature.asc
Description: PGP signature
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] root directory permissions vs OpenSSH chroot

2011-06-04 Thread 微菜
于 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@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel


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



signature.asc
Description: OpenPGP digital signature
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] root directory permissions vs OpenSSH chroot

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

Regards

Albert
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel