[Samba] How to Upgrade from 2.2.8a to 3.0.6

keith_allen at safeway.co.uk keith_allen at safeway.co.uk
Fri Sep 10 14:54:14 GMT 2004


As part of my continuing Pd into this problem I have:-
 
setup two more users on my NT domain
 
op86vb
op86vc
 
I then did
 
getent passwd xxxdom+op86vb      it returned
XXXDOM+op86vb:x:20592:10000::/smb/homes/op86vb:/bin/false
 
getent passwd xxxdom+op86vc       it returned
XXXDOM+op86vc:x:20593:10000::/smb/homes/op86vc:/bin/false
 
so far so good
 
I then created a home directory for op86vb in /smb/homes
then I chown xxxdom+op86vb op86vb
 
still good
 
then I tried to access the home directory both from windows and Linux
 
smbclient //localhost/op86vb -U citdom+op86vb
 
This failed with an NT tree error
 
about 5minutes later I noticed that now when I did
 
getent passwd xxxdom+op86vb      it returned nothing
 
 
but when I type
getent passwd xxxdom+op86vc       it still returns
XXXDOM+op86vc:x:20593:10000::/smb/homes/op86vc:/bin/false
 
the only difference between the two is that op86vc has not tried to access
the samba server, I don't know if this helps you to help me fix my problem.
 
If I do a getent passwd|less I can see both the ids in the file.
 
 
 
| cd nsswitch
| cp libnss_winbind.so /lib
Make sure that there is a symlink from
/lib/libnss_winbind.so.2 -> /lib/libnss_winbind.so
 
* Yes I had already setup the symlink
| if I do a directory listing it now looks like this
|
|
| drwxrws---  22  16043 CITDOM+Domain Admins
make sure nscd is not caching previous negative
lookups.  Also, is 16043 within the winbind uid range ?
 
*nscd is not running
*winbind uid range in 10000 - 50000
| If I type chown OP86V op86v it works but is using
| a uid of 20266
Hmmm...make sure you set 'winbind enable local
accounts = no'.  Now run 'getent passwd OP86V'.
If you get an entry back, run 'wbinfo -x OP86V'.
Now run getent passwd OP86V' again.  See if this helps.
*Did have to change 'winbind enable local accounts = no'
* followed rest of your instructions but still no joy
 
Here are the 2.2.8a smb.conf files
 
[global]
      netbios name = SRVSAM02
      netbios aliases =    SRVSAM02A
      workgroup = xxxdom
      security = domain
      encrypt passwords =    yes
      map to guest = bad user
      name resolve order = wins lmhosts host bcast
      dns proxy = no
      password server = server1 server2
      preferred master =    no
      domain master = no
      local master = no
      log level = 2
      log file =    /var/log/samba
      wins server =    172.19.1.1
      winbind uid =    10000-50000
      winbind gid =    10000-50000
      winbind separator =    +
      winbind cache time =     10
      template homedir =    /smb/homes/%U
[homes]
      comment = Home directory for %U
      path =   /smb/homes/%U
      read only = no
      browseable = no
      inherit permissions =    no
      inherit acls = yes
      create mask = 0660
      force user = %U
#     force create mode =     0660
      directory mask =    0770
      force directory mode =0770
      root preexec =    /usr/local/bin/buildhome %U %G
[admin]
      comment =   Administrative Share
      path = /smb
      valid users =    @xxxdom+"Domain Admins"
      admin users =    @xxxdom+"Domain Admins" administrator
      force user = root
      read only = no
      browseable = no
      create mask = 0660
      directory mask =    0770
[share]
      comment =   share
      path =   /smb/data/share
      browseable = yes
      read only = no
[itdrive]
      comment =   itdrive
      path =   /smb/data/itdrive
      browseable = yes
      inherit permissions =    no
      read only = no
      create mask = 0660
      force create mode =     0660
      directory mask =    0770
      force directory mode =     0770
[dataxx]
      comment =   dataxx
      path =   /smb/data/dataxx
      browseable = yes
      inherit permissions =    no
      read only = no
      create mask = 0660
      force create mode =     0660
      directory mask =    0770
      force directory mode =     0770
 
 
Here is the 3.0.6 smb.conf file
 
[global]
      netbios name = SRVSAM02
      netbios aliases =    SRVSAM02A
      workgroup = xxxdom
      security = domain
      encrypt passwords =    yes
;     socket options = TCP_NODELAY SO_SNDBUF=1500 SO_RCVBUF=1500
      map to guest = bad user
      name resolve order = wins lmhosts host bcast
      dns proxy = no
      password server = server1 server2
      preferred master =    no
      domain master = no
      local master = no
      log level = 2
      log file =    /var/log/samba
      wins server =    172.19.1.1
      winbind uid =    10000-50000
      winbind gid =    10000-50000
      winbind separator =    +
      winbind cache time =     10
      template homedir =    /smb/homes/%U
[homes]
      comment = Home directory for %U
      path =   /smb/homes/%U
      read only = no
      browseable = no
      inherit permissions =    no
      inherit acls = yes
      create mask = 0660
      force user = %U
#     force create mode =     0660
      directory mask =    0770
      force directory mode =0770
      root preexec =    /usr/local/bin/buildhome %U %G
[admin]
      comment =   Administrative Share
      path = /smb
      valid users =    @xxxdom+"Domain Admins"
      admin users =    @xxxdom+"Domain Admins" administrator
      force user = root
      read only = no
      browseable = no
      create mask = 0660
      directory mask =    0770
[share]
      comment =   share
      path =   /smb/data/share
      browseable = yes
      read only = no
[itdrive]
      comment =   itdrive
      path =   /smb/data/itdrive
      browseable = yes
      inherit permissions =    no
      read only = no
      create mask = 0660
      force create mode =     0660
      directory mask =    0770
      force directory mode =     0770
[dataxx]
      comment =   dataxx
      path =   /smb/data/dataxx
      browseable = yes
      inherit permissions =    no
      read only = no
      create mask = 0660
      force create mode =     0660
      directory mask =    0770
      force directory mode =     0770
 
All the other parameters are at default
Thanks for your help so far, I hope the about smb.conf file help you to spot
my problem, could it be something to do with the location of smbpasswd,
sorry if these ar silly questions, i'm still fairly new to samba and linux.
 
Thanks Keith
cheers, jerry
- ---------------------------------------------------------------------
Alleviating the pain of Windows(tm)      ------- http://www.samba.org 
<<http://www.samba.org>>  
<<http://www.samba.org <<http://www.samba.org>> >> 
GnuPG Key                ----- http://www.plainjoe.org/gpg_public.asc 
<<http://www.plainjoe.org/gpg_public.asc>>  
<<http://www.plainjoe.org/gpg_public.asc 
<<http://www.plainjoe.org/gpg_public.asc>> >> 
"If we're adding to the noise, turn off this song"--Switchfoot (2003)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org 
<<http://enigmail.mozdev.org>>  
<<http://enigmail.mozdev.org <<http://enigmail.mozdev.org>> >> 
iD8DBQFBPxQ5IR7qMdg1EfYRAkrRAKC6d8NtfFZDYS8zLhzVdOvJbimaAwCeOqnb
5bJpON62dlVpIXSghJv/Vv4=
=7Uqe
-----END PGP SIGNATURE-----
****************************************************************************
Unencrypted electronic mail is not secure and may not be authentic.
If you have any doubts as to the contents please telephone to confirm.
The information contained in this message is confidential and is
intended for the addressee(s) only. If you have received this message in
error or there are any problems, please notify the originator
immediately. The unauthorised use, disclosure, copying or alteration of
this message is strictly forbidden. Opinions, conclusions and other
information expressed in this message are not given or endorsed by
Safeway unless otherwise indicated by an authorised representative
independent of this message.
****************************************************************************


More information about the samba mailing list