Hi
I've just made my first experiences with rssh-2.3.2 on a Solaris8 box.
I setup a chroot environment and everything works OK. Well, almost ;-)
The chdir to the user's home directory doesn't.
I had a look at the rssh_chroot_helper.c and discovered that the
function which determines the directory to chdir() to, gets called with
opts.chroot_path and uinfo.pw_dir, in my case:
/opt/jail and /opt/admin/. And this cannot work.
It might be that I misunderstood the config parameters. My rssh.config
file is (comments stripped):
logfacility = LOG_USER
allowscp
allowsftp
umask = 022
user = admin:022:00011:/opt/jail
And the password entry of the user in question:
admin:x:747:747:Admin User:/opt/admin/:/opt/rssh/bin/rssh
Unless I'm overseeing something I would drop the call to extract_root()
and after chdir("/") just do chdir(uinfo.pw_dir).
Another question, would be making the call to ch_start_logging()
earlier, before chroot() considered a security risk?
I personally don't think so and it would give us log messages generated
after chroot() for nothing.
I did those two changes to rssh_chroot_helper.c and it works great.
Thanks for your time.
Regards,
Chris
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
rssh-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rssh-discuss