User Tools

Site Tools


linux:creating_user_accounts

Introduction

Off course I could just look up

man useradd

but sometimes it is nice to have the right command lines ready for copy and paste.

Creating a standard user account for a real person

The command for creating our typical Average Joe user account is as follows:

If you want each user to have their own main group with the same name as the user name use:

useradd -m -s /bin/bash <user name>

Alternatively you can assign users to a common main group.

useradd -m -s /bin/bash -g users <user name>

To set the initial password type:

passwd <user name>

<note>Debian can make problems with password setting if you accidentally installed PAM Kerberos authentication. In this case uninstalling the package libpam-krb5 helps.</note>

linux/creating_user_accounts.txt · Last modified: 2015/05/18 08:15 by admin