[Samba] Samba problems

Marian Mlcoch, Ing mm at tsmp.sk
Wed Nov 6 11:16:01 GMT 2002


Hello
for newbies is configuration PDC not best way. Try replace your global section with this simply conf
workgroup is default named WORKGROUP leave this first.

[global]
        printing = lprng
        dns proxy = No
        security = user
        encrypt passwords = Yes
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        netbios name = CH-HOMES
        log file = /var/log/samba/%m.log
        domain master = yes
        local master = yes
        preferred master = yes
        os level = 65
        username map = /etc/samba/smbusers
        max log size = 100

and on clients not set logon to NT but only clasic login to windows ms net but use name and password from smbpasswd

Primary problem is home/Peter/tmp directory you copy this but you must change owner of this all to Peter
afther copy you run
chown -R Peter /home/Peter
chmod -R 700 /home/Peter
...
then restart samba and try clients. You can try this with your global section PDC then.


  ----- Original Message ----- 
  From: CH ENGINEERING CO. 
  To: samba at lists.samba.org 
  Sent: Wednesday, November 06, 2002 10:47 AM
  Subject: [Samba] Samba problems


  Hi!
      
  I tried to set up a Samba PDC but so far it is not yet working (3 weeks passed).  I posted my Samba problems to news groups and discussion forums, but the suggestions given were not able to solve my problems.  I went through a few HOWTOs and followed the step-by-step guide, still can not solve my problem.  I am realy new to Linux and Samba and hope sameone will guide me through.

  (1) What I did: -
      (a) I installed the samba samba-swat, samba-common, samba-client, and  edited /etc/samba/smb.conf files as following: -

      # Samba config file created using SWAT
      # from chee_ch.com (127.0.0.1)
      # Date : 2002/10/26
      # Global parmeters
      [global]

      ;Basic server setting 3/11/2002
      workgroup = CH LINUX SER
      netbios name = CH-HOMES
      server string = Primary Domain Server running Samba %v
      socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF = 8192 SO_SNDBUF = 8192
      
      ;PDC and master browser setting
      os level = 64
      preferred master = yes
      local master = yes
      domain master = yes
      domain logons = yes
      dns proxy = No

      ;Security and logging settings
      security = user
      encrypt passward = Yes
      log file = /var/log/samba/%m.log
      log level = 2
      max log size = 0
      host allow = 127.0.0.1 192.168.0.0/255.255.255.0
      samba passwd file = /etc/samba/ambpasswd
      passward program = /usr/bin/passwd %u
      passwd chat = *New*passward* %n\n*
      *Retype*new*passwd*%n\n*passwd:*all*
      *authentication*token*updated*successfully*
      
      add user script = /usr/sbin/useradd -d /dev/null -g machines -c 'Mechine Account' -s /bin/false -M %u

      # Domain groups:
      domain admin group = root at adm
      
      [homes]
      comment = Home Directories
      browseable = no
      writable = yes
      
      [profiles]
      path = /home/samba/profiles
      writable = yes
      brawseable = no
      create mask = 0600
      directory mask = 0700

      [netlogon]
      comment = Network Logon Services
      path = /home/netlogon
      read only = yes
      browseable = no
      write list = @admins

      [printers]
      comment = All printer
      path = /var/spool/samba
      printeble = Yes
      brawsable = No

      (b) I added the Samba user Peter and Secretary: -
     
      #useradd -m Peter
      #passwd Peter
        .....
      #cat /etc/passwd | /usr/bin/mksmbpasswd.sh > /etc/samba/smbpasswd
      #smbpasswd Peter
        .....

      (c) I repeated the steps to create account for Secretary.

      (d) I added root passward to the Samba
        
      #smbpasswd -a root
        ......

       (e) I did
        
       #groupadd -g 200 admins
       #groupadd -g 201 machines
       #mkdir -m 0775 /home/netlogon
       #chown root.admins /home/netlogon
       #mkdir /home/samba /home/samba/profiles
       #chmod 1757 /home/samba/profiles

       (f) At the Windows 98 client I change to Client for Microsoft Networks, Primary Network Logon, Logon to NT Domain.

       (g) I copied AutoCAD files to /home/Peter/tmp/  and /home/Secretary/tmp/

  (2) What happened

       I re-booted the Samba PDC and Samba started fine.  From the Network Neighborhood of window client (Peter and Secretary) I can see CH LINUX SER.  I double  
       clicked it I can see CH-HOMES (netbios name).  I double clicked CH-HOMES, it prompted for passwd, I enter and I went in CH-HOMES.  But, it is an ***empty***
       folder.  I supposted be able to see to Peter and Secretary folders.  And and in Peter and Secretary I supposted be able to see tmp .......

      I rechecked the smb.conf file many, many times to ensure no spelling error etc, nothing worked out.  In the CH-HOMES folder of window client, it is still an empty
      folder.

  (3) What I like to see
     
      A Samba PDC serving 10 over window clients, each window client login to their respective /home diectory.


  What has happened?!  I am new to Linux and Samba, and help will be greatly appreciated.

  Thank you

  Oswald










-------------- next part --------------
HTML attachment scrubbed and removed


More information about the samba mailing list