pam_mkhomedir and solaris 10

hi, i must to use linux pam_mkhomedir module and i want to know 縲hich considerations i must to have to do this?Thanks!!!
[134 byte] By [maximatta] at [2007-11-26 13:12:12]
# 1

hi,

i compile mkhomedir module from linux-pam-0.81 to use with solaris 10 (i use this document "http://www.webservertalk.com/message1674632.html" to do that) and put

in "etc/pam.conf" the following rule:

othersession requiredpam_mkhomedir.so.1 skel=/etc/skel/ umask=0022

(there are a diference between with parameter umasn, because in linux its umnask, but i don want to change que source)

i think the module is load because when i put the parameter "umnask" i receive the following message in log:

PAM-mkhomedir[2555]: [ID 553420 auth.error] unknown option; umnask=0052

so i think the module is loaded ok.

when i login whit the user, the system give me the option to chose which desktop

enviroment i want, so if i chosse:

CDE enviroment: he start these enviroment but i need to do some task (about "DT

messaging system could not be started") and he not create the home directory for

user, and return to login screen

JDesktopn enviroment: he return to login screen.

but i receive the followin log message:

automountd[313]: [ID 834250 daemon.error] Mount of /export/home/toto4 on

/home/toto4: No such file or directory

because the home directory not exist.

縞ould anybody make work pam_mkhomedir ok?

縜nybody knows why the module "dont work"?

縣ow can i trace the accions that happening?

Thanks!!!

maximatta at 2007-7-7 17:28:52 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2
> " http://www.webservertalk.com/message1674632.html" toHaven't looked at it yet, however, in your own words, what does this utility do and why do you think that you need it on Solaris?alan
alan.paea at 2007-7-7 17:28:52 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3

hi, i want to autenticate solaris clients via ldap, now i can autenticate this clients via native client, witch use pam to autenticate this clients and i must to have users home directories created.

the problem comes in first login of user, he dont have home directory, in linux thats is resolved using pam_mkhomedir module and including a rule in pam configuration, so when a new user login, the module create the home directory.

in solaris this module not exist so, i tried to compile and use the module.

Salu2

maximatta at 2007-7-7 17:28:52 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 4

> to have users home directories created.

> the problem comes in first login of user, he dont

> have home directory, in linux thats is resolved using

> pam_mkhomedir module

do this:

man useradd

look at the -m option, that's all that I have ever needed to do.

http://docs.sun.com/app/docs/doc/816-5166/6mbb1kqk4?a=view

-m

Create the new user's home directory if it does not already exist. If the directory already exists, it must have read, write, and execute permissions by group, where group is the user's primary group.

alan

alan.paea at 2007-7-7 17:28:52 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 5
hi...but.... this are under comand line, so 縣ow i do this under firts login process?mmmm.... i look more, but....:(:)
maximatta at 2007-7-7 17:28:52 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 6
hi縞an anybody make work autodir ok in solaris 10 (or pam_mkhodir.so) ?thanks!!
maximatta at 2007-7-7 17:28:52 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...