Originally posted by Matrix How do you setup a new ftp space on a dedicated server? I have webmin with other sites that have their own areas on the server and want to setup another one for a new site that i'm setting up.
That depends a lot on your server configuration (operating system, brand of FTP server, control panels, etc). But the most common way to do this is to create a new user, assign it a password, then you will be able to logon with that username and password. But like I said it depends on your configuration, so it might or it might not work.
~# /usr/sbin/useradd -G $group $user
~# cd /home
If the user that you just created is listed in the /home directory, remove it from there:
~# rm -R $user
~# ln -s /home/$mainuser/$domain-www/$directory $user
~# chmod 775 $directory
~# chown $user.$group $user
~# passwd $user
Changing password for $user
Enter the new password (minimum of 5, maximum of 8 characters)
Please use a combination of upper and lower case letters and numbers.
Re-enter new password:
$group = The group name for the domain
$password = The password for the new user
$user = The new user name
$mainuser = The user name that owns the domain
$domain = The domain name (without .com, .net, .org, etc.)
$directory = The name of the directory to which the new user should have access.
Note: the -p switch on the useradd command did not set the password as desired in our testing that is why we do not use the switch, but rather manually set the password.