Re: How to copy only skeleton files while creating a existing user's homes directory?

2009-01-16 Thread Jonathan McKeown
On Friday 16 January 2009 12:48:38 O. Hartmann wrote:
> Hello,
> I have the following situation:
>
> Users are stored in OpenLDAP. I need to create homes directories on new
> machine memebers in the pool of workstations and do not want the usage
> of an automated creation of loggin in user via pam_mkhomedir. Creation
> should be done manually.
> My question: is it possible to use a FreeBSD tool/command like 'pw(8)'
> only for copying and initiating an existant user's home?
>
> I tried simply pw useradd USER -m -b /homes/ for that purpose, but pw
> errors me saying the user USER already exists (is a OpenLDAP user).

Try usermod instead of useradd.

Jonathan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


How to copy only skeleton files while creating a existing user's homes directory?

2009-01-16 Thread O. Hartmann

Hello,
I have the following situation:

Users are stored in OpenLDAP. I need to create homes directories on new 
machine memebers in the pool of workstations and do not want the usage 
of an automated creation of loggin in user via pam_mkhomedir. Creation 
should be done manually.
My question: is it possible to use a FreeBSD tool/command like 'pw(8)' 
only for copying and initiating an existant user's home?


I tried simply pw useradd USER -m -b /homes/ for that purpose, but pw 
errors me saying the user USER already exists (is a OpenLDAP user).


Thanks in advance,
Oliver
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"