Koozali.org: home of the SME Server

remote user access chroot

Offline loejf

  • ****
  • 74
  • +0/-0
remote user access chroot
« 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.
...

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: remote user access chroot
« Reply #1 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

Offline loejf

  • ****
  • 74
  • +0/-0
Re: remote user access chroot
« Reply #2 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
...

Offline Igi2003

  • *****
  • 226
  • +0/-0
Re: remote user access chroot
« Reply #3 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

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: remote user access chroot
« Reply #4 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

Offline loejf

  • ****
  • 74
  • +0/-0
Re: remote user access chroot
« Reply #5 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.
...

Offline loejf

  • ****
  • 74
  • +0/-0
...

Offline Igi2003

  • *****
  • 226
  • +0/-0
Re: remote user access chroot
« Reply #7 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.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: remote user access chroot
« Reply #8 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 and don't be scared ;-)

Ciao
Stefano

Offline loejf

  • ****
  • 74
  • +0/-0
Re: remote user access chroot
« Reply #9 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
...

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Re: remote user access chroot
« Reply #10 on: June 01, 2009, 04:23:39 PM »
Can you do what you're trying to do using DAV instead of FTP?

Offline loejf

  • ****
  • 74
  • +0/-0
Re: remote user access chroot
« Reply #11 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.
...