• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 243
  • Last Modified:

mgetty without asking login?

How can I configure mgetty not to ask any login but start my own script at once?
0
dda
Asked:
dda
  • 2
1 Solution
 
alexbikCommented:
Hi,

As far as I know, you can't. You can however add a 'magic' to your login.defs file. In this way, you can start your own script after mgetty detects this 'special' loginname. It won't ask for a password, mgetty never does. It usually starts 'login' to get the password.

I dont think this will be the solution for you, because it's more or less the same as adding a user without a password and giving this user your script as shell..


0
 
ddaAuthor Commented:
I simply can't beleive that. I think there should be the decision. Any more ideas?
0
 
marcelofrCommented:
alexbik is right. I don't know your needs, but I can imagine you will ask the user some kind of authentication. Change your script to receive the first token of the chat as the first parameter. Then change /bin/login for your script in the /etc/mgetty+sendfax/login.config:
* - - /bin/login @
(the @ means whatever parameter your login: prompt reveives...) Then invoque mgetty in your /etc/inittab as:
/sbin/mgetty -i /dev/null ttySx
adding -p "some_prompt_opcionally".
Of course there's allways the hackers way (if you can read C code, you can get whatever you want: mgetty sources are very clear.)

Good luck
0
 
ddaAuthor Commented:
Thanks. You were more strong in your answer, but I should share 100 points between you and alexbik :)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now