Solved

mgetty without asking login?

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

832 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