Date: Thu, 3 Apr 2008 14:06:43 -0400 From: Steven Friedrich <freebsd@insightbb.com> To: freebsd-questions@freebsd.org Cc: Martin McCormick <martin@dc.cis.okstate.edu> Subject: Re: Sudo Commands on New 6.2 System Cause Last Login Message. Message-ID: <200804031406.43853.freebsd@insightbb.com> In-Reply-To: <200804031706.m33H6bdU081726@dc.cis.okstate.edu> References: <200804031706.m33H6bdU081726@dc.cis.okstate.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 03 April 2008 01:06:37 pm Martin McCormick wrote: > I noticed that every sudo command I issue is accompanied > by a "Last login" message. > > 25testokcns root $ls .hushlogin > ls: .hushlogin: No such file or directory > 26testokcns root $sudo touch .hushlogin > Last login: Thu Apr 3 11:38:24 from testokcns.osuokc > 27testokcns root $sudo date > Last login: Thu Apr 3 11:41:10 from testokcns.osuokc > Thu Apr 3 11:41:17 CDT 2008 > > I was trying to see if a .hushlogin file in /root might snuff > out the messages, but it had no effect. > > The commands always work but I would rather not get that message > each time. Am I missing something obvious? > > Thanks. > > > Martin McCormick WB5AGZ Stillwater, OK > Systems Engineer > OSU Information Technology Department Network Operations Group > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" Well, it IS odd that you're using sudo when logged in as root 8o) Did you edit /usr/local/etc/sudoers ? I tried you're commands here and I don't get the Last login message. I'm currently running 7.0-RELEASE, but this machine was originally installed way back during 5.x days and I installed sudo way back then. In sudoers, do you have "root ALL=(ALL) ALL" ?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804031406.43853.freebsd>