Find the answer to your Linux question:
Results 1 to 5 of 5
I've been running an old CentOS server that I got from a friend as a samba file server for quite some time now and I figured it was time to ...
  1. #1
    Just Joined! linduxed's Avatar
    Join Date
    Aug 2003
    Location
    Sweden, Järfälla
    Posts
    87

    Moved to Debian, Samba doesn't work.

    I've been running an old CentOS server that I got from a friend as a samba file server for quite some time now and I figured it was time to upgrade. The problem is however that samba doesn't want to work on the new Debian Lenny server.

    The system was set up so that a group of twenty or more Windows XP laptops logged onto the Domain BARFOO with the CentOS usernames and passwords. There were some shared directories with corresponding subdirectories, access to them was handled with groups, no ACLs.
    On the new server I've already implemented ACLs so those are a must (the previous rights system was a mess), I've copied the folders, and I've set up some of the users from the previous system on the new one.

    The main issue is that the same laptops that once could get in on the file server now refuse to do so. I'm trying to access the server through My Network Places -> Show Computers -> Entire Network -> Barfoo -> Penguin (the name of the server), and besides taking a very long time after clicking the "Entire Network" icon, the Barfoo domain doesn't allow the user to connect, providing me with a "This server is not configured for transactions." error with the standard "You may not have permissions blablabla" on the top. At times I get the "Server list not available." (or something like that) instead.

    This is the old smb.conf:
    Code:
    # Samba config file created using SWAT
    # from xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx)
    # Date: 2006/07/28 15:32:10
    
    # Global parameters
    [global]
    	workgroup = BARFOO
    	server string = Barfoo Samba Server
    	wins support = Yes
    	dns proxy = No
    	name resolve order = bcast
    	log file = /var/log/samba/%m.log
    	max log size = 50
    	passdb backend = tdbsam
    	domain logons = Yes
    	logon path =
    	logon drive = H:
    	logon home =
    	display charset = ISO8859-1
    	idmap gid = 16777216-33554431
    	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    	domain master = Yes
    	local master = Yes
    	idmap uid = 16777216-33554431
    	logon script = scripts\barfoo_main.bat
    	dos charset = 850
    	os level = 65
    	create mode = 0770
    	preferred master = Yes
    	unix charset = ISO8859-1
    	directory mode = 770
    	add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u
    	add machine script = /usr/sbin/useradd -d /dev/null -g 102 -s /bin/false -M %u
    
    
    [homes]
    	comment = Home Directories
    	read only = No
    	browseable = No
    
    [netlogon]
    	comment = Network Logon Service
    	path = /export/netlogon
    	guest ok = Yes
    
    [export]
    	comment = 
    	writable = no
    	path = /export
    	available = yes
    	browseable = No
    
    [Documents]
    	writable = yes
    	path = /export/documents
    
    [Projects]
    	writable = yes
    	path = /export/projects
    
    [Storage]
    	comment = 
    	writable = yes
    	path = /export/storage
    	available = yes
    The new configuration:
    Code:
    #======================= Global Settings =======================
    
    [global]
    
    ## Browsing/Identification ###
    
       workgroup = BARFOO
       server string = %h server
    
    #  wins support = no
       dns proxy = no
    ;  name resolve order = lmhosts host wins bcast
    
    #### Debugging/Accounting ####
    
      log file = /var/log/samba/log.%m
      max log size = 1000
      syslog = 0
    
      panic action = /usr/share/samba/panic-action %d
    
    ####### Authentication #######
    
      security = user
      encrypt passwords = true
      passdb backend = tdbsam
      obey pam restrictions = yes
      unix password sync = yes
    
      passwd program = /usr/bin/passwd %u
      passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
      pam password change = yes
    
    ########## Domains ###########
    
      domain logons = yes
    
      logon path = \\%N\profiles\%U
      logon drive = H:
    
      logon script = logon.cmd
    
      add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
      add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
    
    #======================= Share Definitions =======================
    
    [homes]
      comment = Home Directories
      browseable = no
      read only = no
      create mask = 0700
      directory mask = 0700
      valid users = %S
    
    [netlogon]
       comment = Network Logon Service
       path = /home/samba/netlogon
       guest ok = yes
       read only = yes
       share modes = no
    
    [profiles]
       comment = Users profiles
       path = /home/samba/profiles
       guest ok = no
       browseable = no
       create mask = 0600
       directory mask = 0700
    
    # Manually configured shares.
    # Barfoo legacy folders.
    
    [Projects]
    	read only = no
    	path = /home/samba/projects
    
    [Documents]
    	read only = no
    	path = /home/samba/documents
    
    [Storage]
    	read only = no
    	path = /home/samba/storage
    
    # Auto-added printer shares.
    
    [printers]
       comment = All Printers
       browseable = no
       path = /var/spool/samba
       printable = yes
       guest ok = no
       read only = yes
       create mask = 0700
    
    [print$]
       comment = Printer Drivers
       path = /var/lib/samba/printers
       browseable = yes
       read only = yes
       guest ok = no
    This new file is really a lot wordier, since it's an auto-generated one that follows with the Debian package. I removed all the commented documentation and all the commented options (there was a lot of it).

    If any other information is needed I'll post it right away.

  2. #2
    Just Joined! linduxed's Avatar
    Join Date
    Aug 2003
    Location
    Sweden, Järfälla
    Posts
    87
    I've noticed that it seems like every username I try I get the "BARFOO domain not available" at the login screen on the XP laptops.

  3. #3
    Linux Newbie
    Join Date
    Jul 2005
    Location
    Australia (Down Under)
    Posts
    141
    im sure you have tried this... but just incase, have you tried to remount the XP boxes on the new domain?
    Linux is the OS of tomorrow, Here today!!

  4. #4
    Just Joined! linduxed's Avatar
    Join Date
    Aug 2003
    Location
    Sweden, Järfälla
    Posts
    87
    Please explain the procedure you're thinking of then I may answer the question of whether I've done it.

  5. #5
    Linux Newbie
    Join Date
    Feb 2006
    Location
    Dover, DE
    Posts
    112
    did you check your /etc/hosts.allow?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •