Re: How to disable console on serial when needed ?



In article <emnldv$b26$1@xxxxxxxxxxxxx>, Raymond <skyflame@xxxxxxxx> wrote:

<SNIP>

"How can I completely disable / redirect the console input/output after I
already login in a console "

This is what I mean here.

My problem is :

I using bash to atomaticly loggin the console on serial to run a certain
program,
So anytime I connect to the serial , I can trace the output and input
commands.

Actually you don't (use bash to login). What happens is that the login
starts up bash for you.
So you may install a user (called application), which uses your
application as a shell instead of bash.
Look at ``man adduser'' especially the -s option.
The application runs, and when it terminates, your application
user is logged out.

<SNIP>
I believe I can achieve my aim by modify some kernel code sooner or later
but I wonder , isn't there just a simple way to do it ?

The above is certainly simple, if it fits your bill.


Raymond

Groetjes Albert

--
--
Albert van der Horst, UTRECHT,THE NETHERLANDS
Economic growth -- like all pyramid schemes -- ultimately falters.
albert@xxxxxxxxxxxxxxxxxx http://home.hccnet.nl/a.w.m.van.der.horst
.



Relevant Pages

  • Re: Captive login and runlevel 5
    ... process has asked for a login shell. ... from a shell to set up the environment variables needed by ncurses. ... user runs ssh user@yourmachine bash, the sshd runs $SHELL -c bash. ... I bet it wouldn't work from a text console in run level 3. ...
    (uk.comp.os.linux)
  • Re: logging console login
    ... What i want in common with Linux and Solaris is console logins to ... least network logins can be bared from root login and force people to login as themselves and switch user, but root login at the console is ... Solaris and Linux log this event without any further configuration, but with HP and AIX for that matter they dont at the moment. ...
    (comp.sys.hp.hpux)
  • Re: 5.0.7 machine locks up!
    ... > 1 login is through the Digi Terminal Server ... > had one console on tty02 in an existing shell where I could type ... This could very well be a disk hang. ... Link scodb into the kernel, break into the kernel debugger when the ...
    (comp.unix.sco.misc)
  • Re: Login broken and rc.conf variables suddenly invalid after kernel/world upgrade (?!?!)
    ... Garrett Cooper wrote: ... now it appears that my system is screwed up, due to bash. ... single user mode, but every single time I login it complains about ...
    (freebsd-questions)
  • Re: OPA0 Console connection
    ... will start a login upon unsolicited input, ... to be expected behaviour, yes, assuming that the console serial ... console serial line connection, and you should see failed logins ... depending on what's initiating the chatter on the line. ...
    (comp.os.vms)