Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to write a PAModule which will use compare the inserted username against a file. If the username exists in the file, it will change the username to root (since the username does not really exist as a local account) and then will log in as root.

However, I've noticed that it's not possible (I guess that at least not by default) to change the username via OpenSSH.

Is there a way of enabling this option (modifying OpenSSH code is also a valid option, but surely not a preferred one.)

share|improve this question
    
What's wroing with having the client connect as root in the first place? –  Keith May 5 '12 at 21:14
    
@Keith the idea is to confirm authentication via an external module without the user to exist as a local account. –  mseren May 5 '12 at 21:51
    
So you want any user to map to root? –  Keith May 5 '12 at 21:53
    
@Keith yes, as long as the external module confirms it. –  mseren May 5 '12 at 21:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.