Captive login and runlevel 5
- From: Martin Gregorie <martin@xxxxxxxxxxxxxxxxxxx>
- Date: Sun, 26 Feb 2006 11:17:14 +0000
One login on my house server (FC4 / Gnome) is a captive login. By that I mean that the last two lines in .bash_profile are:
km amanda
exit
where km is a menu program that runs in a Linux console or an xterm terminal window. It works as expected from a console login at run level 3 or from a remote ssh login at run level 5. However, any attempt to login to that user from the console at run level 5 logs out again almost immediately with a message about an unexpectedly short login and a warning that this could be due to a system or configuration problem.
How can I adapt .bash_profile to work cleanly at both run level 3 and run level 5?
At a guess substituting
gnome-terminal --command="km amanda"
for "km amanda" should work at run level 5, but what's the best way to detect that run level != 5 or that the login is via ssh and just issue "km amanda" ?
--
martin@ | Martin Gregorie
gregorie. |
org | Zappa fan & glider pilot
.
- Follow-Ups:
- Re: Captive login and runlevel 5
- From: Peter Benie
- Re: Captive login and runlevel 5
- Prev by Date: Re: Partitioning Plan
- Next by Date: Re: Partitioning Plan
- Previous by thread: Partitioning Plan
- Next by thread: Re: Captive login and runlevel 5
- Index(es):
Relevant Pages
|
|