The translation is temporarily closed for contributions due to maintenance, please come back later.
English
Administration Tasks
Additional tasks mimic any other Linux administration tasks and use available utilities included in the Fedora distribution. Some tasks are described below with specific links to other Fedora Documentation or upstream documentation.
General Resources:
https://docs.fedoraproject.org/en-US/fedora/f29/system-administrators-guide/[Fedora 29 System Administrator’s Guide]
https://docs.fedoraproject.org/en-US/quick-docs/[Fedora Quick Docs]
Man pages
User Management
The initial image includes a locked root account without a password, a ssh key is provisioned via the provisioning service using xref:ignition.adoc[ignition].
$ id testuser
uid=1000(testuser) gid=1000(testuser) groups=1000(testuser),10(wheel)
$ getent passwd testuser
testuser:x:1000:1000::/home/testuser:/bin/bash
Package installation may add additional users to own files and processes on the system. For example the httpd package installation scripts will create a user apache if one does not already exist.
$ id apache
uid=48(apache) gid=48(apache) groups=48(apache)
$ getent passwd apache
apache:x:48:48:Apache:/usr/share/httpd:/sbin/nologin
This account is typically a system account with a UID below 1000, no password, and a shell of `/sbin/nologin`. Accounts with a nologin shell cannot be used interactively. These accounts also do not have a home directory created in `/home`
To manually create a system account for your application use the useradd command:
$ sudo useradd -r -s /sbin/nologin appuser
$ getent passwd appuser
appuser:x:992:981::/var/home/appuser:/sbin/nologin
Centralized users accounts (LDAP, Kerberos) can be configured with `authconfig` after the client packages, including `sssd`, have been installed. The `/etc/nsswitch.conf` file is already configured to look for sss as well as files and altfiles for account information.
Fedora 29 Administration Guide: https://docs.fedoraproject.org/en-US/fedora/f29/system-administrators-guide/basic-system-configuration/Managing_Users_and_Groups/[Managing Users and Groups]
User accounts which are members of the wheel group automatically have full privileges with the `sudo` command. This is from the following lines in the sudo configuration file:
$ sudo grep wheel /etc/sudoers
## Allows people in group wheel to run all commands
%wheel ALL=(ALL) ALL
# %wheel ALL=(ALL) NOPASSWD: ALL
Edits to this configuration file should be made with the `visudo` command so that syntax is checked on exit. Instead of editing the main configuration file, grant other users the ability to issue specific commands as a different user by adding a configuration file to the `/etc/sudoers.d/` directory.
Fedora 29 Administration Guide: https://docs.fedoraproject.org/en-US/fedora/f29/system-administrators-guide/basic-system-configuration/Gaining_Privileges/[Gaining Privileges]