Wednesday, May 11, 2011

mv old_name new_name

Hi guys:
I have changed my blog name to a more "artistic" name.
ThinkIT...SolveIT, because that is what we do, think a problem, a solution and then, solve it.
Greetings
Oscar

Tuesday, May 10, 2011

vsftpd and mkhomedir module

After a lot of time without posting here I decided to share a solution that may save a lot of time and headaches when configuring an vsftpd+AD+pam environment. Normally,  when we wanna authenticate our Linux boxes against Active Directory we set up winbind and pam with mkhomedir.so module. It allows us to create automatically users' home dirs when the user logins.

#echo "session required pam_mkhomedir.so skel=/etc/skel/ umask=0077" >> /etc/pam.d/system-auth

it works for sshd perfectly, BUT, not for vsftpd. For vsftpd set session_support=YES in vsftpd.conf, restart vsftpd and .... That's all...
As you see mkhomedir is a session type module and you must enable support in vsftpd.

Greetings
Oscar