Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Apr 2008 13:34:41 -0500
From:      Martin McCormick <martin@dc.cis.okstate.edu>
To:        freebsd-questions@freebsd.org
Subject:   Re: Sudo Commands on New 6.2 System Cause Last Login Message. 
Message-ID:  <200804031834.m33IYfW5011284@dc.cis.okstate.edu>

next in thread | raw e-mail | index | archive | help
Steven Friedrich writes:
>> 26testokcns root $sudo touch .hushlogin
>Well, it IS odd that you're using sudo when logged in as root 8o)

	I was cd'd to the /root directory, but was logged in as
me. It kind of got me there for a second, but notice the $ in
the prompt.

	Interestingly enough, sudo -v doesn't cause this
message.

>Did you edit /usr/local/etc/sudoers ?
>I tried you're commands here and I don't get the Last login message.

	I am not getting it on most other FreeBSD systems except
the newest 2 systems I just finished updating in the last couple
of days.

>In sudoers, do you have "root    ALL=(ALL) ALL" ?

Yes. That's where I added all of the users who can sudo. I even
copied it out of another sudoers file so as not to miss anybody.

	The FreeBSD version I am using is
FreeBSD 6.2-RELEASE-p11

Interestingly, the system I am on right this minute is the same
version and does not exhibit this behavior.

Martin McCormick



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804031834.m33IYfW5011284>