PDA

View Full Version : Change document root ftp from / to web - how?


tom
20th April 2006, 01:43
I would like to change the document root for the ftp clients from "/" to "/web".

In /proftpd.conf I find this entry:

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, 18:15
You can try
DefaultRoot ~/web
Restart Proftpd afterwards.

tom
20th April 2006, 19:13
You can try
DefaultRoot ~/web
Restart Proftpd afterwards.

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

tom

till
21st April 2006, 11:18
Have you asked the guys at the proftpd mailing list, if such a DefaultRoot string is supported?

tom
21st April 2006, 11:23
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, 12:25
According to this it should be supported: http://chronos.cs.msu.su/proftpd/Configuration.html#DefaultRoot

Did you restart proftpd?

tom
21st April 2006, 13:54
According to this it should be supported: http://chronos.cs.msu.su/proftpd/Configuration.html#DefaultRoot

Did you restart proftpd?

sure, I did

tom

falko
21st April 2006, 18:44
And what exactly happens when you use DefaultRoot ~/web? Any error messages?

rykoala
21st April 2006, 22: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, 17:13
Don't do it! It wil break dependencies, for example your users' procmail recipes won't work anymore!

Stanev
22nd April 2006, 19:55
It must be:

DefaultRoot "~/web"

not
DefaultRoot ~/web

tom
23rd April 2006, 01:49
It must be:

DefaultRoot "~/web"

not
DefaultRoot ~/web
Great, it's working now :-)

tom