adding a user to sudo

Jude DaShiell jdashiel at panix.com
Tue Oct 25 22:42:16 UTC 2016


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 at gmail.com>
> Reply-To: Linux for blind general discussion <blinux-list at redhat.com>
> To: blinux-list at redhat.com
> 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 at redhat.com
> https://www.redhat.com/mailman/listinfo/blinux-list

-- 




More information about the Blinux-list mailing list