keith_allen@safeway.co.uk
2004-Sep-07 16:41 UTC
[Samba] How to Upgrade from 2.2.8a to 3.0.6
I have been running samba 2.2.8a with approx 400 users accessing it for their network drives. What I need to do now is to upgrade it to version 3.0.6. I have been trying to upgrade my development system with limited success this is what I have done. ? stopped samba ? /usr/src/samba-3.0.6/source ? used the same configure options as when I installed 2.2.8a i.e ? ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-shared=yes --with-acl-support --with-winbind --with-quotas ? make clean make make install ? cd nsswitch cp libnss_winbind.so /lib started samba ? wbinfo -t says the secret is good wbinfo -g returns groups wbinfo -u returns users ? getnet passwd lists users ? ? so all seems well untill I go to my home directorys which are located /smb/homes ? if I do a directory listing it now looks like this ? ? drwxrws---? 22? 16043 CITDOM+Domain Admins??? 4096 Aug 9 15:46 op86v ? it should look like this ? drwxrws---? 22??CITDOM+OP86V CITDOM+Domain Admins??? 4096 Aug 9 15:46 op86v ? ? getnet passwd|grep op86v returns ? CITDOM+OP86V:x:16043:10000:User Name:/smb/homes/op86v:/bin/false ? ? If I type chown citdom+op86v op86v (or CITDOM+OP86V) ? I get invalid user ? If I type chown OP86V op86v it works but is using a uid of 20266 ? Can anybody point me in the right direction as to how to get this to work correctly, i.e I would like to move from 2.2.8a to 3.0.6 with out having to change uids etc. ? Thanks in advance for any advice you might be able to give ? ? Keith?Allen **************************************************************************** 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. ****************************************************************************
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 keith_allen@safeway.co.uk wrote: | cd nsswitch | cp libnss_winbind.so /lib Make sure that there is a symlink from /lib/libnss_winbind.so.2 -> /lib/libnss_winbind.so | 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 ? | 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. cheers, jerry - --------------------------------------------------------------------- Alleviating the pain of Windows(tm) ------- http://www.samba.org GnuPG Key ----- 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 iD8DBQFBPxQ5IR7qMdg1EfYRAkrRAKC6d8NtfFZDYS8zLhzVdOvJbimaAwCeOqnb 5bJpON62dlVpIXSghJv/Vv4=7Uqe -----END PGP SIGNATURE-----
keith_allen@safeway.co.uk
2004-Sep-10 08:49 UTC
[Samba] How to Upgrade from 2.2.8a to 3.0.6
keith_allen@safeway.co.uk <<mailto:keith_allen@safeway.co.uk>> wrote: | 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>> GnuPG Key ----- 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>> 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. ****************************************************************************
keith_allen@safeway.co.uk
2004-Sep-10 14:56 UTC
[Samba] How to Upgrade from 2.2.8a to 3.0.6
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. ****************************************************************************