Timothy Dutton
2005-Oct-04 09:32 UTC
[Samba] Automating Creation Of Profile Directories For New Users
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
Craig White
2005-Oct-04 13:21 UTC
[Samba] Automating Creation Of Profile Directories For New Users
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.
Reasonably Related Threads
- default roaming profile for Samba 3.0.2a / WinXP P
- Users being deleted from Domain Users group on Samba BDC during vampire process of migration
- Folder Redirection, Roaming Profiles and Working Offline
- User folder automatic creation - should use skel, but no
- Fw: Users being deleted from Domain Users group on Samba BDC during vampire process of migration