Re: [Samba] Automating Creation Of Profile Directories For New Users

2005-10-04 Thread Craig White
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.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Automating Creation Of Profile Directories For New Users

2005-10-04 Thread Timothy Dutton
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.

 

Thanks

 

Tim

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba