Mailinglist Archive: opensuse (807 mails)
| < Previous | Next > |
Re: [opensuse] sftp/ssh choot dir permission error
- From: Vojtěch Zeisek <Vojtech.Zeisek@xxxxxxxxxxxx>
- Date: Thu, 8 Apr 2010 20:27:04 +0200
- Message-id: <201004082027.14226.Vojtech.Zeisek@xxxxxxxxxxxx>
Dne Čt 8. dubna 2010 20:17:34 James D. Parra napsal(a):
Sorry, I badly looked. Well, for me, chroot for SSH/SFTP works with home
directories owned by root and permissions 755. I then added permissions for
users using ACL. Another option is rights 777, which should be OK when all
users are chrooted , but more I like 755 + ACL. :-) This works for me, I'm not
sure if it would help You...
Good luck,
Vojtěch
Vojtěch Zeisek
Komunita openSUSE GNU/Linuxu /
Community of the openSUSE GNU/Linux
http://www.opensuse.org/
http://web.natur.cuni.cz/~zeisek/
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?
Sorry, I badly looked. Well, for me, chroot for SSH/SFTP works with home
directories owned by root and permissions 755. I then added permissions for
users using ACL. Another option is rights 777, which should be OK when all
users are chrooted , but more I like 755 + ACL. :-) This works for me, I'm not
sure if it would help You...
Good luck,
Vojtěch
Many thanks,--
James
Vojtěch Zeisek
Komunita openSUSE GNU/Linuxu /
Community of the openSUSE GNU/Linux
http://www.opensuse.org/
http://web.natur.cuni.cz/~zeisek/
| < Previous | Next > |