Thu, February 15, 2018 ยท 1 min read

Configuring sudo access to user on fedora 26

Configuring sudo access to user on fedora 26

  1. Add user to the wheel group:
[root@server /home/cipher]# usermod -aG wheel cipher
  1. Check the commands the user can execute:
[cipher@server ~]$ sudo -l
Matching Defaults entries for cipher on server:
    !visiblepw, env_reset, env_keep="COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR LS_COLORS"...

User cipher may run the following commands on server:
    (ALL) ALL
  1. Check sudo access:
[cipher@server ~]$ sudo systemctl status sshd
* sshd.service - OpenSSH server daemon
   Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2018-02-16 14:47:00 IST; 42min ago