Mailinglist Archive: opensuse (807 mails)

< Previous Next >
RE: [opensuse] sftp/ssh choot dir permission error

Hello,

Okay, it looks like I made a real mess of things. I've started from scratch and
still having problems.

from the sshd_config file;

<snip>
Subsystem sftp internal-sftp
<snip>
Match User username
ChrootDirectory /data/chroot/%u
AllowTcpForwarding no
ForceCommand internal-sftp
<snip>

The permissions on /data/chroot are;

drwxr-xr-x 3 root root 17 Apr 8 12:44 chroot/

...and for the user;

# l /data/chroot/
total 0
drwxr-xr-x 3 root root 17 Apr 8 12:44 ./
drwxr-xr-x 10 root root 154 Apr 8 12:44 ../
drwxr-x--- 4 root sftp 32 Apr 8 13:11 username/
<snip>

When attempting to login remotely I get an error of;
Could not chdir to home directory /data/chroot/username: No such file or
directory

Any help would be greatly appreciated.

James
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >