Virtual Hosting and User Accounts

Your Freedom server allows you to provide FTP, Samba and/or Shell access to your clients so that they can maintain their own Web site without requiring your intervention.

The easiest way to give these users access to manage these files is to make them a member of the user group that the vaddvhost command automatically creates for the virtual host.

To do so, use the vuserpriv command or the User Administration tool in the VAdmin Web interface. This section will focus on using the vuserpriv command. Information about performing user administration through VAdmin can be found in the VAdmin section of this guide.

The vuserpriv command allows you to make users members of both the special user groups and the groups for virtual host management.  The following is an example of adding a user to a virtual host group so that he can manage the Web content of that virtual host.

> vuserpriv

1) webadmin

2) ftpadmin

3) mailadmin

4) sysadmin

5) pkgadmin

v) virtual host groups

x) Exit

 

Please pick a type of user to add, or select 'x' to exit: v

 

Please select a vhost group to modify

 

1) domain.com

2) vhost.com

 

Please pick a type of user to add, or select 'x' to exit: 2

 

 

The following users are in vhost.com:

 

1) Add a user to this group

2) Delete a user from this group

3) Return

 

Please pick an action: 1

 

Please enter the username of the person to add: rusty

 

 

User 'rusty' added

 

1) webadmin

2) ftpadmin

3) smbadmin

4) mailadmin

5) sysadmin

6) pkgadmin

7) mysqladmin

v) virtual host groups

x) Exit

 

Please pick a type of user to add, or select 'x' to exit: x

>

As a member of this group, “rusty” can now edit those files that are owned by the group and are group writable. This allows him to update and upload files through FTP, Samba, or from the user shell.