Re: [SLUG] Pulling hair out...

From: Eben King (eben1@tampabay.rr.com)
Date: Wed Jun 15 2005 - 10:51:14 EDT


On Wed, 15 Jun 2005, Chuck Hast wrote:

> On 6/15/05, Eben King <eben1@tampabay.rr.com> wrote:
> > On Wed, 15 Jun 2005, Kwan Lowe wrote:
> >
> > > Chuck Hast wrote:
> > > > Back last year I got some great ideas on logging directly in to a app. Indeed
> > > > I have it set up on a machine and has been working just fine.
> > >
> > > I wasn't sure from your post -- what app?
> >
> > Yeah, and how is it invoked?
>
> The app is something called fpacnode. It is a amateur radio application.
> When it is called it will ask for a radio callsign and then if it is happy
> with the response put the connnectee on to the node application which
> allow manipulation of the node.

Under what conditions does it _not_ work?

> Here is the line in my password file that aims the shell to it.
>
> fpacuser:x:1004:1004:fpac users,,,,Access to fpac
> node:/home/fpacuser:/usr/sbin/fpacnode
>
> When the user ssh's into the box with fpacuser, and they give the
> password, they are passed to the node shell, where they are challenged for
> their callsign.
>
> I am using the same thing on the other machine. But when you attempt to
> log in it dumps you just after you get a OS version and some other stuff.
>
> I have a directory /home/fpacuser that has a .bash_profile in it, the
> file has the following
> /usr/sbin/fpacnode

Maybe rename that file (if it has no bashisms in it) to .profile? Could be
the login session is ignoring what /etc/passwd says and running something
besides bash, maybe /bin/sh.

> I am not sure what is going on, trying to figure out how to trace what is
> going on so I can try to fix it.

In a failed logon, try "echo $$" to get the shell's PID, then "ps axfww |
less -S" and look for that PID.

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar

Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." - Albert Einstein

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:12:00 EDT