Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: loejf on May 27, 2009, 01:41:29 PM

Title: remote user access chroot
Post by: loejf on May 27, 2009, 01:41:29 PM
Hi.
I have installed the 'remote user access' module from dungog.
But when I change a users ftp root to ex. '/home/e-smith/files/ibays/example/files
It does not work, when the user log in using sftp, they end up in their own home folder ??
Loejf.
Title: Re: remote user access chroot
Post by: Stefano on May 27, 2009, 01:58:17 PM
AFAIK remote user access contrib work only with ftp

anyway, open a bug in bugzilla

Ciao
Stefano
Title: Re: remote user access chroot
Post by: loejf on May 27, 2009, 02:07:55 PM
Hmmmm.
Thank you.
Do you know then, if it is possible to make the users home folders a symbolic link to the Ibay folder.
Since they are not going to do anything else on the server, but having access using sftp ??
Loejf
Title: Re: remote user access chroot
Post by: Igi2003 on May 27, 2009, 03:13:47 PM
I had this Problem too. It´s an Error in the Pearl script. chroot your users to the Directory in server-manager. The FTP Users won´t be able to connect to server after that. Open /home/e-smith/db/accounts with vi or mcedit an search for your chrooted user. There is an string like |Shell|rssh|. Change "rssh" in "/usr/bin/rssh". Save and then make an signal-event post-upgrade and signal-event reboot. After reboot your User can log in to the chrooted Directory througt FTP.
An other Method is, you can change the Pearl script file. Open /etc/e-smith/web/functions/remoteuseraccess an go to line 332, change string rssh in /usr/bin/rssh an save.

Kind regards
Title: Re: remote user access chroot
Post by: Stefano on May 27, 2009, 03:32:07 PM
I had this Problem too. It´s an Error in the Pearl script. chroot your users to the Directory in server-manager. The FTP Users won´t be able to connect to server after that. Open /home/e-smith/db/accounts with vi or mcedit an search for your chrooted user. There is an string like |Shell|rssh|. Change "rssh" in "/usr/bin/rssh". Save and then make an signal-event post-upgrade and signal-event reboot. After reboot your User can log in to the chrooted Directory througt FTP.
An other Method is, you can change the Pearl script file. Open /etc/e-smith/web/functions/remoteuseraccess an go to line 332, change string rssh in /usr/bin/rssh an save.

Kind regards

no, the best thing to do is open a bug reporting what you wrote above..

telling people to modify scripts manually is not a good idea.

please open a  bug, thank you

Stefano
Title: Re: remote user access chroot
Post by: loejf on May 27, 2009, 04:14:52 PM
Hi. I will report it as a bug.
But Igi2003, will this then also work for secure ftp, or just ftp?
Loejf.
Title: Re: remote user access chroot
Post by: loejf on May 27, 2009, 04:48:37 PM
http://bugs.contribs.org/show_bug.cgi?id=5294
Title: Re: remote user access chroot
Post by: Igi2003 on May 27, 2009, 10:41:02 PM
no, the best thing to do is open a bug reporting what you wrote above..

telling people to modify scripts manually is not a good idea.

please open a  bug, thank you

Stefano

I don´t know how to use Bugzilla. It´s to complicated for me and to confusing.
Title: Re: remote user access chroot
Post by: Stefano on May 28, 2009, 07:53:48 AM
I don´t know how to use Bugzilla. It´s to complicated for me and to confusing.

read here (http://wiki.contribs.org/Bugzilla_Help) and don't be scared ;-)

Ciao
Stefano
Title: Re: remote user access chroot
Post by: loejf on June 01, 2009, 01:20:10 PM
Well.
The development team has closed the bug, since it is not a bug, but a missing feature.
http://bugs.contribs.org/show_bug.cgi?id=5294
Loejf
Title: Re: remote user access chroot
Post by: mmccarn on June 01, 2009, 04:23:39 PM
Can you do what you're trying to do using DAV (http://wiki.contribs.org/DAV) instead of FTP?
Title: Re: remote user access chroot
Post by: loejf on June 01, 2009, 08:51:14 PM
Hi.
I don´t know much about DAV, but it seems to be some kind of http enabled access to ibays.
But what I need, is accounts connecting to sftp folders (encrypted) using scripts.
And why I want to chroot users is, that I want internal access to all the user folders from one single mapped root folder (ibay).
But maybe there is a better way to solve this.
Thank you. Loejf.