Page 1 of 1

rssh

Posted: 2003-10-06 11:12
by /dev/null
Tach!

Ich spiele mich gerade mit RSSH.

Irgendwie bekomme ich das nicht hin, möglicherweise verstehe ich auch den config-File falsch!? Ich möchte einen bzw. mehrere Benutzer in ihrem Home-Dir vir rssh einsperren.

Code: Select all

# This is the default rssh config file

# set the log facility.  "LOG_USER" and "user" are equivalent.
logfacility = LOG_USER # you can use comments at end of line

# Leave these both uncommented to make the default action for rssh to lock
# users out completely...
allowscp
allowsftp

# set the default umask
umask = 022

# If you want to chroot users, use this to set the directory
# if you DO NOT want to chroot users, LEAVE THIS COMMENTED OUT.
# Quotes not required unless path contains a space...
#chrootpath="/usr/local/chroot dir"

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

# ALL OF THESE ARE THOROUGHLY TESTED!  IF THEY DON'T WORK FOR YOU, YOU BROKE
# SOMETHING!  IT'S PROBABLY YOUR CHROOT ENVIRONMENT...

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

#spaces in the path must be quoted...
#user=rudy:011:01:"/usr/local/chroot dir"  # scp with chroot
#user=ddm:011:01:"/usr/local/chroot dir"   # sftp with chroot
#user=rudy:011:10:"/usr/local/chroot dir"  # sftp with chroot
#user=rudy:011:11:"/usr/local/chroot dir"  # both with chroot
#user="rudy:011:01:/usr/local/chroot dir"  # whole user string can be quoted
#user=rudy:01"1:01:/usr/local/chroot dir"  # or somewhere in the middle, freak!
#user=rudy:'011:01:/usr/local/chroot dir'  # single quotes too

# non-quoted spaces don't matter, so long as they aren't in the middle of a
# token (like a keyword)
#user = "rudy:011:01:/usr/local/chroot dir"
#user = "rudy:011:01:/usr/local/chroot dir"  # neither do comments at line end

user=wwmail:011:11:"/home/www/wwmail"
Letzendlich schaffe ich nur folgenden Dialog:

Code: Select all

# sftp wwmail@localhost
Connecting to localhost...
wwmail@localhost's password:
Connection closed
Was hab ich übersehen?

Re: rssh

Posted: 2003-10-06 11:21
by captaincrunch
Wie wär's denn mal mit einem "dir" hinter dem wwwmail ?

Re: rssh

Posted: 2003-10-06 12:24
by /dev/null
Du meinst:

Code: Select all

user=wwmail:011:11:"/home/www/wwmail dir"
Das war mein erster Versuch... Aber damit ändert sich nichts!

Re: rssh

Posted: 2003-10-06 12:49
by captaincrunch
Der nächste Punkt, den du prüfen solltest ist, ob die chroot-Umgebung auch OK ist.

Eine weitere Ã?berlegung : ssh -vv username@host fördert weitere Informationen zutage, und gibt dir vielleicht einen Hinweis auf die Ursache des Fehlers.

Re: rssh

Posted: 2003-10-06 14:21
by /dev/null
*ARGL*

Hilfe... Kannst du mir die infos deuten, die mir der da ausgibt!?

Ab welchem Punkt sol ich sie Posten? Komplett oder ab PW-Eingabe?