Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-21-2006, 04:43 AM   #1
Registered: Aug 2005
Location: Europe
Posts: 63

Rep: Reputation: 15
Access Roaming profiles with Samba as a Domain Controller

for someone who's been using Linux for the best part of 3 months, I sure like a challenge...

So here I am, I ve converted all the office servers over to Linux (was on RH9, but now upgraded to Fedora Core 4, which I love), and have decided to setup a PDC using samba3.0.21b-3, well, the latest anyhow.

Now, I can join the domain no probs, it authenticates machines & users, but the Xp machine tells me it cannot access the roaming profile.

for simplicity, here are the lines I believe are the issue:

logon path = \\home\profiles\%U
logon home = \\home\%U\.profile

# script per l'aggiunta degli utenti
add user script = /usr/sbin/useradd -m %u
delete user script = /usr/sbin/userdel -r %u
add group script = /usr/sbin/groupadd %g
delete group script = /usr/sbin/groupdel %g
add user to group script = /usr/sbin/usermod -G %g %u
add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null %u
passwd program = /usr/bin/passwd %u
passwd chat = "*New password:*" %n\r "*New password (again):*" %n\r \ "*Password changed*"

path = /home/netlogon

path = /home/%U/.samba/

path = /home/%U
If you need it, at the bottom of this post you can find the entire smb.conf file.

Folders named after the users have been automatically created in /home

I have created folders

Out of desperation I have also created manually
/home/<user name>/.samba
/home/profiles/<user name>

And set everything in the folder to 777, but still cannot find the roaming profile

Could anyone help please?
Also, if its just a matter of creating & setting permissions on fodlers, is there any way I can make it automatic when I add a user?
Thanks a mil in advance


Here's the entire smb.conf file:
# Impostazioni globali del server samba

# Nome del netbios, identifica la nostra macchina samba sulla rete windows
netbios name = SERVER

# Nome del gruppo di lavoro nel nostro caso rappresenta il Nome Dominio del PDC
workgroup = DOMAIN

# Commento allegato al nome della macchina
server string = [Samba server %v]

# Configura il server per accettare connessioni solo dalle reti o dagli host seguenti
hosts allow =

# Imposta il livello di protezione per la condivisione file e per l'accesso al PDC, user sfrutta l'autenticazione mediante autenticazione
security = user

# Imposta la crittografia per le password
encrypt passwords = yes

# Imposta alcuni parametri di connessione
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

# Imposta le interfacce sulle quali accettare le connessioni
interfaces = lo eth0 eth0:1

# Imposta il bind sulle interfacce
bind interfaces only = yes

# Imposta samba per essere master locale
local master = yes

# Valore con il quale samba partecipa all'elezione del master di DOMINIO
os level = 65

# Imposta samba per essere il master del DOMINIO
domain master = yes

# Imposta samba per essere il master preferito per il dominio
preferred master = yes

# Non accetta connessioni senza password
null passwords = no

# Nasconde i file non leggibili dall'utente
hide unreadable = yes

# Nasconde i file nascosti (file e directory che iniziano con .[filename])
hide dot files = yes

# Imposta l'autenticazione per accedere al dominio
domain logons = yes

# Imposta gli script che l'host esegue una volta autenticato sul dominio
logon script = login.bat OR %U.bat

# Directory dove si trovano i dati dell'utente sul PDC
logon path = \\home\profiles\%U

# Aggiunge la home dell'utente sulla macchina samba come unita' di rete condivisa H:
logon drive = H:

# Home del dominio
logon home = \\home\%U\.profile

# Imposta samba per diventare anche un wins server
wins support = yes

# Imposta l'ordine per la ricerca di un host appartenente al dominio
name resolve order = wins lmhosts host bcast

# Imposta samba per non diventare un dns proxy
dns proxy = no

# Samba diventa un time server
time server = yes

# Livello di loging
log level = 3

# nome del file di log
log file = /var/log/samba/%m.log

# dimensione max del file di log
max log size = 50

# nome del file contente le pssword per gli utenti samba
smb passwd file = /etc/samba/smbpasswd

# script per l'aggiunta degli utenti
add user script = /usr/sbin/useradd -m %u
delete user script = /usr/sbin/userdel -r %u
add group script = /usr/sbin/groupadd %g
delete group script = /usr/sbin/groupdel %g
add user to group script = /usr/sbin/usermod -G %g %u
add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null %u
passwd program = /usr/bin/passwd %u
passwd chat = "*New password:*" %n\r "*New password (again):*" %n\r \ "*Password changed*"

# Imposta il charset
unix charset = ISO8859-1

path = /home/netlogon
guest ok = no
read only = yes
browseable = no

path = /home/%U/.samba/
browseable = no
writeable = yes
default case = lower
preserve case = no
short preserve case = no
case sensitive = no
hide files = /desktop.ini/ntuser.ini/NTUSER.*/
write list = @smbusers @root
create mask = 0600
directory mask = 0700

path = /home/%U
browseable = no
valid users = %S
read only = no
guest ok = no
inherit permissions = yes

comment = Public Stuff
path = /home/space
public = yes
read only = yes
browseable = yes
write list = @users
Old 02-22-2006, 04:18 PM   #2
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 31
Profile shares are special and need the config option "profile acls" to get the permissions right, the following entry is a cut 'n' paste from our server at work.
        path = /usrdata/data/premisprof
        # inherit permissions = Yes
        profile acls = Yes
        writeable = yes


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba, roaming profiles, user access, printing and folder redirection... GD_19 Linux - Networking 1 08-30-2005 01:16 AM
Samba as a PDC+ Roaming Profiles... tarballed Linux - Networking 22 08-12-2004 07:19 AM
samba, roaming profiles help. mehesque Linux - Networking 0 05-03-2004 08:07 PM
Samba roaming profiles absco Linux - Networking 1 08-25-2003 10:44 AM
samba pdc without roaming profiles hsa Linux - General 11 03-20-2003 03:05 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:45 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration