First get root privileges.
Next type:
echo 'user ALL=(ALL) NOPASSWD:ALL' >>/etc/sudoers
done, and user need not type password each time they access sudo either.
To require password echo statement would be changed to:
echo 'user ALL=(ALL)' >>/etc/sudoers
Hope this helps.
On Tue, 25 Oct
2016, Kristoffer Gustafsson
wrote:
Date: Tue, 25 Oct 2016 16:04:28
From: Kristoffer Gustafsson <kg.kristoffer@xxxxxxxxx>
Reply-To: Linux for blind general discussion <blinux-list@xxxxxxxxxx>
To: blinux-list@xxxxxxxxxx
Subject: adding a user to sudo
Hi.
I need to add a user to the sudoers file.
can you help me on how to do this?
I try to make a root command. for example sudo reboot.
then I get a message that my user doesn't exist in the sudoers file.
/Kristoffer
--
Kristoffer Gustafsson
Sal?ngsgatan 7a
tel:033-12 60 93
mobil: 0730-500934
_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/blinux-list
--
_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/blinux-list