[Samba] Automating Creation Of Profile Directories For New Users

Craig White craigwhite at azapple.com
Tue Oct 4 13:21:23 GMT 2005


On Tue, 2005-10-04 at 10:35 +0100, Timothy Dutton wrote:
> Hi
> 
> This might seem to be a stupid question but here goes anyway.
> 
>  
> 
> I am running a samba server as a PDC with roaming profiles enabled.  My
> profiles are stored on the linux box at /samba/profiles/username.
> 
> I tried setting a script to create the profile at the same time as adding
> the new user
> 
>  
> 
> /usr/sbin/useradd -m u%
> 
> cd /samba/profiles
> 
> mkdir %u
> 
>  
> 
> When I tried adding the a new user I got the message user not found and
> found that the script had created a folder %u in the profiles share.
> 
> Any thoughts as to where I might be going wrong here?
> 
>  
> 
> Is it possible to add the entries to the /etc/skel or do these only apply to
> the home directory.
----
that's for a home directory

the user's profile directory should and can be made by the user when
necessary and there's no need to script it at all. If you need to have
some default settings, that is what the 'Default User' is for - see
Samba documentation.

Craig


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the samba mailing list