scponly

Fórumok

Sziasztok,

scponly szeretnék chrootban futtatni, csatlakozáskor az alábbi hibaüzenetet adja. Tud valaki segíteni ezt kiküszöbölni?

Jul 17 10:50:50 localhost sshd[1536]: Accepted password for scponly from 192.168.10.18 port 1360 ssh2
Jul 17 10:50:50 localhost sshd[1544]: (pam_unix) session opened for user scponly by (uid=0)
Jul 17 10:50:50 localhost scponly[1545]: chrooted binary in place, will chroot()
Jul 17 10:50:50 localhost scponly[1545]: 1 arguments in total.
Jul 17 10:50:50 localhost scponly[1545]: ^Iarg 0 is -scponlyc
Jul 17 10:50:50 localhost scponly[1545]: opened log at LOG_AUTHPRIV, opts 0x00000029
Jul 17 10:50:50 localhost scponly[1545]: retrieved home directory of "/home/scponly" for user "scponly"
Jul 17 10:50:50 localhost scponly[1545]: chrooting to dir: "/home/scponly"
Jul 17 10:50:50 localhost scponly[1545]: chdiring to dir: "/"
Jul 17 10:50:50 localhost scponly[1545]: chdiring to dir: "/"
Jul 17 10:50:50 localhost scponly[1545]: setting uid to 1007
Jul 17 10:50:50 localhost scponly[1545]: entering WinSCP compatibility mode [username: scponly(1007), IP/port: 192.168.10.18 1360 22]
Jul 17 10:50:52 localhost scponly[1545]: processing request: "groups"
Jul 17 10:50:52 localhost scponly[1545]: Found "HOME" and setting it to "/home/scponly"
Jul 17 10:50:52 localhost scponly[1545]: Environment contains "HOME=/home/scponly"
Jul 17 10:50:52 localhost scponly[1545]: set HOME environment variable to / username: scponly(1007), IP/port: 192.168.10.18 1360 22
Jul 17 10:50:52 localhost scponly[1545]: running: /usr/bin/groups (username: scponly(1007), IP/port: 192.168.10.18 1360 22)
Jul 17 10:50:52 localhost scponly[1546]: failed: /usr/bin/groups with error No such file or directory(2) (username: scponly(1007), IP/port: 192.168.10.18 1360 22)
Jul 17 10:50:52 localhost sshd[1544]: (pam_unix) session closed for user scponly

P.Zoli

Hozzászólások

Egesz pontosan melyik reszet nem erted a lognak?

Scponly doksijat elolvastad? Idezet:

If clients complain about missing groups, compile
/usr/share/doc/scponly/groups.c and copy the resulting binary
into /bin/groups in the chroot jail. This should satifsy picky
scp and sftp clients.

Bar lehet neked nem ez a gondod, de a groups hibarol egybol ez jutott eszembe. Nem tudom minden disztronal megvan-e a groups.c, debian/ubuntu alatt megvan, ha ilyen disztrot hasznalsz, probald ki.