Creating users

From Calculate Linux

Jump to: navigation, search

Contents

Creating users

After installing the desktop versions Calculate Linux, the user creates a guest. Use account guest to learn about the system.

To use the root user authentication password Je3ksTt7, user guest has a password guest.

It is recommended to change the root password during the installation system.

Password guest user can change as needed. By default, you can remotely access the computer, using ssh-only protocol under the user root.

The process of substitution of passwords when installing the system on multiple computers can automate. To install the first computer system, change passwords command passwd, then save the file /etc/shadow in your profile.

Adding user

Linux operating system copes with a fairly good control over the actions of the user. For example, you can ban or allow access to CD/DVD-drive, sound card and even computer games. For giving the user the necessary powers, add it to the appropriate system group.

To avoid exposing the system at risk by root prohibited from working in a graphical environment. Therefore you have to temporarily switch to the console by clicking on the keyboard Ctrl+Alt+F1. At the invitation to enter a login, enter the root, then a password. Then do the following commands:

/usr/sbin/useradd --groups wheel,audio,cdrom,video,cdrw,usb,plugdev,games,vboxusers login
/bin/passwd login

As a login, you can use any word, consisting of Latin letters and numerals.

When creating a user should not create him home directory. In this case, when first entering the system will create customized user profile.

In the example set up a user with access to several groups:

  • wheel - an opportunity to gain root privileges using su;
  • audio - provides access to the sound card;
  • cdrom - access to CD/DVD drive;
  • video - access to a TV-tuner;
  • cdrw - Record at CD/DVD-discs;
  • usb - access to mp3-player, flash drive;
  • plugdev - USB-mount devices;
  • games - access to the games;
  • vboxusers - virtualbox access to the Windows OS to run out of Linux (for the implementation should start module vboxdrv).

To return to the graphic invitation of a password exit the session by executing exit (or pressing Ctrl+D), then press Alt+F7.

Changing access rights

To add to the group created user, use gpasswd. Example adding user in the group games:

gpasswd -a login games

Transferring users

When you install or reinstall Calculate Linux from running Linux-system, all users with access will be moved. It would be necessary only to re-assign them passwords, using passwd on the scheme described above.

Views
Personal tools