AD Users and homes

Status
Not open for further replies.

blobb

Cadet
Joined
Aug 30, 2011
Messages
2
Hi,

i want to use home folders for the AD-Users.

so i activated the home directories at the CIFS Service, without home directories browsing and the path /mnt/RAID/homes

but now i must create for every user a directory

Code:
[root@nas] /# mkdir /mnt/RAID/homes/DOMAIN/TESTUSER/

[root@nas] /# chown "DOMAIN\TESTUSER" /mnt/RAID/homes/DOMAIN/TESTUSER/

[root@nas] /# chmod 0700 /mnt/RAID/homes/DOMAIN/TESTUSER/



is it possible to do this on the fly, when somebody log in for the first time ?

i found something like this:

Code:
If you'd rather have users home directories generated on the fly when they first login to your Linux machine, add this line of code in /etc/pam.d/system-auth.

session required /lib/security/pam_mkhomedir.so 

on Samba wiki

but there is no system-auth on FreeNAS and i can't save it permanently.
How could i solve this ?
 
Status
Not open for further replies.
Top