rssh

Rund um die Sicherheit des Systems und die Applikationen
Post Reply
User avatar
/dev/null
Posts: 149
Joined: 2003-09-11 15:24
Location: Cyberspace
 

rssh

Post 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?
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten
Contact:
 

Re: rssh

Post by captaincrunch »

Wie wär's denn mal mit einem "dir" hinter dem wwwmail ?
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
User avatar
/dev/null
Posts: 149
Joined: 2003-09-11 15:24
Location: Cyberspace
 

Re: rssh

Post 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!
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten
Contact:
 

Re: rssh

Post 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.
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
User avatar
/dev/null
Posts: 149
Joined: 2003-09-11 15:24
Location: Cyberspace
 

Re: rssh

Post 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?
Post Reply