Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 599 Bytes

sudo.md

File metadata and controls

32 lines (26 loc) · 599 Bytes

On Fedora wheel is the equivalent of sudo group on Ubuntu.

To edit sudo rights

$> visudo
$> echo 'gautier ALL=(root) NOPASSWD: /bin/mount,/bin/umount' >> /etc/sudoers
$> echo '%wheel ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
$> echo 'gautier ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
$> sed -i 's/#.*\(%wheel.*NOPASSWD.*\)/\1/' /etc/sudoers

See my sudo right

$> sudo -l
$> dnf install sudo
$> usermod -aG sudo gautier
$> usermod -aG wheel gautier

sudo logs

$> cat /var/log/audit/audit.log

sudo cleans environment.

$> sudo env