Koozali.org: home of the SME Server

User restriction

Wesley

User restriction
« on: May 28, 2002, 08:12:07 AM »
Is there any way to restrict an FTP user to their home directory only. An ftp user ca login and browse upward from their home dir. they dont have permission to read some  folders but they can still wander around. is there anyway to prevent this.

Also is there any way to privide a link from the users homer directory to ab IBay if that user has a virtual domain located in an IBay

Any info would be appreciated

flee

Re: User restriction
« Reply #1 on: May 28, 2002, 08:43:00 PM »
You will need to modify the templates.  I'm not sure if you would have to create any custom templates, but the way I did it was modify the proftpd.conf templates in /etc/e-smith/templates/etc/proftpd.conf.

You'll have to insert this line within one of the files you see.

DefaultRoot ~

This means a users default root directory is their home directory.

---------------------------------

Currently, my ftp users would only use their ftp account to modify their virtual domain.  So I just changed their home directory to the iBay directory (make sure permissions are set correctly).  This worked like a charm.

Franco