Vinod,

I am also learning Samba and setting up a simple PDC.

So far, I have the smb.conf file below.  This has been tested against a
Windows XP SP2 PC, and I have tried Samba 3.0 and 3.2.

I suggest you DON'T have a 'valid users ..' or 'invalid users ..' line -
just give EVERYONE access until you have the system working, at least.

The following are working -
PC can join the domain
Domain user can logon to the PC
A profile is created for the PC user where specified (you might need to
create the folder and set permissions)
The H: drive is mapped in the PC session

The following doesn't work -
can do almost nothing with usrmgr.exe
can do almost nothing with srvmgr.exe
cannot install a print driver on the server in the Windows XP PC session
('Unable to install .... drivers.  Access denied')

smb.conf:
[global]
        workgroup = DOMAINNAME
        netbios name = LINUXPC
        obey pam restrictions = Yes
        dns proxy = No
        idmap uid = 15000-20000
        idmap gid = 15000-20000
        os level = 35
        log file = /var/log/samba/log.%m
        max log size = 1000
        domain master = Yes
        domain logons = Yes
        passdb backend = tdbsam
        wins support = true
        unix password sync = Yes
        syslog = 0
        panic action = /usr/share/samba/panic-action %d
        pam password change = Yes

        # Printing ..
        load printers = yes
        printing = cups
        printcap name = cups

        # Script definitions ..
        add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/nobody
%u
        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/groupmod -A %u %g
        delete user from group script = /usr/sbin/groupmod -R %u %g
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*
\spassword:* %n\n *password\supdated\ssuccessfully* .

        # User defaults ..
        logon drive = H:
        logon home = \\%L\%U
        logon path = \\%L\Profiles\%U
        logon script = logon.bat

        # Important for XP clients !! ..
        server signing = auto
        server schannel = Auto

[homes]
        comment = Home Directories
        valid users = %S
        read only = No
        browseable = No

[printers]
        comment = All Printers
        path = /var/spool/samba
        use client driver = Yes
        create mask = 0600
        guest ok = Yes
        printable = Yes
        browseable = No
        printer admin = root, linux

[print$]
        comment = Printer Drivers Share
        path = /var/lib/samba/printers
        write list = linux, root

[netlogon]
        comment = Network Logon Service
        path = /var/lib/samba/netlogon
        admin users = root, linux
        guest ok = Yes
        browseable = No

[Profiles]
        comment = Roaming Profile Share
        path = /var/lib/samba/profiles
        read only = No
        profile acls = Yes
        browsable = No

[share]
        path = /var/lib/samba/share
        comment = General share
        available = yes
        browsable = yes
        public = yes
        writable = yes

On Tue, 2008-07-29 at 06:37 +0200, Helmut Hullen wrote:

> Hallo, Vinod,
> 
> Du (vinodrag) meintest am 29.07.08:
> 
> > I want to set up simple Samba PDC using tdbsam password backend.
> > samba is installed on fedora 8 GNU/Linux.
> > my network is about 30 windowsXP Pro. SP-2  static IP addressed
> > machines.
> 
> Look at "http://samba.org";
> On the left side you find "learn Samba", with links to the "HOWTO" and  
> to "examples".
> 
> By the way: don't write the whole message into the headline - thank you!
> 
> Viele Gruesse!
> Helmut
> 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Reply via email to