[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] changing default ftp login folders
- Subject: Re: [cobalt-users] changing default ftp login folders
- From: HeIlMaster@xxxxxxx
- Date: Thu Mar 16 10:05:12 2000
As some one earler said you can do this
login as root. look inside /etc/passwd. You'll see:
test:x:144:100:TestUser:/home/sites/site23/users/test:/bin/bash
change it to:
test:x:144:100:TestUser:/home/sites/site23/web:/bin/bash
This will allow people to log into the correct directory when then FTP in,
and also open a huge security hole as now any siteadmin can view the files
from any site hosted on the raq. (or at least thats what happened when i did
this.)
To fix that you need to alter the proftpd.conf file.
in the area that looks like this
ServerName "ProFTPD"
ServerType inetd
DeferWelcome off
DefaultServer on
DefaultRoot / admin
DefaultRoot ~/.. site-adm
DefaultRoot ~ !site-adm
change the following
DefaultRoot ~/../.. site-adm
to
DefaultRoot ~/.. site-adm
This worked for me, but im not sure about its effects with telnet or other
services.
Thanks
Danni
Admin@xxxxxxxxxxxxx
Webmaster@xxxxxxxxxxxx
Webmaster@xxxxxxxx