Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

So I've got my RHEL 5 servers running Likewise power broker so that I can use active directory to authenticate users. The idea was to streamline the whole process of getting new users onto a server the problem that has come up is that these users will almost always be using WinSCP to connect to the server. In testing today with a fresh account that had never logged in they were able to connect but they had no home directory they were just defaulted to /home.

Next I logged in with that account over a stardard ssh2 connection and it didn't create their home account either (I assume because it was their 2nd login) this is also a problem.

I know if I login with a fresh account through ssh first, then that will create their home account and everything works perfectly, but I need to do something to make sure that if the user has never logged in, or doesn't have a /home/$USER account, one gets created for them.

What is the best way to go about this?

share|improve this question
1  
I am just speaking from past experience using LDAP, I am not familiar with Likewise power broker, so bear in mind this may not apply. Usually PAM would be used the create the home dir, see goo.gl/ZKIcN under "Create home directory on login". Do you have something similar setup? –  Fred Clausen Jan 3 '13 at 15:37
    
There is something similar that happens when they login to a ssh terminal session, but that gets skipped it seems if they do anything else as their first time. I'll try what you listed though because that could very well work. Thanks –  MoSiAc Jan 4 '13 at 13:00
    
Wanted to say, that I tried this and it didn't seem to work. I like likewise sort of takes over all user controls, but it was a good idea. Thanks –  MoSiAc Jan 4 '13 at 14:35
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

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.