[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] ftp directory -- Keywords: /web , start dir , users



Yep,

Step #1)  su to root (type su [press enter]) enter your root password
Step #2)  Back up your passwd and proftpd.conf files ...
    type:
    cd /etc
    cp passwd passwd.rls
    cp proftpd.conf proftpd.conf.rls   (I use .rls because those are my 
initials)
Step #3)  Edit your passwd file setting the directory to /web rather then the 
user dir:
    type:
    pico -w passwd    (must use -w, that turns off word wrap)

    Change the following:
    username:x:165:100:username:/home/sites/site29/users/username:/biBLA
    to
    username:x:165:100:username:/home/sites/site29/web:/biBLA
SAVE AND EXIT
Step #4)
    Tell proftp to only allow site site admins to go up one directory from 
their start dir (that way they can't get into your other site files)  By 
default they can go up two directories.
    Type:
    pico -w proftpd.conf
    Look for the IP address your site admins log into and change what says:
    ../../
    to
    ../

NOTE:  If your going to change one site admin like that you must change them 
all because they will only be able to go up one directory when you edit 
proftpd.conf.  Also... You must edit proftpd.conf everytime you add a new 
domain, what I do is just copy a good one back everytime I add a new domain.

When I sign up a new user basically what I do is: #1 add the domain, #2 
create a site admin account under that domain, #3 edit passwd, #4 copy good 
version of proftpd.conf over bad version

REMEMBER, when editing passwd using -w and always make a backup first.  I 
have over 200 domains hosted on my cobalt raq and this method works perfectly.

~Randy

In a message dated 6/5/00 1:51:12 PM Central Daylight Time, 
jsanders@xxxxxxxxxx writes:

> Is there any way I can set as a default (perhaps by editing proftp.conf?) so
>  that site admins default to the site root web directory rather than their
>  personal web directory?