From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Bayer Subject: Re: Run app on login Date: Sun, 14 Nov 2004 10:44:24 -0800 (PST) Message-ID: <20041114184424.66418.qmail@web60610.mail.yahoo.com> References: Mime-Version: 1.0 Return-path: In-Reply-To: Sender: linux-hams-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Linux-hams List Curt, You will also need to change /etc/shells to include the new login script or the "radio" user may not be able to log in. It will not be able to ftp for certain. '73 Jim - KC9AOP Curt Mills wrote:On Sat, 13 Nov 2004, Bud Rogers wrote: > On Saturday 13 November 2004 20:47, Chuck Hast wrote: > > Folks, > > I am trying to figure out how to have a particular application start > > up when a user logs in with a specified login. > > Example, > > User logs in with "radio" password "hamradio" > > Instead of bringing up a prompt, I want a login of radio to start up > > a special application. I am sure that Linux can do it, just not quite > > sure how to do so. > > Anything you put in a user's .bashrc or .bash_profile will be run > whenever that user logs in. You can have it set up things in your > environment, or run certain commands. Man bash will give you the > details. Another method is to create a special user "radio" and make the shell for that user be the application you want to run. When the application is exited the person is logged out. The shell is the last entry on the line in the /etc/passwd file. Change from "/bin/bash" to the path/filename of the executable. -- Curt, WE7U. archer at eskimo dot com http://www.eskimo.com/~archer Lotto: A tax on people who are bad at math. - unknown Windows: Microsoft's tax on computer illiterates. - WE7U. The world DOES revolve around me: I picked the coordinate system!" - To unsubscribe from this list: send the line "unsubscribe linux-hams" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com