Creating User Accounts

You can create user accounts by using the vadduser command. There are three types of accounts that can be created via the vadduser command:

1) Email only

2) Email and FTP access

3) Email, FTP and shell access

vadduser will always create an email account for the user. While it is possible for a user on your Freedom server to have an email account without having an FTP account, it is not possible for a user to have an FTP account without an email account. Likewise, you cannot grant shell access to a user without also granting FTP and email access.

SECURITY ALERT:

You should never give shell access to a user you do not trust. Although shell accounts are generally safe, there is always the possibility that a shell user could discover some unknown security exploit and gain access to important data or otherwise compromise your server.

Example: Adding a user with shell access

In the following transcript, we create a user account for a user named "rusty," with email, FTP, and shell access. We also grant rusty access to the Samba service:

> vadduser

What type of account do you wish to add?

 

1) Email Only

2) Email and FTP Access

3) Email, FTP and Shell Access

 

Please select an account type [1-3]: 3

Should this user have Samba Access? [y/n]: y

Please select a user name: rusty

Please enter the User's Fullname: Rusty

 

Which shell do you want this user to have?

 

1) /bin/sh

2) /bin/csh

3) /bin/tcsh

4) /usr/local/bin/bash

5) /usr/local/bin/ksh

Please select a shell [1-5]: 3

 

Username: rusty

Fullname: Trusty Rusty

Home Directory: /usr/home/rusty

Account Type: Email, FTP, and Shell

Shell: /bin/tcsh

Samba Access: YES

 

Is this correct? (y/n) [y]: [ENTER]

Changing local password for rusty.

New password:

Retype new password:

vpasswd: updating the database...

vpasswd: done

>

You can verify that the user has been created with the proper account type by listing all users with the vlistuser command:

> vlistuser

 

Username Full Name     FTP  Shell  Samba

-------- -----------   ---  -----  -----

root     Superuser     YES    YES    YES

admin    admin         YES    YES    YES

joe      Joe User      YES     NO     NO

rusty    Trusty Rusty  YES    YES    YES