I have been using ubuntu for a while and have come to like sudo.
Â*
Now I am moving over to gentoo and would like to set this up
as for me it is far more convenient to just type sudo rather than the su
business.
Â*
However when I emerge sudo, install and run it the following
comes up with:
Â*
We trust you have received the usual lecture from the local System
Administrator.
It usually boils down to these three things:
Â*
Â*Â*Â*
#1) Respect the privacy of others.
Â*Â*Â*
#2) Think before you type.
Â*Â*Â*
#3) With great power comes great responsibility.
Â*
Password:
Â*
Which is all very good but I don’t really want to see
it every time, I have searched on how to remove it but have found nothing, I did
download sudo tar and do a grep and found it in one of the c files but as I am
not a programmer I don’t know if I can simply remove this or not.
Â*
How can I, when I sudo,:
Â*
1.get rid of all the text
2.change the password line to something, dare I say it, like
ubuntu, e.g. [sudo] password for paul, I assume paul is just a $USER
Â*
Cheers
Â*
paul
__________ Information from ESET Smart Security, version of virus signature database 3203 (20080620) __________
The message was checked by ESET Smart Security.
http://www.eset.com
06-20-2008, 03:11 PM
Anthony Metcalf
Sudo config
Paul Melvin wrote:
HI,
Â*
I have been using ubuntu for a while and have
come to like sudo.
Â*
Now I am moving over to gentoo and would like to
set this up
as for me it is far more convenient to just type sudo rather than the
su
business.
Â*
However when I emerge sudo, install and run it
the following
comes up with:
Â*
We trust you have received the usual lecture from the local System
Administrator.
It usually boils down to these three things:
Â*
Â*Â*Â*
#1) Respect the privacy of others.
Â*Â*Â*
#2) Think before you type.
Â*Â*Â*
#3) With great power comes great responsibility.
Â*
Password:
Â*
Which is all very good but I don’t really want
to see
it every time, I have searched on how to remove it but have found
nothing, I did
download sudo tar and do a grep and found it in one of the c files but
as I am
not a programmer I don’t know if I can simply remove this or not.
Â*
How can I, when I sudo,:
Â*
1.get rid of all the text
2.change the password line to something, dare I
say it, like
ubuntu, e.g. [sudo] password for paul, I assume paul is just a $USER
Â*
Cheers
Â*
paul
Look at /etc/sudoers It is very well documented.
I have a line like
# Same thing without a password
%wheelÂ* ALL=(ALL)Â*Â*Â*Â*Â*Â* NOPASSWD: ALL
which mean sthat anyone in the wheel group can use sudo as you want.
Anthony
06-20-2008, 03:15 PM
"Ward Poelmans"
Sudo config
2008/6/20 Paul Melvin <paul@assured-networks.co.uk>:
> 1.get rid of all the text
Add:
Defaults !lecture
to you sudoers file
> 2.change the password line to something, dare I say it, like ubuntu, e.g.
> [sudo] password for paul, I assume paul is just a $USER
Look at the sudoers man page. It's all there.
Ward
--
gentoo-user@lists.gentoo.org mailing list
06-20-2008, 03:17 PM
Etaoin Shrdlu
Sudo config
On Friday 20 June 2008, 16:58, Paul Melvin wrote:
> How can I, when I sudo,:
>
>
>
> 1.get rid of all the text
The "lecture" directive in /etc/sudoers seems to control that, although
it's not terribly clear.
> 2.change the password line to something, dare I say it, like ubuntu,
> e.g. [sudo] password for paul, I assume paul is just a $USER
This is controlled by the "passprompt" directive.
man sudoers has decent explanations of both.
--
gentoo-user@lists.gentoo.org mailing list
06-20-2008, 03:23 PM
"Conway S. Smith"
Sudo config
On Fri, 20 Jun 2008 16:11:31 +0100
Anthony Metcalf <Anthony.Metcalf@anferny.ath.cx> wrote:
> Paul Melvin wrote:
> >
> > HI,
> >
> >
> >
> > I have been using ubuntu for a while and have come to like sudo.
> >
> >
> >
> > Now I am moving over to gentoo and would like to set this up as
> > for me it is far more convenient to just type sudo rather than
> > the su business.
> >
> >
> >
> > However when I emerge sudo, install and run it the following
> > comes up with:
> >
> >
> >
> > We trust you have received the usual lecture from the local System
> >
> > Administrator. It usually boils down to these three things:
> >
> >
> >
> > #1) Respect the privacy of others.
> >
> > #2) Think before you type.
> >
> > #3) With great power comes great responsibility.
> >
> >
> >
> > Password:
> >
> >
> >
> > Which is all very good but I don’t really want to see it every
> > time, I have searched on how to remove it but have found nothing,
> > I did download sudo tar and do a grep and found it in one of the
> > c files but as I am not a programmer I don’t know if I can simply
> > remove this or not.
> >
> >
> >
> > How can I, when I sudo,:
> >
> >
> >
> > 1.get rid of all the text
> >
> > 2.change the password line to something, dare I say it, like
> > ubuntu, e.g. [sudo] password for paul, I assume paul is just a
> > $USER
> >
> >
> Look at /etc/sudoers It is very well documented.
>
> I have a line like
> > # Same thing without a password
> > %wheel ALL=(ALL) NOPASSWD: ALL
> which mean sthat anyone in the wheel group can use sudo as you want.
>
> Anthony
>
Note that the correct way to edit the /etc/sudoers file is w/ the
command visudo as root, rather than editing the file directly in your
favorite editor. Set the EDITOR environment variable to your
preferred editor & visudo should use it.
Conway S. Smith
--
gentoo-user@lists.gentoo.org mailing list
06-20-2008, 03:25 PM
"Paul Melvin"
Sudo config
> -----Original Message-----
> From: Etaoin Shrdlu [mailto:shrdlu@unlimitedmail.org]
> Sent: 20 June 2008 16:17
> To: gentoo-user@lists.gentoo.org
> Subject: Re: [gentoo-user] Sudo config
>
> On Friday 20 June 2008, 16:58, Paul Melvin wrote:
>
> > How can I, when I sudo,:
> >
> >
> >
> > 1.get rid of all the text
>
> The "lecture" directive in /etc/sudoers seems to control that, although
> it's not terribly clear.
>
> > 2.change the password line to something, dare I say it, like ubuntu,
> > e.g. [sudo] password for paul, I assume paul is just a $USER
>
> This is controlled by the "passprompt" directive.
>
> man sudoers has decent explanations of both.
> --
> gentoo-user@lists.gentoo.org mailing list
Thanks Ward and Etaoin, will do
__________ Information from ESET Smart Security, version of virus signature database 3203 (20080620) __________
The message was checked by ESET Smart Security.
http://www.eset.com
--
gentoo-user@lists.gentoo.org mailing list
06-20-2008, 09:54 PM
Stroller
Sudo config
On 20 Jun 2008, at 15:58, Paul Melvin wrote:
...
However when I emerge sudo, install and run it the following comes
up with:
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
Password:
Which is all very good but I don’t really want to see it every
time,...
On my systems I have only seen this *every* time I `sudo` when my
clock has been broken.
Suggest you `emerge ntp` and add ntp-client to the default runlevel.
> On my systems I have only seen this *every* time I `sudo` when my clock has
> been broken.
That's because the lecture option has the value of once and when your
time is messed up, it resets.
Try adding:
Defaults !lecture
to your sudoers. No need to emerge ntp for that.