Solved

mgetty without asking login?

Posted on 1998-10-17
4
232 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

756 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