[Samba] Samba PDC issue

Tarak Ranjan tarak.ranjan at liqwidkrystal.com
Fri Nov 16 14:26:39 GMT 2007



Bruno Pirajá Moyle wrote:
> Tarak Ranjan escreveu:
>>
>> Hi List,
>>          As i m new to this list. i have some issue with my Samba PDC. 
>> Main problem is user's roaming profile is not working. NTUSER.DAT --- 
>> DENY_WRITE. this is coming . can not load you profile . loading 
>> default profile.......
>>
>> Please guide me is there any changes has to made.....
>> Here is my smb.conf file. Version 2.2 OS Redhat 9
>>
>> [global]
>>     workgroup = LK
>>     netbios name = HOBBES
>>     server string = Domain Controller
>>     encrypt passwords = Yes
>>     pam password change = Yes
>>     passwd program = /usr/bin/passwd %u
>>     passwd chat = *New*password* %n\n *Retype*new*password* %n\n 
>> *passwd:*all*authentication*tokens*updated*successfully*
>>     unix password sync = Yes
>>     log file = /var/log/samba-log.%m
>>     max log size = 0
>>     socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
>>     printcap name = cups
>>     domain admin group = @admin
>>     add user script = /usr/sbin/useradd -d /dev/null -g 100 -s 
>> /bin/false -M %u
>>     domain logons = Yes
>>     os level = 64
>>     preferred master = Yes
>>     domain master = Yes
>>     dns proxy = No
>>     lock dir = /var/lock/samba
>>     printing = cups
>>
>> [homes]
>>     comment = Home Directories
>>     read only = No
>>
>> [netlogon]
>>     comment = Network Logon Service
>>     path = /usr/local/samba/lib/netlogon
>>     guest ok = Yes
>>     browseable = No
>>     share modes = No
>>
>> [Profiles]
>> #    path = /usr/local/samba/profiles
>>     path = /home
>>     write list = @smbusers @root
>>     read only = No
>>     create mask = 0600
>>     directory mask = 0700
>>     preserve case = No
>>     short preserve case = No
>>     hide files = /desktop.ini/ntuser.ini/NTUSER.*/
>>     browseable = No
>>
>> [pdfprinter]
>>     comment = Print to PDF
>>     path = /tmp
>>     create mask = 0700
>>     printable = Yes
>>     postscript = Yes
>>     print command = /usr/local/bin/print2pdf %s %m %U
>>     queuepause command = /bin/true
>>     queueresume command = /bin/true
>>     printer driver = HP Color LaserJet PS
>>
>> [Softwares]
>>     comment = Software
>>     path = /var/softwares
>>     write list = @admin
>>     create mask = 0765
>>     guest ok = Yes
>>
>> [HR_DESK]
>>     comment = Human Resource
>>     path = /home1/hr
>>     write list = seeja
>>     read only = No
>>     guest ok = Yes
>>
>> [QA_Repository]
>>     path = /var/QA_Repo
>>     valid users = padma rabindra kiran thomas akula bhargavi anoel 
>> nathan shreesha amit noor
>>     read only = No
>>
>> [printers]
>>     comment = All Printers
>>     path = /var/spool/samba
>>     create mask = 0700
>>     guest ok = Yes
>>     printable = Yes
>>     browseable = No
> Add the logon home option to the global sections:
> 
> [global]
> ...
> ...
> logon home = \\%L\Profiles\%U
> ...
> 
> Explaining:
> 1. The %L resolves to the server netbios name;
> 2. Profiles is the name of the profiles share
> 3. %U will resolve to the user name that is trying to access the share, 
> for example if the user "john" is trying to log on, %U will resolve to john
> 
> You are using the home directory, so you don't need to add any permissions.
> 
> This should work
> 
> 

Hi,
       As my user's profile store in /home/<user>/profile

if i use logon home = \\%L\home\%U\profile

that will fine or not....


More information about the samba mailing list