* Run app on login
@ 2004-11-14 2:47 Chuck Hast
2004-11-14 3:06 ` Bud Rogers
0 siblings, 1 reply; 6+ messages in thread
From: Chuck Hast @ 2004-11-14 2:47 UTC (permalink / raw)
To: Linux-hams List
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.
--
Chuck Hast
To paraphrase my flight instructor;
"the only dumb question is the one you DID NOT ask resulting in my going
out and having to identify your bits and pieces in the midst of torn
and twisted metal."
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Run app on login
2004-11-14 2:47 Run app on login Chuck Hast
@ 2004-11-14 3:06 ` Bud Rogers
2004-11-14 3:53 ` Curt Mills
2004-11-15 15:44 ` Curt, WE7U
0 siblings, 2 replies; 6+ messages in thread
From: Bud Rogers @ 2004-11-14 3:06 UTC (permalink / raw)
To: Linux-hams List
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.
HTH 73
--
Bud Rogers <budr@netride.net> KD5SZ EM05vb
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Run app on login
2004-11-14 3:06 ` Bud Rogers
@ 2004-11-14 3:53 ` Curt Mills
2004-11-14 18:44 ` Jim Bayer
2004-11-15 15:44 ` Curt, WE7U
1 sibling, 1 reply; 6+ messages in thread
From: Curt Mills @ 2004-11-14 3:53 UTC (permalink / raw)
To: Bud Rogers; +Cc: Linux-hams List
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!"
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Run app on login
2004-11-14 3:53 ` Curt Mills
@ 2004-11-14 18:44 ` Jim Bayer
2004-11-14 23:53 ` Chuck Hast
0 siblings, 1 reply; 6+ messages in thread
From: Jim Bayer @ 2004-11-14 18:44 UTC (permalink / raw)
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 <archer@eskimo.com> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Run app on login
2004-11-14 18:44 ` Jim Bayer
@ 2004-11-14 23:53 ` Chuck Hast
0 siblings, 0 replies; 6+ messages in thread
From: Chuck Hast @ 2004-11-14 23:53 UTC (permalink / raw)
To: Linux-hams List
On Sun, 14 Nov 2004 10:44:24 -0800 (PST), Jim Bayer <kc9aop@yahoo.com> wrote:
> 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
I made the app the shell and as soon as the user drops out of it they
are logged out, that
was my original worry when they were logging in as they got a command
prompt then
they had to start the app. Now the login starts the app as the shell
and it is done.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Run app on login
2004-11-14 3:06 ` Bud Rogers
2004-11-14 3:53 ` Curt Mills
@ 2004-11-15 15:44 ` Curt, WE7U
1 sibling, 0 replies; 6+ messages in thread
From: Curt, WE7U @ 2004-11-15 15:44 UTC (permalink / raw)
To: Bud Rogers; +Cc: Linux-hams List
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.
Or .profile.
Run when logging in: .profile or .bash_profile
Run when any new shell/subshell is started: .bashrc
If you're dealing with an environment where one process or one user
might start multiple shells or subshells, then you want to stick
with the .profile or .bash_profile files, as then your application
will only get run once per login.
--
Curt, WE7U 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!"
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-11-15 15:44 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-14 2:47 Run app on login Chuck Hast
2004-11-14 3:06 ` Bud Rogers
2004-11-14 3:53 ` Curt Mills
2004-11-14 18:44 ` Jim Bayer
2004-11-14 23:53 ` Chuck Hast
2004-11-15 15:44 ` Curt, WE7U
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.