Mailinglist Archive: opensuse (807 mails)

< Previous Next >
Re: [opensuse] sftp/ssh choot dir permission error
Hello,

Running into an interesting permissions problem for chrooted sftp/ssh
session. The error logged when attempting to connect is;

fatal: bad ownership or modes for chroot directory component
"/data/chroot/"

The permission for the dir is;

drwxrwsr-x 93 root root 4096 Mar 26 15:40 chroot/

Hello,
is the directory owned by root? I use similar method and home directories have
to be owned by root with permissions 755.
Good luck,
Vojtěch

~~~~~

Hello Vojtěch

The permissions are;

drwx--S--- 4 root root 32 Jan 6 15:20 user/


Not sure why the setuid is there. Chmod to 755 would fix the permissions issue?

Many thanks,

James

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

< Previous Next >
Follow Ups
References