Solved

mgetty without asking login?

Posted on 1998-10-17
4
226 Views
Last Modified: 2010-03-18
How can I configure mgetty not to ask any login but start my own script at once?
0
Comment
Question by:dda
  • 2
4 Comments
 
LVL 2

Expert Comment

by:alexbik
ID: 1587198
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
 
LVL 4

Author Comment

by:dda
ID: 1587199
I simply can't beleive that. I think there should be the decision. Any more ideas?
0
 
LVL 3

Accepted Solution

by:
marcelofr earned 100 total points
ID: 1587200
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
 
LVL 4

Author Comment

by:dda
ID: 1587201
Thanks. You were more strong in your answer, but I should share 100 points between you and alexbik :)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now