start program instead of login prompt

This is a discussion on start program instead of login prompt within the Linux Administration forums, part of the Linux Forums category; Hi all, I have this little problem: for a somewhat embedded linux system I require the system on console tty1 ...


Go Back   Usenet Forums > Linux Forums > Linux Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-29-2004
Axel Bock
 
Posts: n/a
Default start program instead of login prompt

Hi all,

I have this little problem: for a somewhat embedded linux system I
require the system on console tty1 NOT to display a login prompt, but to
start a shell script with a certain user and group ID.

Alas my changings in /etc/inittab didn't produce any useful result
(terminal tty1 was just unusable after that :-) so I'm asking here.

What do I have to do to achieve an autologin on console 1 with a certain
user and to execute a program afterwards - automatically?


Thanks in advance for any help & greetings,

Axel.
Reply With Quote
  #2 (permalink)  
Old 01-30-2004
Cameron Kerr
 
Posts: n/a
Default Re: start program instead of login prompt

Axel Bock <axel@romteck.com> wrote:
> Hi all,
>
> I have this little problem: for a somewhat embedded linux system I
> require the system on console tty1 NOT to display a login prompt, but to
> start a shell script with a certain user and group ID.


You want to use rungetty. Don't just change /etc/inittab to run another
program, because there are terminal issues, such as carriage return
sequences. You'll find that if you don't use rungetty, you may very well
get stair-stepping.

--
Cameron Kerr
cameron.kerr@paradise.net.nz : http://nzgeeks.org/cameron/
Empowered by Perl!
Reply With Quote
  #3 (permalink)  
Old 01-30-2004
Ben Measures
 
Posts: n/a
Default Re: start program instead of login prompt

Axel Bock wrote:
> Hi all,
>
> I have this little problem: for a somewhat embedded linux system I
> require the system on console tty1 NOT to display a login prompt, but to
> start a shell script with a certain user and group ID.
>
> Alas my changings in /etc/inittab didn't produce any useful result
> (terminal tty1 was just unusable after that :-) so I'm asking here.
>
> What do I have to do to achieve an autologin on console 1 with a certain
> user and to execute a program afterwards - automatically?
>
>
> Thanks in advance for any help & greetings,
>
> Axel.


You were along the right lines. If you don't want the login prompt, you
will need to look at /etc/inittab to do this for you. Basically just
remove the gettys - 'man inittab'.

If you then want to start a script, have a look at rc. This varies
(greatly sometimes) between distributions but you can look for its path
in /etc/inittab for a lead. It is then up to the script to then drop
privileges (from root).

--
Ben M.

----------------
What are Software Patents for?
To protect the small enterprise from bigger companies.

What do Software Patents do?
In its current form, they protect only companies with
big legal departments as they:
a.) Patent everything no matter how general
b.) Sue everybody. Even if the patent can be argued
invalid, small companies can ill-afford the
typical $500k cost of a law-suit (not to mention
years of harassment).

Don't let them take away your right to program
whatever you like. Make a stand on Software Patents
before its too late.

Read about the ongoing battle at http://swpat.ffii.org/
----------------

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:17 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0