Web Hosting Talk







View Full Version : Settuing up user accounts


Mike343
08-30-2001, 02:57 AM
Ok here is the problem i have when i setup user accounts. I click on add virtual sites and then i add all the info like the subdomain and everything else, and then i click on edit the site and it takes me to, site managment and i add a user, now after i add the user and put the info in for the ftp it doesnt take me to the main site account, how can i can i make it for it take's me to the main account for the site because when i add the site theres no where to put in a username and pass all i can do in site managent is add users and it makes folders for those users but i need to know how to make so that it go to the main site account thanks, mike

by the way im on a raq3

Marty
08-30-2001, 06:45 AM
This comes without warranty of use. There are risks involved. If you mess up, it could take down your control panel.

This modification will change both the Raq control panel code and it will
change the /etc/proftpd.conf so that everyone's default ftp directory will
be /web.


There are two files that need to be modified. The 1st and most important
files is the /usr/lib/perl5/site_perl/5.005/Cobalt/Ftp.pm file, note the
capital F in Ftp.pm. This file contains information that builds and writes
user information to the /etc/proftpd.conf file during he account creation
process.


Step #1
-------
PICO or VI /usr/lib/perl5/site_perl/5.005/Cobalt/Ftp.pm file and do the
following.


Find the information that looks like this:
------------------------------------------
DefaultRoot / admin
DefaultRoot ~/../.. $Sites_AdminGroup
DefaultRoot ~ !$Sites_AdminGroup
AllowOverwrite on
DisplayLogin .ftphelp


Replaced it with this:
----------------------
DefaultRoot / admin
DefaultRoot ~/../.. site-adm
DefaultChdir ../../web site-adm
DefaultRoot ~ !site-adm
DefaultChdir ../../web
AllowOverwrite on


Step #2
-------
(If you plan on adding a new virtual account then you can skip step #2
because the account creation process will modify the current information
that lives in the /etc/proftpd.conf file based on the change you make in
Step #1)


PICO or VI /etc/proftpd.conf file and do the following:


Find the information that looks like this:
------------------------------------------
DefaultRoot / admin
DefaultRoot ~/../.. $Sites_AdminGroup
DefaultRoot ~ !$Sites_AdminGroup
AllowOverwrite on
DisplayLogin .ftphelp


Replaced it with this:
----------------------
DefaultRoot / admin
DefaultRoot ~/../.. site-adm
DefaultChdir ../../web site-adm
DefaultRoot ~ !site-adm
DefaultChdir ../../web
AllowOverwrite on

Mike343
08-30-2001, 08:01 AM
i dont think i will be doing that if there is the risk of taking down my control panel, I have one user account that goes tot he sites main directory and my other oens dont, i don't understand what i did to make the user's account go tot he main site directory

Marty
08-30-2001, 10:50 AM
Sorry, I didn't mean to scare you too much. I just wanted to make sure you were careful. First you should make a copy of each file you are going to edit with the suffice _old on it. That way, if anything goes wrong, you can revert back to the old copy. It is an easy mod to do, but when suggesting that people edit files, I am careful to indicate the risk as I don't know the experience level of the person involved.