Create new user

Use the adduser command to create new users under TwinCAT/BSD. You will be guided interactively through the process. Only the superuser (root) can create new users. Therefore, you have to run the adduser command as administrator and with root rights.

These settings are alternatively possible via the web interface of the Beckhoff Device Manager (see: Beckhoff Device Manager: web interface).

Requirements:

Create new users as follows:

1. Enter the command doas adduser in the console.
Confirm the command with the administrator's password.
2. Specify a user name and enter the full name.
Username: NewUser
Full name: John Doe
3. In the next step you can set the Uid, Login group, the secondary Login group and the Login class. Press [Enter] to apply default settings.
Uid [Leave empty for defaults]:
Login group [NewUser]:
Login group is NewUser. Invite NewUser into other groups? []:
Login class [default]:
4. Under Shell (sh csh tcsh nologin) [sh]: select a shell with which the user logs in. By default, the Bourne shell (sh) is used for scripts and the command line. However, for direct interaction via the command line, tcsh is particularly suitable as a shell thanks to its better clarity and a larger range of functions.
Shell (sh csh tcsh nologin) [sh]: tcsh
5. For the following parameters press [Enter] to apply the default settings.
Home directory [/home/NewUser]:
Home directory permissions (Leave empty for default):
Use password-based authentication? [yes]:
Use an empty password? (yes/no) [no]:
6. In this step you can decide whether a password for the user should be generated randomly or whether you want to assign a password yourself.
Use a random password? (yes/no) [no]:
7. Then press [Enter] to apply the default settings under Lock out the account after creation? [no]:.
A summary is then issued. You can check your entries and create another user if required. In addition, the generated user password is displayed.
adduser: INFO: Successfully added (NewUser) to the user database.
adduser: INFO: Password for (NewUser) is: Luq39oGIwPhjT
Add another user? (yes/no): no
Goodbye!