Date: Mon, 20 Jan 2003 07:24:10 -0800 From: "Aaron Burke" <aburke@nullplusone.com> To: <freebsd-questions@FreeBSD.ORG>, <hampi@rootshell.be> Subject: Re: login.conf tc=default Message-ID: <035101c2c097$fed43530$fb00a8c0@thebe> References: <20030117214342.GA1046@gicco.homeip.net> <1042840641.328.57.camel@gyros> <20030118140043.GB477@gicco.homeip.net>
next in thread | previous in thread | raw e-mail | index | archive | help
(forgive outlook express, I too hate its formatting) ----- Original Message ----- From: "Hanspeter Roth" <hampi@rootshell.be> To: "FreeBSD User Questions List" <freebsd-questions@FreeBSD.ORG> Sent: Saturday, January 18, 2003 6:00 AM Subject: Re: login.conf tc=default > On Jan 17 at 16:57, Joe Marcus Clarke spoke: > > > On Fri, 2003-01-17 at 16:43, Hanspeter Roth wrote: > > > Hello, > > > > > > I'm trying to setup an alternate welcome file for a specific user. > > > I have the following entry in login.conf: > > > > > > user:\ > > > :welcome=/etc/resolv.conf:\ > > > :tc=default: > > > > > > But the user is presented the default /etc/motd at login. > > > How will he see /etc/resolv.conf? > > > > After you modified this, did you run cap_mkdb? > > Well, I failed to notice that this is necessary. > But also now as I've done it I still get the default /etc/motd. > Is there something more to consider? Perhaps there is, I am guessing that you want a custom message for a specific user. I had to do this for a user named dustman on my machine. It was as simple as adding the name dustman (also in login.conf) to the password database file. I have pasted in two entries from vipw, notice the word dustman in both of them. One is for user test2, the other for user dustman. dustman:IJcNND58gQpL6:1011:1011:dustman:0:0:Dustin D Brand:/home/dustman:/usr/lo cal/bin/bash test2:$1$hcveRAF2$oIEp0sKgLzEB1WYsafGry.:1012:1012:dustman:0:0:Test Account for Login Class:/home/test2:/usr/local/bin/bash > > -Hanspeter > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message Aaron Burke aburke@magnesium.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?035101c2c097$fed43530$fb00a8c0>