Re: adding a user to sudo

Jude DaShiell <[email protected]>
Newsgroups gmane.linux.redhat.blinux.general
Message-ID <[email protected]>
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 <[email protected]>
> Reply-To: Linux for blind general discussion <[email protected]>
> To: [email protected]
> 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
> [email protected]
> https://www.redhat.com/mailman/listinfo/blinux-list

--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.