HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Change document root ftp from / to web - how? (http://www.howtoforge.com/forums/showthread.php?t=3800)

tom 20th April 2006 00:43

Change document root ftp from / to web - how?
 
I would like to change the document root for the ftp clients from "/" to "/web".

In /proftpd.conf I find this entry:

Quote:

DefaultRoot ~
Is it possibly to change it to "/web" so that the client can't change and see the .spamassassin, maildir etc. directory?

tom

falko 20th April 2006 17:15

You can try
Code:

DefaultRoot ~/web
Restart Proftpd afterwards.

tom 20th April 2006 18:13

Quote:

Originally Posted by falko
You can try
Code:

DefaultRoot ~/web
Restart Proftpd afterwards.

I've already tried to do that but it didn't work.

tom

till 21st April 2006 10:18

Have you asked the guys at the proftpd mailing list, if such a DefaultRoot string is supported?

tom 21st April 2006 10:23

Quote:

Originally Posted by till
Have you asked the guys at the proftpd mailing list, if such a DefaultRoot string is supported?

No, but I will do it :-)

tom

falko 21st April 2006 11:25

According to this it should be supported: http://chronos.cs.msu.su/proftpd/Con...ml#DefaultRoot

Did you restart proftpd?

tom 21st April 2006 12:54

Quote:

Originally Posted by falko
According to this it should be supported: http://chronos.cs.msu.su/proftpd/Con...ml#DefaultRoot

Did you restart proftpd?

sure, I did

tom

falko 21st April 2006 17:44

And what exactly happens when you use
Code:

DefaultRoot ~/web
? Any error messages?

rykoala 21st April 2006 21:53

Wouldn't you just change their home directory in /etc/passwd? That's what I've done in the past on my other servers, but I'm brand new to ISPConfig so maybe it wouldn't like that. I don't see why it wouldn't work though.

falko 22nd April 2006 16:13

Don't do it! It wil break dependencies, for example your users' procmail recipes won't work anymore!


All times are GMT +2. The time now is 07:08.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.