Solved

mgetty without asking login?

Posted on 1998-10-17
4
227 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

895 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

14 Experts available now in Live!

Get 1:1 Help Now