[Samba] Fwd: Sol9 make failure of samba 3.2.2 with gcc 3.4.6 -- libtalloc.so.1
I'm on Solaris 9 sparc. Current versions are: gcc 3.4.6 (sunfreeware pkg) MIT krb5-1.6.3 (source) openldap-2.4.11 (compiled with --with-tls and --enable-crypto) samba-3.2.2 db-4.2.52.NC (sunfreeware pkg) No compiler env vars set, except CC is set to CC=/usr/local/bin/gcc I'm invoking configure as follows: ./configure --with-ads --with-windbind --with-krb5=/usr/local --with-ldap 'make' fails with the following output: Linking non-shared library bin/libtalloc.a Compiling lib/replace/replace.c Compiling lib/replace/snprintf.c Compiling lib/replace/getpass.c Compiling lib/replace/strptime.c Compiling lib/replace/timegm.c Compiling lib/replace/inet_aton.c Compiling lib/replace/getifaddrs.c creating /root/samba-3.2.2/source/exports/libtalloc.syms Linking shared library bin/libtalloc.so.1 /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.6/../../../../sparc-sun-solaris2.9/bin/ld: cannot open linker script file /root/samba-3.2.2/source/exports/libtalloc.so.1: No such file or directory collect2: ld returned 1 exit status make: *** [bin/libtalloc.so.1] Error 1 make -n shows the following line prior to the failure: /usr/local/bin/gcc -I/usr/local/include -O -D_SAMBA_BUILD_=3 -G -Wl,-z,relro -L/usr/local/lib -R/usr/local/lib -L/usr/local/BerkeleyDB.4.2/lib -lthread -L./bin -Wl,--version-script,/root/samba-3.2.2/source/exports/`basename bin/libtalloc.so.1 | sed 's/so\(.[0-9]\{1,\}\)\{0,1\}$/syms/'` -o bin/libtalloc.so.1 lib/talloc/talloc.o lib/replace/replace.o lib/replace/snprintf.o lib/replace/getpass.o lib/replace/strptime.o lib/replace/timegm.o lib/replace/inet_aton.o lib/replace/getifaddrs.o -Wl,-soname=`basename bin/libtalloc.so.1` source/bin contains only libtalloc.a at the fail point. Any ideas? I'm not experienced at doing builds on Solaris. Thanks, Dave S. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Doh !
OK bury head in sand job ! Samba smb.conf is working fine. I was getting thrown by [EMAIL PROTECTED]:/mnt/samba/archive/dave-comp_backup$ touch test [EMAIL PROTECTED]:/mnt/samba/archive/dave-comp_backup$ ls -al total 12 drwxrwx--- 1 dave dave 4096 2006-06-01 21:13 . drwxrwx--- 1 dave dave 4096 2006-06-01 21:07 .. drwxrwx--- 1 dave dave 4096 2006-06-01 21:05 2006-06-01_21.04.10.326411.dave-comp.ful -rw-rw 1 dave dave0 2006-06-01 21:13 test [EMAIL PROTECTED]:/mnt/samba/archive/dave-comp_backup$ where I expected -rw-- as defined in smb.conf. However when I actually accessed the file it was restricted as in smb.conf ie --rw--. the ls -al just shows how it was mounted. Doh - Oh well wont forget that again in a hurry :) Dave -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Share authority query + logs
On Friday 02 June 2006 00:28, Adam Nielsen wrote: So I was supprised when I got ... -rw-rw 1 dave dave0 2006-06-01 21:13 test ie 0660 ? Can anyone tell me where i am going wrong ? That looks fine to me - try the 'security mask' option as well, it could be that your local machine is using the UNIX extensions to set extra attributes on files. The 'security mask' option *may* stop this, but disabling UNIX extensions will tell you for sure whether this is the problem or not. Cheers, ...mmm... OK I looked up security mask, and added it but no go. Here is my modified smb.conf in its entirety ... [EMAIL PROTECTED]:/etc/samba$ cat smb.conf [global] comment = Samba Server netbios name = server string = %v on %L workgroup = wins support = yes security = user # Give Samba more authority in elections as master browser prefered master = yes os level = 255 # Max permissions for a share create mode = 0600 security mask = 0600 directory mode = 0700 # Only on my LAN hosts allow = 192.168.0. # Various system users and superusers cannot be forged for access invalid users = root bin daemon adm sync shutdown halt mail news uucp operator # Stop symink outside of share tree wide links = no # Hide .??? files from windows hide dot files = yes # Allow super users dave and vanda access to all # admin users = dave,vanda # No oplocks, M$ on system can be dodgey level2 oplocks = no oplocks = no # Setup logging syslog = 0 # syslog 3 for more thorough logging to syslog #syslog = 3 log level = 2 log file = /var/log/samba/log.%m max log size = 50 debug timestamp = yes [common] comment = Common Linux Directory path = /export/samba/common read only = no valid users = @smblinux [windows] comment = M$ Directory path = /export/samba/windows read only = no valid users = @smbwindows [archive] comment = Archive Directory # Permissions when creating files in this share create mode = 0600 directory mode = 0700 path = /export/samba/archive read only = no valid users = @smblinux Here is my test script still got the problem ... makes test with 0666 not 0600 as I would have expected. [EMAIL PROTECTED]:/mnt/samba/common$ [EMAIL PROTECTED]:/mnt/samba/common$ touch test [EMAIL PROTECTED]:/mnt/samba/common$ ls -al total 16 drwxrwxrwx 1 dave dave 4096 2006-06-03 21:19 . drwxr-xr-x 5 root root 4096 2006-03-26 00:44 .. drwxrwxrwx 1 dave dave 4096 2006-05-27 09:19 Films drwxrwxrwx 1 dave dave 4096 2006-03-27 17:38 music -rw-rw-rw- 1 dave dave0 2006-06-03 21:23 test [EMAIL PROTECTED]:/mnt/samba/common$ mmm ... I bumbed debug up to level 3 and got this ... [2006/06/03 21:23:19, 3] smbd/process.c:process_smb(1194) Transaction 90 of length 84 [2006/06/03 21:23:19, 3] smbd/process.c:switch_message(993) switch message SMBtrans2 (pid 5343) conn 0x83cbef8 [2006/06/03 21:23:19, 3] smbd/trans2.c:call_trans2qfilepathinfo(2861) call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 263 [2006/06/03 21:23:19, 3] smbd/vfs.c:reduce_name(920) reduce_name [test] [/export/samba/common] [2006/06/03 21:23:19, 3] smbd/vfs.c:reduce_name(1026) reduce_name: test reduced to /export/samba/common/test [2006/06/03 21:23:19, 3] smbd/trans2.c:call_trans2qfilepathinfo(2886) call_trans2qfilepathinfo: SMB_VFS_STAT of test failed (No such file or directory) [2006/06/03 21:23:19, 3] smbd/error.c:error_packet(162) error packet at smbd/trans2.c(2629) cmd=50 (SMBtrans2) eclass=1 ecode=2 [2006/06/03 21:23:19, 3] smbd/process.c:process_smb(1194) Transaction 91 of length 52 [2006/06/03 21:23:19, 3] smbd/process.c:switch_message(993) switch message SMBcreate (pid 5343) conn 0x83cbef8 [2006/06/03 21:23:19, 3] smbd/dosmode.c:unix_mode(121) unix_mode(test) returning 0600 [2006/06/03 21:23:19, 3] smbd/vfs.c:reduce_name(920) reduce_name [test] [/export/samba/common] [2006/06/03 21:23:19, 3] smbd/vfs.c:reduce_name(1026) reduce_name: test reduced to /export/samba/common/test [2006/06/03 21:23:19, 2] smbd/open.c:open_file(350) dave opened file test read=Yes write=Yes (numopen=1) [2006/06/03 21:23:19, 3] smbd/dosmode.c:unix_mode(121) unix_mode(test) returning 0600 [2006/06/03 21:23:19, 2] smbd/reply.c:reply_mknew(1692) reply_mknew: file test [2006/06/03 21:23:19, 3] smbd/reply.c:reply_mknew(1693) reply_mknew test fd=19 dmode=0x0 [2006/06/03 21:23:19, 3] smbd/process.c:process_smb(1194) Transaction 92 of length 84 [2006/06/03 21:23:19, 3] smbd/process.c:switch_message(993) switch message SMBtrans2 (pid 5343) conn 0x83cbef8 [2006/06/03 21:23:19, 3] smbd/trans2.c:call_trans2qfilepathinfo(2861) call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 263 [2006/06/03 21:23:19, 3] smbd/vfs.c:reduce_name(920) reduce_name [test] [/export/samba/common] [2006/06/03 21:23:19, 3] smbd/vfs.c:reduce_name(1026) reduce_name:
[Samba] Share authority query
Hi all, I have a samba directory caller 'archive' which needs to create files with u=rw,g=,o= authorities which i believe is octal 0600. My smb.conf contains ... [global] # Max permissions for a share create mode = 0666 directory mode = 0777 [archive] comment = Archive Directory # Permissions when creating files in this share create mode = 0600 directory mode = 0700 path = /export/samba/archive read only = no valid users = So I was supprised when I got ... [EMAIL PROTECTED]:/mnt/samba/archive/dave-comp_backup$ touch test [EMAIL PROTECTED]:/mnt/samba/archive/dave-comp_backup$ ls -al total 12 drwxrwx--- 1 dave dave 4096 2006-06-01 21:13 . drwxrwx--- 1 dave dave 4096 2006-06-01 21:07 .. drwxrwx--- 1 dave dave 4096 2006-06-01 21:05 2006-06-01_21.04.10.326411.dave-comp.ful -rw-rw 1 dave dave0 2006-06-01 21:13 test [EMAIL PROTECTED]:/mnt/samba/archive/dave-comp_backup$ ie 0660 ? Can anyone tell me where i am going wrong ? Cheers Dave -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Share authority query
Thanks for that, I will look up 'security mask'. Its usefull to hear that I have setup smb.conf correctly - so the problem is deeper :) Cheers Dave -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] File size limit of 2Gb ish ?
Hi all, I am running samba 3.0.14 on ubuntu breezy badger networked with another ubuntu machine and my XP laptop. File sharing is great except when a file exceeds 1.5 - 2 GB. The file transfer fails after 1.5 - 2 GB with a file to large error. This seems to be a limit for linux - windows and linux - linux which is a pain when trying to move large DVD iso's. Does anyone know a workaround ? or come to that why is there such a low limit ? Cheers Dave -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] File size limit of 2Gb ish ?
On Saturday 20 May 2006 16:34, Dave S wrote: Hi all, I am running samba 3.0.14 on ubuntu breezy badger networked with another ubuntu machine and my XP laptop. File sharing is great except when a file exceeds 1.5 - 2 GB. The file transfer fails after 1.5 - 2 GB with a file to large error. This seems to be a limit for linux - windows and linux - linux which is a pain when trying to move large DVD iso's. Does anyone know a workaround ? or come to that why is there such a low limit ? Cheers Dave Hi all, I am using 2.6.12 kernel, fat 32 on windows but not on my other ubuntu machine :) Dave -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] File size limit of 2Gb ish ?
On Saturday 20 May 2006 23:49, Hans du Plooy wrote: On Sat, 2006-05-20 at 23:32 +0100, Dave S wrote: I am using 2.6.12 kernel, fat 32 on windows but not on my other ubuntu machine :) If memory serves me right, fat32 doesn't support larger than 2GB. Also, as far as I remember, if you mount with smbfs, there was an option (lfs maybe) that supports files of 2GB+ on the client side. Hans Thanks Dave :) -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Windows delayed print Samba printer
Hi all, I have samba working as a file server print server for linux, 2000 and XP machines (via caddies laptop) The linux to linux works 100% on file sharing print sharing. The 2000 XP file share works great but I have a 30-60s delay for printing from 2000 or XP to my samba printer. The printout when it arrives is AOK I have googled and several people have reported the problem but I have not had much luck solving it. Can anyone advise ? Cheers Dave -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] access share on machine running server again
Hi all, A while ago I posted about needing to access samba shares on the same machine that the samba server was running on. Someone posted a script to mount the shares and all was well till I upgraded my PC hadware and had a small accident :( I have tried modifing /etc/init.d/samba adding ... mount -t smbfs //127.0.0.1/common /mnt/samba/common -o credentials=/home/dave/.smbpw,uid=dave,gid=dave,fmask=660,dmask=770 /dev/null mount -t smbfs //127.0.0.1/windows /mnt/samba/windows -o credentials=/home/dave/.smbpw,uid=dave,gid=dave,fmask=660,dmask=770 /dev/null mount -t smbfs //127.0.0.1/archive /mnt/samba/archive -o credentials=/home/dave/.smbpw,uid=dave,gid=dave,fmask=660,dmask=770 /dev/null and umount //127.0.0.1/common umount //127.0.0.1/windows umount //127.0.0.1/archive To the appropriate bits, this works most of the time but fails to mount 1 or more shares randomly. Thinking this was because the samba demons had not had time to startup properly I added a 10s delay, still random fail to mounts. Does anyone have any ideas ? Oh yes, if I open an xterm and '/etc/init.d/samba restart' it always mounts the shares AOK Dave #!/bin/sh # # Start/stops the Samba daemons (nmbd and smbd). # # # Defaults RUN_MODE=daemons # Reads config file (will override defaults above) [ -r /etc/default/samba ] . /etc/default/samba NMBDPID=/var/run/samba/nmbd.pid SMBDPID=/var/run/samba/smbd.pid # clear conflicting settings from the environment unset TMPDIR # See if the daemons are there test -x /usr/sbin/nmbd -a -x /usr/sbin/smbd || exit 0 . /lib/lsb/init-functions case $1 in start) log_begin_msg Starting Samba daemons.. if ! start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/nmbd -- -D; then log_end_msg 1 exit 1 fi if [ $RUN_MODE != inetd ]; then if ! start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/smbd -- -D; then log_end_msg 1 exit 1 fi fi mount -t smbfs //127.0.0.1/common /mnt/samba/common -o credentials=/home/dave/.smbpw,uid=dave,gid=dave,fmask=660,dmask=770 /dev/null mount -t smbfs //127.0.0.1/windows /mnt/samba/windows -o credentials=/home/dave/.smbpw,uid=dave,gid=dave,fmask=660,dmask=770 /dev/null mount -t smbfs //127.0.0.1/archive /mnt/samba/archive -o credentials=/home/dave/.smbpw,uid=dave,gid=dave,fmask=660,dmask=770 /dev/null log_end_msg 0 ;; stop) log_begin_msg Stopping Samba daemons... start-stop-daemon --stop --quiet --pidfile $NMBDPID # Wait a little and remove stale PID file sleep 1 if [ -f $NMBDPID ] ! ps h `cat $NMBDPID` /dev/null then # Stale PID file (nmbd was succesfully stopped), # remove it (should be removed by nmbd itself IMHO.) rm -f $NMBDPID fi if [ $RUN_MODE != inetd ]; then start-stop-daemon --stop --quiet --pidfile $SMBDPID # Wait a little and remove stale PID file sleep 1 if [ -f $SMBDPID ] ! ps h `cat $SMBDPID` /dev/null then # Stale PID file (nmbd was succesfully stopped), # remove it (should be removed by smbd itself IMHO.) rm -f $SMBDPID fi fi umount //127.0.0.1/common umount //127.0.0.1/windows umount //127.0.0.1/archive log_end_msg 0 ;; reload) log_begin_msg Reloading /etc/samba/smb.conf (smbd only)... start-stop-daemon --stop --signal HUP --pidfile $SMBDPID log_end_msg 0 ;; restart|force-reload) $0 stop sleep 1 $0 start ;; *) log_success_msg Usage: /etc/init.d/samba {start|stop|reload| restart|force-reload} exit 1 ;; esac exit 0 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Added lp, access denied ?
Hi all, I have kubuntu running samba as a file server, I have my wifes kubuntu machine as a cllient and my works XP machine as a client. All is well and has worked great for some time. I decided to add a samba printer for XP. I modified smb.conf, I can now see the printer on XP, I installed the printer driver 'have disk' all AOK then I get a message from XP in what looks like a printer spool box 'epson on dave-comp access denied, unable to connect' I can still access my samba shares through XP AOK, I must have authenticated AOK. I get the feeling it is something really simple. Cheers Dave /var/log/samba/ [2006/03/26 10:26:37, 2] lib/access.c:check_access(324) Allowed connection from (192.168.0.2) [2006/03/26 10:26:37, 2] smbd/sesssetup.c:setup_new_vc_session(608) setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources. [2006/03/26 10:26:37, 2] smbd/sesssetup.c:setup_new_vc_session(608) setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources. [2006/03/26 10:27:01, 2] lib/access.c:check_access(324) Allowed connection from (192.168.0.2) [2006/03/26 10:27:01, 2] smbd/reply.c:reply_special(236) netbios connect: name1=DAVE-COMP name2=WINDOWS [2006/03/26 10:27:01, 2] smbd/reply.c:reply_special(243) netbios connect: local=dave-comp remote=windows, name type = 0 my smb.conf is ... [global] comment = Samba Server netbios name = DAVE-COMP server string = %v on %L workgroup = OFFICE wins support = yes security = user # Give Samba more authority in elections as master browser prefered master = yes os level = 255 # Max permissions for a share create mode = 0666 directory mode = 0777 # Only on my LAN hosts allow = 192.168.0. # Various system users and superusers cannot be forged for access invalid users = root bin daemon adm sync shutdown halt mail news uucp operator # Stop symink outside of share tree wide links = no # Hide .??? files from windows hide dot files = yes # Allow super users dave and vanda access to all # admin users = dave,vanda # No oplocks, M$ on system can be dodgey level2 oplocks = no oplocks = no # Setup logging syslog = 0 # syslog 3 for more thorough logging to syslog #syslog = 3 log level = 2 log file = /var/log/samba/log.%m max log size = 50 debug timestamp = yes [common] comment = Common Linux Directory path = /export/samba/common read only = no valid users = @smblinux [windows] comment = M$ Directory path = /export/samba/windows read only = no valid users = @smbwindows [archive] comment = Archive Directory # Permissions when creating files in this share create mode = 0660 directory mode = 0777 path = /export/samba/archive read only = no valid users = @smblinux [epson] printable = yes print command = /usr/bin/lpr -P%p -r %s printer = smb_epson printing = BSD path = /var/tmp valid users = @smbwindows -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] domain master query
I have setup a samba server for my home network, 2x kubuntu PCs and a work XP laptop. In syslog I get ... Feb 12 07:25:10 localhost nmbd[6233]: [2006/02/12 07:25:10, 0] nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(353) Feb 12 07:25:10 localhost nmbd[6233]: find_domain_master_name_query_fail: Feb 12 07:25:10 localhost nmbd[6233]: Unable to find the Domain Master Browser name OFFICE1b for the workgroup OFFICE. Feb 12 07:25:10 localhost nmbd[6233]: Unable to sync browse lists in this workgroup. There is no domain master browser, jut my 'subnet' of 192.168.0.* Is this someting I should just ignore or is it possible to turn off samba looking for it. Or very possibly have I made a configuration error in smb.conf ? Dave smb.conf a work very much in process ... [global] comment = Samba Server netbios name = DAVE server string = %v on %L workgroup = OFFICE wins support = yes security = user # Give Samba more authority in elections as master browser prefered master = yes os level = 255 # Max permissions for a share create mode = 0666 directory mode = 0777 # Only on my LAN hosts allow = 192.168.0. # Various system users and superusers cannot be forged for access invalid users = root bin daemon adm sync shutdown halt mail news uucp operator # Allow super users dave and vanda access to all # admin users = dave,vanda #oplocks = no # Setup logging syslog = 2 log level = 2 log file = /var/log/samba/log.%m max log size = 50 debug timestamp = yes [common] comment = Common Linux Directory path = /export/samba/common read only = no valid users = @smblinux [windows] comment = M$ Directory path = /export/samba/windows read only = no valid users = @smbwindows [archive] comment = Archive Directory path = /export/samba/archive read only = no valid users = @smblinux -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] cant add files + variables ? (Newbe:)
First time samberer :) I have a home network, samba server running on kubuntu, wifes system running kubuntu and company laptop running XP. To start with I want to just share files. I can read files in shares from my wifes system but no matter what I do I cannot add files to the mounted share. I get 'cannot create regular file no such file or directory', even though the mounted directory exists and I can read files from it. I am stuck. Any idea what I am doing wrong ? Also is there a way to restrict my laptop XP to just the windows share. It seems that having a user and password for the samba server enables access to all shares on the server. The two possibilities I can see are either using a lot of variables in smb.conf or generating multiple instances of samba ? Many thanks in advance Dave Samba server ... smb.conf [global] #comments = Samba Server workgroup = OFFICE wins support = yes #oplocks = no [linux] path = /usr/local/share/samba/linux read only = no #guest ok = yes [windows] path = /usr/local/share/samba/windows read only = no #gest ok = yes [archive] path = /usr/local/share/samba/archive read only = no #gest ok = yes wifes system . fstab # /etc/fstab: static file system information. # # file system mount point type options dump pass proc/proc procdefaults0 0 /dev/hda1 / ext3defaults,errors=remount-ro 0 1 /dev/hda5 noneswapsw 0 0 /dev/hdd/media/cdrom0 udf,iso9660 user,noauto 0 0 /dev/hdc/media/cdrom1 udf,iso9660 user,noauto 0 0 /dev/fd0/media/floppy0 autorw,user,noauto 0 0 /dev/hdb1 /mnt/fat32 vfatrw 0 0 /dev/hdb2 /mnt/archiveext3rw,nosuid,noexec0 0 //dave-comp/linux /mnt/samba/linux smbfs credentials=/root/.smbpw,uid=vanda,gid=vanda,fmask=777,dmask=777,rw 0 0 //dave-comp/windows /mnt/samba/windows smbfs credentials=/root/.smbpw,uid=vanda,gid=vanda,fmask=777,dmask=777,rw 0 0 //dave-comp/archive /mnt/samba/archive smbfs credentials=/root/.smbpw,uid=vanda,gid=vanda,fmask=700,dmask=700,rw 0 0 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Basic samba/swat setup prob
On Sunday 18 December 2005 15:49, Mathew D. Watson wrote: dave wrote: I am running kubuntu, samba 3.0.14a, my smb.conf file is ... [global] workgroup = METRAN encrypt passwords = yes [test] comment = For testing only, please path = /etc/samba/tmp read only = no guest ok = yes I have a /etc/samba/tmp directory, I am user dave on the system so I ... smbpasswd -a dave I gave it a password of 'testing', it complained that a file did not exist then created it for me ... all looked AOK I pointed my browser to http://localhost:901, an authentication dialogue popped up, I entered 'dave', 'testing' hopeing for the swat screen but all I get is authentication failed, retry. This is a guess, but try adding security = user Tried it but no go , did a /etc/init.d/samba restart, authentication still failed to the [global] section. You might also try, as I did, using the /etc/samba/smb.conf file that came with the samba package. Then run swat, and use it to make your changes. Tried using the default config as well, authentication still failed. But thanks for the suggestions. Mat mmm Can anyone tell me where the smb passwords are kept, they are not in /etc/samba/... if I can find the file I can verify if dave really exists in it. Cheers Dave -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Basic samba/swat setup prob
On Sunday 18 December 2005 16:47, Eric Hines wrote: At 12/18/05 09:49, Mathew D. Watson wrote: dave wrote: I am running kubuntu, samba 3.0.14a, my smb.conf file is ... [global] workgroup = METRAN encrypt passwords = yes [test] comment = For testing only, please path = /etc/samba/tmp read only = no guest ok = yes I have a /etc/samba/tmp directory, I am user dave on the system so I ... smbpasswd -a dave I gave it a password of 'testing', it complained that a file did not exist then created it for me ... all looked AOK I pointed my browser to http://localhost:901, an authentication dialogue popped up, I entered 'dave', 'testing' hopeing for the swat screen but all I get is authentication failed, retry. This is a guess, but try adding security = user to the [global] section. You might also try, as I did, using the /etc/samba/smb.conf file that came with the samba package. Then run swat, and use it to make your changes. Mat There are a couple of other things you might want to try: since you've gotten to the authentication dialog, it appears you have a proper swat config file (you might, though, compare yours to the one that's on pg 53 of Ts, et al.'s _Using Samba_ (O'Reilly pub), just to be sure. The biggie, though, is that, unless you explicitly set up swat to do otherwise, you need to log in as root to get it to run (don't forget to assign the same password for smbpasswd as you have for your root access for your kubuntu machine...). Thank you SO MUCH :) I have been wrestling with this problem for 2-3 weeks. It was complicated because kubuntu does not have a root password by default. Having setup a root password then smbpasswd -a and all is well :) One question, why does the smbpasswd have to be the same as the root password, apart from it therefore being easy to remember ? Cheers Dave Anyone using swat can mess with your samba con fig file, and you don't want that--you should limit access to root, and that's the default access level for swat. Eric Hines There is no nonsense so errant that it cannot be made the creed of the vast majority by adequate governmental action. --Bertrand Russell -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Basic samba/swat setup prob
On Sunday 18 Dec 2005 17:32, Eric Hines wrote: At 12/18/05 10:58, dave s wrote: On Sunday 18 December 2005 16:47, Eric Hines wrote: At 12/18/05 09:49, Mathew D. Watson wrote: dave wrote: I am running kubuntu, samba 3.0.14a, my smb.conf file is ... [global] workgroup = METRAN encrypt passwords = yes [test] comment = For testing only, please path = /etc/samba/tmp read only = no guest ok = yes I have a /etc/samba/tmp directory, I am user dave on the system so I ... smbpasswd -a dave I gave it a password of 'testing', it complained that a file did not exist then created it for me ... all looked AOK I pointed my browser to http://localhost:901, an authentication dialogue popped up, I entered 'dave', 'testing' hopeing for the swat screen but all I get is authentication failed, retry. This is a guess, but try adding security = user to the [global] section. You might also try, as I did, using the /etc/samba/smb.conf file that came with the samba package. Then run swat, and use it to make your changes. Mat There are a couple of other things you might want to try: since you've gotten to the authentication dialog, it appears you have a proper swat config file (you might, though, compare yours to the one that's on pg 53 of Ts, et al.'s _Using Samba_ (O'Reilly pub), just to be sure. The biggie, though, is that, unless you explicitly set up swat to do otherwise, you need to log in as root to get it to run (don't forget to assign the same password for smbpasswd as you have for your root access for your kubuntu machine...). Thank you SO MUCH :) I have been wrestling with this problem for 2-3 weeks. It was complicated because kubuntu does not have a root password by default. Having setup a root password then smbpasswd -a and all is well :) !? I'm minded of Hamlet's injunction, Get thee to a nunnery, go. (Although nunnery was a rude slang term when Shakespeare was writing.) Generate a root user, promptly. Which you have done. I strongly urge you to go through the hassle of logging in as root (or su to root) whenever you want to make a system change of any sort. It's too easy to make system changes as an ordinary user that screw up the system, sometimes catastrophically. If you force yourself to do these as root only, you won't be proofed against those catastrophic errors, but you will be encouraged to make your changes only after prior thought, so the likelihood of those errors is minimized. I am with you on that one. kubuntu ( ubuntu) disable the root account by default and users are encouraged to sudo everything or sudo -i for a root shell. Can get confusing but I have a root password now ! Cheers Dave One question, why does the smbpasswd have to be the same as the root password, apart from it therefore being easy to remember ? A more expert *NIX user can chime in here, but I suspect it has to do with you only getting one user called root, with those privileges. One password for both passwd and smbpasswd prevents password conflicts. Cheers Dave Eric Hines There is no nonsense so errant that it cannot be made the creed of the vast majority by adequate governmental action. --Bertrand Russell -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] session setup failed: NT_STATUS_LOGON_FAILURE
Title: session setup failed: NT_STATUS_LOGON_FAILURE I know this subject has been beaten to death .. but I haven't been able to find a solution .. so here it is again: I can join the my Windows DOMAIN without issue. [djohns1@lmsprfc24208a djohns1]$ smbclient -L mspap01u added interface ip=192.168.240.53 bcast=192.168.240.255 nmask=255.255.255.0 added interface ip=192.168.131.1 bcast=192.168.131.255 nmask=255.255.255.0 Password: session setup failed: NT_STATUS_LOGON_FAILURE If I use localhost instead of mspap01u I get a list of shares locally. No matter what I do to my smb.conf file locally I get denied EVERYWHERE in the DOMAIN when trying to connect to Windows machines. I am using SECURITY=DOMAIN andPASSWORD SERVER = * [djohns1@lmsprfc24208a djohns1]$ smbclient //vmspap01caa/prod -W NA -U djohns1 added interface ip=192.168.240.53 bcast=192.168.240.255 nmask=255.255.255.0 added interface ip=192.168.131.1 bcast=192.168.131.255 nmask=255.255.255.0 Password: session setup failed: NT_STATUS_LOGON_FAILURE I know there's communication there because I get some output if I use -N : [djohns1@lmsprfc24208a djohns1]$ smbclient //vmspap01caa/prod -W NA -N added interface ip=192.168.240.53 bcast=192.168.240.255 nmask=255.255.255.0 added interface ip=192.168.131.1 bcast=192.168.131.255 nmask=255.255.255.0 Anonymous login successful Domain=[NA] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager] tree connect failed: NT_STATUS_ACCESS_DENIED I have several HP-UX 11.00 machines with Samba 2.2.3a running on them with SECURITY=DOMAIN and all of the users can access the shares without issue. I just can't get anywhere on the DOMAIN with smbclient ... testparm output: # Global parameters [global] coding system = client code page = 850 code page directory = /etc/codepages workgroup = NA netbios name = LMSPRFC24208A netbios aliases = netbios scope = server string = Dave Johnson's Samba Server interfaces = bind interfaces only = No security = DOMAIN encrypt passwords = Yes update encrypted = No allow trusted domains = Yes hosts equiv = min passwd length = 5 map to guest = Never null passwords = No obey pam restrictions = No password server = * smb passwd file = /etc/samba/smbpasswd root directory = pam password change = No passwd program = /usr/bin/passwd passwd chat = *new*password* %n\n *new*password* %n\n *changed* passwd chat debug = No username map = password level = 0 username level = 0 unix password sync = No restrict anonymous = No lanman auth = Yes use rhosts = No admin log = No log level = 5 syslog = 1 syslog only = No log file = /var/log/samba/log.%m max log size = 50 timestamp logs = Yes debug hires timestamp = No debug pid = No debug uid = No protocol = NT1 large readwrite = Yes max protocol = NT1 min protocol = CORE read bmpx = No read raw = Yes write raw = Yes nt smb support = Yes nt pipe support = Yes nt status support = Yes announce version = 4.9 announce as = NT max mux = 50 max xmit = 16644 name resolve order = lmhosts host wins bcast max ttl = 259200 max wins ttl = 518400 min wins ttl = 21600 time server = No unix extensions = No change notify timeout = 60 deadtime = 0 getwd cache = Yes keepalive = 300 lpq cache time = 10 max smbd processes = 0 max disk size = 0 max open files = 1 name cache timeout = 660 read size = 16384 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 stat cache size = 50 use mmap = Yes total print jobs = 0 load printers = Yes printcap name = /etc/printcap disable spoolss = No enumports command = addprinter command = deleteprinter command = show add printer wizard = Yes os2 driver map = strip dot = No mangling method = hash character set = mangled stack = 50 stat cache = Yes domain admin group = domain guest group = machine password timeout = 604800 add user script = delete user script = logon script = logon path = \\%N\%U\profile logon drive = logon home = \\%N\%U domain logons = No os level = 20 lm announce = Auto lm interval = 60 preferred master = Auto local master = Yes domain master = Auto browse list = Yes enhanced browsing = Yes dns proxy = No wins proxy = No wins server = 199.21.57.20,199.21.56.57 wins support = No wins hook = kernel oplocks = Yes lock spin count = 3 lock spin time = 10 oplock break wait time = 0 add share command = change share command = delete share command = config file = preload = lock dir = /var/cache/samba pid directory = /var/run/samba utmp directory = wtmp directory = utmp = No default service = message command = dfree command = valid chars = remote announce = remote browse sync = socket address = 0.0.0.0 homedir map = time offset = 0 NIS homedir = No source environment = panic action = ""> hide local users = No host msdfs = No winbind uid = winbind gid = template homedir =