Portál AbcLinuxu, 11. května 2025 10:42

Dotaz: rssh chroot

30.8.2007 11:19 xcory
rssh chroot
Přečteno: 796×
Odpovědět | Admin
mam Debian sarge, jadro 2.6.17.7 nainstaloval jsem rssh je funkcni ale nemuzu rozjet chroot na slozku uzivatele, chci se pripojovat pres winscp, pri nastaveni chroot uzivatele q mi to hodi ve winscp tuhle hlasku "spojeni bylo neocekavane ukonceno, server poslal ukoncovaci status 1" potrebuju jeste neco dalsiho aby mi fungoval chroot v rssh nebo co delam spatne

# This is the default rssh config file

# set the log facility.  "LOG_USER" and "user" are equivalent.
logfacility = LOG_USER

# Leave these all commented out to make the default action for rssh to lock
# users out completely...

allowscp
allowsftp
#allowcvs
#allowrdist
#allowrsync

# set the default umask
umask = 022

# If you want to chroot users, use this to set the directory where the root of
# the chroot jail will be located.
#
# if you DO NOT want to chroot users, LEAVE THIS COMMENTED OUT.
#chrootpath = /usr/sbin/chroot

# You can quote anywhere, but quotes not required unless the path contains a
# space... as in this example.
#chrootpath = "/usr/local/my chroot"

##########################################
# EXAMPLES of configuring per-user options

#user=rudy:077:00010:  # the path can simply be left out to not chroot
#user=rudy:077:00010   # the ending colon is optional

user=q:022:00011:"/home/q"

#user=rudy:011:00100:  # cvs, with no chroot
#user=rudy:011:01000:  # rdist, with no chroot
#user=rudy:011:10000:  # rsync, with no chroot
#user="rudy:011:00001:/usr/local/chroot"  # whole user string can be quoted
#user=rudy:01"1:00001:/usr/local/chroot"  # or somewhere in the middle, freak!
#user=rudy:'011:00001:/usr/local/chroot'  # single quotes too

# if your chroot_path contains spaces, it must be quoted...
# In the following examples, the chroot_path is "/usr/local/my chroot"
#user=o2:022:00011:"/mnt/ftp"  # scp with chroot
#user=q:022:00010:"/mnt/ftp"  # sftp with chroot
#user=o2:011:00011:"/mnt/ftp"  # both with chroot

# Spaces before or after the '=' are fine, but spaces in chrootpath need
# quotes.
#user = "rudy:011:00001:/usr/local/my chroot"
#user = "rudy:011:00001:/usr/local/my chroot"  # neither do comments at line end
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

2.9.2007 23:39 8an | skóre: 30
Rozbalit Rozbalit vše Re: rssh chroot
Odpovědět | | Sbalit | Link | Blokovat | Admin
Ta konfigurace vypadá OK, takže spíš bude něco špatně v tom chrootu. Zkus pod rootem chroot /home/q /usr/lib/openssh/sftp-server
If you build an operating system that even an idiot can use, only idiots will use it.
3.9.2007 09:00 Jooky (inactive) | skóre: 39 | blog: Jooky | Bratislava
Rozbalit Rozbalit vše Re: rssh chroot
Odpovědět | | Sbalit | Link | Blokovat | Admin
Aky protokol je nastaveny vo winscp ? viz. http://www.pizzashack.org/rssh/faq.shtml#12

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.