[Samba] Folder Access in Samba
Dear All, We have configured samba file sharing on cent OS 5.5. But when we access share folder in windows(windows XP) it repeatedly asks for User Name & Password. Attached above is the conf file for your reference. request you help to get this issue resolve. Regards, Anaconda -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Problem when compile
Hello, Could you help me with this issue below? I use slackware, and i have installed the samba 3.5.8 with sucess, now i'm trying install the samba 4 but i recived this error when i make : Linking bin/wbinfo ../nsswitch/wbinfo.o: In function `parse_wbinfo_domain_user': wbinfo.c:(.text+0x190): undefined reference to `safe_strcpy_fn' wbinfo.c:(.text+0x1a6): undefined reference to `safe_strcpy_fn' wbinfo.c:(.text+0x1ca): undefined reference to `safe_strcpy_fn' wbinfo.c:(.text+0x1e6): undefined reference to `safe_strcpy_fn' wbinfo.c:(.text+0x208): undefined reference to `safe_strcpy_fn' ../nsswitch/wbinfo.o:wbinfo.c:(.text+0x21e): more undefined references to `safe_strcpy_fn' follow bin/mergedobj/cli_auth.o: In function `netlogon_creds_copy': (.text+0xc20): undefined reference to `dom_sid_dup' collect2: ld returned 1 exit status make: *** [bin/wbinfo] Error 1 regards, Raphael Guarita -- View this message in context: http://samba.2283325.n4.nabble.com/Problem-when-compile-tp3553237p3553237.html Sent from the Samba - General mailing list archive at Nabble.com. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba performance
On Wed, May 25, 2011 at 08:02:56PM -0700, Juan Pablo wrote: > > - 4 Intel Gigagit ethernet NIC ports with 802.3ad bonding connected to a > > switch configured tu use 802.3ad > > - 8 2TB 7.2 krpm SATA disks with hardware RAID5 (RAID stripe size 1024 > > bytes, controller and disk cache enabled, readahead enabled) > > - XFS filesystem (created with the following parameters: size=64k -d > > su=1024k,sw=7) > > - Average file size in the share: 8 MByte > > - Gigabit network composed by Cat5E certified cabling and DLink DGS-3427 > > gigabit switch. The way Linux does 803.ad is not really how you might expect. Basically, it isn't really smart about how it assigns individual network streams to ports. It hashes destination MAC addresses and then randomly assigns them to ports. It doesn't pay attention to current traffic levels. It is quite likely that all 4 connections ended up using the same port - which you could see by monitoring the total packets transmitted on each interface during your test. You can make it somewhat more likely to use more ports by using a different hashing algorithm. I've had the best results with something like this in modprobe.conf: "options bonding mode=802.3ad miimon=100 lacp_rate=1 xmit_hash_policy=layer2+3" It's still not great though. You'd really be better off with a 10Gb/s interface out to your switch if you need to guarantee multiple 1Gb/s connections over a small number of simultaneous connections. -- The whole universe is change and life itself is but what you deem it. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Printer settings not saved
Hello Willy, > Did you manage to solve this issue? I'm having the same problem for some > time now and I have not any clue yet how to solve this. we solved some issues (the user-settings are save now) by deleting all printers and then adding them again. The difference was that we used "net rpc printer migrate [security|settings|forms]" against a Windows 2003 server on the first try. We skipped that on the second run. But I have no idea why this should not work. Thilo -- Thilo Uttendorfer Linux Information Systems AG Putzbrunner Str. 71, 81739 München Fon: +49 89 993412-11, Fax: +49 89 993412-99 t.uttendor...@linux-ag.com, http://www.linux-ag.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba performance
On Thu, May 26, 2011 at 10:14:31AM -0700, Juan Pablo wrote: > Hi Jeremy, > > Thanks for your reply! > > The tests we did with the Windows 7 terminals was using smb2. > > When we enabled smb2 in samba we saw in samba logs that it > was not being used. We modified Windows 7 registry as > described in > http://www.techemperor.com/2009/09/21/manual-patch-for-windows-vistaserver-2008-smb2-flaw/ > to enable smb2 to start using smb2. Once this was done > smb2 was negotiated but there was no speed difference. > > The OS read test is done iterating from 0 to 999 a dd > if=testFile-xxx of=/dev/null bs=1k. The samba local > access test is done with smbclient from the same machine > sending the output to /dev/null. Is the speed decrease > (from 158 MB/s to 71 MB/s) from what I get when I test > from the OS to what I get with samba normal? With smbclient you should get near wire speed. Do you have "socket options" set in your smb.conf? Volker -- SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen phone: +49-551-37-0, fax: +49-551-37-9 AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba performance
Hi Jeremy, Thanks for your reply! The tests we did with the Windows 7 terminals was using smb2. When we enabled smb2 in samba we saw in samba logs that it was not being used. We modified Windows 7 registry as described in http://www.techemperor.com/2009/09/21/manual-patch-for-windows-vistaserver-2008-smb2-flaw/ to enable smb2 to start using smb2. Once this was done smb2 was negotiated but there was no speed difference. The OS read test is done iterating from 0 to 999 a dd if=testFile-xxx of=/dev/null bs=1k. The samba local access test is done with smbclient from the same machine sending the output to /dev/null. Is the speed decrease (from 158 MB/s to 71 MB/s) from what I get when I test from the OS to what I get with samba normal? Juan Pablo From: Jeremy Allison To: Juan Pablo Cc: samba@lists.samba.org Sent: Thu, May 26, 2011 1:16:02 PM Subject: Re: [Samba] Samba performance On Wed, May 25, 2011 at 08:02:56PM -0700, Juan Pablo wrote: > Hi everyone, > > I'm trying to use samba in a small video post production house but we are not > getting the performance we expected. > > Our setup: > > - CenOS 5.6 x86-64 > - samba.x86_64 (3.0.33-3.29.el5_6.2 and 3.6.0rc1) > - Intel based server (One 4 core Xeon E5620 @ 2.40GHz, 8 GB RAM) > - 4 Intel Gigagit ethernet NIC ports with 802.3ad bonding connected to a > switch > > configured tu use 802.3ad > - 8 2TB 7.2 krpm SATA disks with hardware RAID5 (RAID stripe size 1024 bytes, > controller and disk cache enabled, readahead enabled) > - XFS filesystem (created with the following parameters: size=64k -d > su=1024k,sw=7) > - Average file size in the share: 8 MByte > - Gigabit network composed by Cat5E certified cabling and DLink DGS-3427 >gigabit > > switch. > - Intel I7 based terminals with Intel gigabit NIC, running Windows 7 > > > Test results: > > OS access: > > Sequential write (1 x 31 GByte file): 500 MByte/s > Sequential read (1 x 31 GByte file): 780 MByte/s > Write (1000 files 8 MByte each): 249 MByte/s average > Read (1000 files 8 MByte each): 158 MByte/s average > Simultaneous write (4 processes each writing 1000 files of 8 MByte each ): > 188 > MByte/s average > Simultaneous read (4 processes each reading 1000 files of 8 MByte each): 118 > MByte/s average > > Samba local access (stock CentOS samba 3.0.33 connecting from the same server > with smbclient): > > Sequential read (1 x 31 GByte file): 267 MByte/s > Read (1000 files 8 MByte each): 71 MByte/s average > Simultaneous read (4 processes each reading 1000 files of 8 MByte each): 102 > MByte/s average > > Samba local access (Samba 3.6.0rc1 compiled from GIT repo. Connecting from > the > same server with smbclient): > > Read (1000 files 8 MByte each): 95 MByte/s average > Simultaneous read (4 processes each reading 1000 files of 8 MByte each): 103 > MByte/s average > > Samba server accessed from Windows 7 terminals (samba 3.6.0rc1): > > Read (1 terminal copying from samba fileserver to local disk 1000 files 8 > MByte > > each): 60 MByte/s average > Simultaneous read (4 terminals each copying from samba fileserver to local > disk > > 1000 files of 8 MByte each): 70 MByte/s average > > Note: Simultaneos read speed is measured adding the size of all transfered >files > > and dividing it by the time taken to transfer these files. > > I will appreciate any feedback about the results we are getting and advice on > how to improve this. If you're using 3.6.0 and Windows 7 clients try turning on SMB2 support by setting "max protocol = smb2" in the [global] section of your smb.conf. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba performance
On Thu, May 26, 2011 at 09:16:02AM -0700, Jeremy Allison wrote: > If you're using 3.6.0 and Windows 7 clients try turning on SMB2 support > by setting "max protocol = smb2" in the [global] section of your smb.conf. Well, using smbclient should definitely get better performance. Something is wrong here... Volker -- SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen phone: +49-551-37-0, fax: +49-551-37-9 AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba performance
W dniu 2011-05-26 05:02, Juan Pablo pisze: Hi everyone, I'm trying to use samba in a small video post production house but we are not getting the performance we expected. Our setup: - CenOS 5.6 x86-64 - samba.x86_64 (3.0.33-3.29.el5_6.2 and 3.6.0rc1) - Intel based server (One 4 core Xeon E5620 @ 2.40GHz, 8 GB RAM) - 4 Intel Gigagit ethernet NIC ports with 802.3ad bonding connected to a switch configured tu use 802.3ad - 8 2TB 7.2 krpm SATA disks with hardware RAID5 (RAID stripe size 1024 bytes, controller and disk cache enabled, readahead enabled) - XFS filesystem (created with the following parameters: size=64k -d su=1024k,sw=7) - Average file size in the share: 8 MByte - Gigabit network composed by Cat5E certified cabling and DLink DGS-3427 gigabit switch. - Intel I7 based terminals with Intel gigabit NIC, running Windows 7 Test results: OS access: Sequential write (1 x 31 GByte file): 500 MByte/s Sequential read (1 x 31 GByte file): 780 MByte/s Write (1000 files 8 MByte each): 249 MByte/s average Read (1000 files 8 MByte each): 158 MByte/s average Simultaneous write (4 processes each writing 1000 files of 8 MByte each ): 188 MByte/s average Simultaneous read (4 processes each reading 1000 files of 8 MByte each): 118 MByte/s average Samba local access (stock CentOS samba 3.0.33 connecting from the same server with smbclient): Sequential read (1 x 31 GByte file): 267 MByte/s Read (1000 files 8 MByte each): 71 MByte/s average Simultaneous read (4 processes each reading 1000 files of 8 MByte each): 102 MByte/s average Samba local access (Samba 3.6.0rc1 compiled from GIT repo. Connecting from the same server with smbclient): Read (1000 files 8 MByte each): 95 MByte/s average Simultaneous read (4 processes each reading 1000 files of 8 MByte each): 103 MByte/s average Samba server accessed from Windows 7 terminals (samba 3.6.0rc1): Read (1 terminal copying from samba fileserver to local disk 1000 files 8 MByte each): 60 MByte/s average Simultaneous read (4 terminals each copying from samba fileserver to local disk 1000 files of 8 MByte each): 70 MByte/s average Note: Simultaneos read speed is measured adding the size of all transfered files and dividing it by the time taken to transfer these files. I will appreciate any feedback about the results we are getting and advice on how to improve this. Thanks in advance Juan Pablo Maybe try the ext4 filesystem? With a new kernel - with stable support for it. Many tests have shown that ext4 is faster than XFS, but also remember to tune the parameters when creating the filesystem. You can try several different configurations and compare their performance (performance for the same parameters can be different on different hardware and RAID configurations, so options recommended by other people are not always the best for you). Filesystem mount options are also important! The second thing is network - some switches do not do port trunking well - for example they use always use one wire even if there are 2 or more connected in a trunk - so it does not improve performance - only the reliability. Usually also one data stream does not go through more than one wire, so the only possibility to get 4 Gbit speed from your server is to connect 4 simultaneously downloading stations to the switch. You can check the bandwidth usage on each interface of the server with the iftop command. For measuring the network performance I recommend also the iperf tool. Also google about network and tcp tuning in linux (parameters like txqueuelen, buffer sizes etc). About tuning samba performance you can read for example here: http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/speed.html But also in many other places on the Internet. Best regards, Daniel -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba performance
On Wed, May 25, 2011 at 08:02:56PM -0700, Juan Pablo wrote: > Hi everyone, > > I'm trying to use samba in a small video post production house but we are not > getting the performance we expected. > > Our setup: > > - CenOS 5.6 x86-64 > - samba.x86_64 (3.0.33-3.29.el5_6.2 and 3.6.0rc1) > - Intel based server (One 4 core Xeon E5620 @ 2.40GHz, 8 GB RAM) > - 4 Intel Gigagit ethernet NIC ports with 802.3ad bonding connected to a > switch > configured tu use 802.3ad > - 8 2TB 7.2 krpm SATA disks with hardware RAID5 (RAID stripe size 1024 bytes, > controller and disk cache enabled, readahead enabled) > - XFS filesystem (created with the following parameters: size=64k -d > su=1024k,sw=7) > - Average file size in the share: 8 MByte > - Gigabit network composed by Cat5E certified cabling and DLink DGS-3427 > gigabit > switch. > - Intel I7 based terminals with Intel gigabit NIC, running Windows 7 > > > Test results: > > OS access: > > Sequential write (1 x 31 GByte file): 500 MByte/s > Sequential read (1 x 31 GByte file): 780 MByte/s > Write (1000 files 8 MByte each): 249 MByte/s average > Read (1000 files 8 MByte each): 158 MByte/s average > Simultaneous write (4 processes each writing 1000 files of 8 MByte each ): > 188 > MByte/s average > Simultaneous read (4 processes each reading 1000 files of 8 MByte each): 118 > MByte/s average > > Samba local access (stock CentOS samba 3.0.33 connecting from the same server > with smbclient): > > Sequential read (1 x 31 GByte file): 267 MByte/s > Read (1000 files 8 MByte each): 71 MByte/s average > Simultaneous read (4 processes each reading 1000 files of 8 MByte each): 102 > MByte/s average > > Samba local access (Samba 3.6.0rc1 compiled from GIT repo. Connecting from > the > same server with smbclient): > > Read (1000 files 8 MByte each): 95 MByte/s average > Simultaneous read (4 processes each reading 1000 files of 8 MByte each): 103 > MByte/s average > > Samba server accessed from Windows 7 terminals (samba 3.6.0rc1): > > Read (1 terminal copying from samba fileserver to local disk 1000 files 8 > MByte > each): 60 MByte/s average > Simultaneous read (4 terminals each copying from samba fileserver to local > disk > 1000 files of 8 MByte each): 70 MByte/s average > > Note: Simultaneos read speed is measured adding the size of all transfered > files > and dividing it by the time taken to transfer these files. > > I will appreciate any feedback about the results we are getting and advice on > how to improve this. If you're using 3.6.0 and Windows 7 clients try turning on SMB2 support by setting "max protocol = smb2" in the [global] section of your smb.conf. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Confusion berween file and direcory
From: Felix Date: Thu, 26 May 2011 14:28:07 + (UTC) > I have some trouble with a samba 3.5.8 server when setting directory > attributes. On a windows XP I execute a small peace of code that calls > 'SetFileAttributes' for the directory 'test-dir' located on the samba > server. Using log level 10 I find this: (snip) > [2011/05/26 15:27:02.145766, 10] smbd/open.c:170(fd_open) > fd_open: name test-dir, flags = 01 mode = 0764, fd = -1. Is a directory > [2011/05/26 15:27:02.145779, 3] smbd/open.c:461(open_file) > Error opening file test-dir (NT_STATUS_FILE_IS_A_DIRECTORY) > (local_flags=1) (flags=1) > > As I said, 'test-dir' is a directory. If my understand of the log is > correct samba confuses a directory with a file? Why would this happen? The patch attached at Newly create files are always failed with NT_STATUS_FILE_IS_A_DIRECTORY https://bugzilla.samba.org/show_bug.cgi?id=8042 maybe solve you problem?? --- TAKAHASHI Motonobu -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Pdbedit cannot modify SID
From: Guillaume Date: Wed, 25 May 2011 12:44:51 +0200 > Not to loose Windows profiles, I'm trying to modify john's SID on Ubuntu > server : > pdbedit -u john -U S-1-5-21-1222067456-3914006320-3959678504-11026 > > Result shows no change in SID. No error message. > > Can you help ? As far as I examined at Samba 3.5.6 on Lenny, ldapsam backend "pdbedit -U" works well. What passdb backend do you use? --- TAKAHASHI Motonobu -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Confusion berween file and direcory
I have some trouble with a samba 3.5.8 server when setting directory attributes. On a windows XP I execute a small peace of code that calls 'SetFileAttributes' for the directory 'test-dir' located on the samba server. Using log level 10 I find this: [2011/05/26 15:27:02.144060, 3] smbd/process.c:1298 (switch_message) switch message SMBtrans2 (pid 28903) conn 0x7f5e35f0dbb0 [2011/05/26 15:27:02.144104, 4] smbd/uid.c:257(change_to_user) change_to_user: Skipping user change - already user [2011/05/26 15:27:02.144153, 3] smbd/trans2.c:7722 (call_trans2setfilepathinfo) call_trans2setfilepathinfo(8) test-dir (fnum 13342) info_level=1004 totdata=40 [2011/05/26 15:27:02.144199, 3] smbd/trans2.c:7320 (smbd_do_setfilepathinfo) smbd_do_setfilepathinfo: test-dir (fnum 13342) info_level=1004 totdata=40 [2011/05/26 15:27:02.144245, 6] smbd/trans2.c:5518(smb_set_file_dosmode) smb_set_file_dosmode: dosmode: 0x90 [2011/05/26 15:27:02.144288, 8] smbd/dosmode.c:613(dos_mode) dos_mode: test-dir [2011/05/26 15:27:02.144332, 8] smbd/dosmode.c:207(dos_mode_from_sbuf) dos_mode_from_sbuf returning d [2011/05/26 15:27:02.144387, 8] smbd/dosmode.c:666(dos_mode) dos_mode returning d [2011/05/26 15:27:02.144431, 10] smbd/trans2.c:5524(smb_set_file_dosmode) smb_set_file_dosmode: file test-dir : setting dos mode 0x90 [2011/05/26 15:27:02.144475, 10] smbd/dosmode.c:701(file_set_dosmode) file_set_dosmode: setting dos mode 0x10 on file test-dir [2011/05/26 15:27:02.144526, 8] smbd/dosmode.c:613(dos_mode) dos_mode: test-dir [2011/05/26 15:27:02.144571, 8] smbd/dosmode.c:207(dos_mode_from_sbuf) dos_mode_from_sbuf returning d [2011/05/26 15:27:02.144615, 8] smbd/dosmode.c:666(dos_mode) dos_mode returning d [2011/05/26 15:27:02.144659, 3] smbd/dosmode.c:166(unix_mode) unix_mode(test-dir) returning 0775 [2011/05/26 15:27:02.144710, 10] modules/vfs_posixacl.c:89 (posixacl_sys_acl_set_file) Calling acl_set_file: test-dir, 0 [2011/05/26 15:27:02.144762, 10] modules/vfs_posixacl.c:108 (posixacl_sys_acl_set_file) acl_set_file failed: Operation not permitted [2011/05/26 15:27:02.144815, 10] smbd/open.c:3381(create_file_default) create_file: access_mask = 0x2 file_attributes = 0x0, share_access = 0x7, create_disposition = 0x1 create_options = 0x0 oplock_request = 0x8 root_dir_fid = 0x0, ea_list = 0x(nil), sd = 0x(nil), fname = test-dir [2011/05/26 15:27:02.144863, 3] smbd/vfs.c:881(check_reduced_name) check_reduced_name [test-dir] [/srv/samba/file-shares/testshare] [2011/05/26 15:27:02.144917, 10] smbd/vfs.c:968(check_reduced_name) check_reduced_name realpath [test-dir] -> [/srv/samba/file-shares/ testshare/test-dir] [2011/05/26 15:27:02.144963, 3] smbd/vfs.c:1038(check_reduced_name) check_reduced_name: test-dir reduced to /srv/samba/file-shares/testshare/ test-dir [2011/05/26 15:27:02.145007, 10] smbd/open.c:2906(create_file_unixpath) create_file_unixpath: access_mask = 0x2 file_attributes = 0x0, share_access = 0x7, create_disposition = 0x1 create_options = 0x0 oplock_request = 0x8 ea_list = 0x(nil), sd = 0x(nil), fname = test-dir [2011/05/26 15:27:02.145055, 5] smbd/files.c:119(file_new) allocated file structure 9247, fnum = 13343 (2 used) [2011/05/26 15:27:02.145101, 3] smbd/dosmode.c:166(unix_mode) unix_mode(test-dir) returning 0764 [2011/05/26 15:27:02.145145, 10] smbd/open.c:1533(open_file_ntcreate) open_file_ntcreate: fname=test-dir, dos_attrs=0x0 access_mask=0x2 share_access=0x7 create_disposition = 0x1 create_options=0x0 unix mode=0764 oplock_request=8 [2011/05/26 15:27:02.145192, 3] smbd/vfs.c:881(check_reduced_name) check_reduced_name [test-dir] [/srv/samba/file-shares/testshare] [2011/05/26 15:27:02.145242, 10] smbd/vfs.c:968(check_reduced_name) check_reduced_name realpath [test-dir] -> [/srv/samba/file-shares/ testshare/test-dir] [2011/05/26 15:27:02.145287, 3] smbd/vfs.c:1038(check_reduced_name) check_reduced_name: test-dir reduced to /srv/samba/file-shares/testshare/ test-dir [2011/05/26 15:27:02.145330, 8] smbd/dosmode.c:613(dos_mode) dos_mode: test-dir [2011/05/26 15:27:02.145374, 8] smbd/dosmode.c:207(dos_mode_from_sbuf) dos_mode_from_sbuf returning d [2011/05/26 15:27:02.145417, 8] smbd/dosmode.c:666(dos_mode) dos_mode returning d [2011/05/26 15:27:02.145460, 10] smbd/open.c:1715(open_file_ntcreate) open_file_ntcreate: fname=test-dir, after mapping access_mask=0x2 [2011/05/26 15:27:02.145510, 10] lib/dbwrap_tdb.c:100(db_tdb_fetch_locked) Locking key 01FE0160 [2011/05/26 15:27:02.145556, 10] lib/dbwrap_tdb.c:129(db_tdb_fetch_locked) Allocated locked data 0x0x7f5e35f32b60 [2011/05/26 15:27:02.145601, 10] locking/locking.c:552(parse_share_modes) parse_share_modes: delete_on_close: 0, owrt: Thu 26 May 2011 12:18:38 PM CEST CEST, cwrt: Thu 01 Jan 1970 01:00:00 AM CET CET, tok: 0, num_share_modes: 1 [2011/05/26 15:27:02.145661, 10] locking/locking.c:655(parse_share_modes) parse_share_modes: share_mode_entry[0]: pid
[Samba] Accessing the root file system in a share.
My goal is to access / in a share for backup purposes. My samba has an LDAP password backend and has been working for some time with every other user. I created the following user in LDAP: > root:x:0:0:Root User:/root:/bin/bash And then the following entry in samba: > [slashroot] > writeable = no > path = / > browseable = yes > valid users = root And the system sees it and I can log in to it via samba. However, I cannot see all of the files. I thought the "root" user had permissions to see everything. Did I miss a step? Thanks. -- Mike A. Leonetti As warm as green tea -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Error when changing domain password in Windows XP
On 15:24:57 wrote Torkil Svensgaard: > On 2011-05-26 13:10, Gaiseric Vandal wrote: > > Do you have a password change chat script configured and defined in > > smb.conf ? > > I've tried the following two, as well as the default blank, same > result in all cases. > > passwd program = /usr/sbin/smbldap-passwd %u > passwd program = /usr/bin/passwd %u > > Either works when run manually as root. then you should check the ACLs in openldap > Mvh. > > Torkil -- regards Harry Jede -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Printer settings not saved
Daer Thilo and Samba friends, On Fri, May 20, 2011 at 02:43:15PM +0200, Willy Offermans wrote: > Dear Thilo, > > Did you manage to solve this issue? I'm having the same problem for some > time now and I have not any clue yet how to solve this. > > On Wed, Apr 20, 2011 at 04:40:28PM +0200, Thilo Uttendorfer wrote: > > Hi, > > > > I have problems to save printer settings like changing the > > size from letter to A4. This happens for user settings > > and default printer settings. The settings are always > > resetted to default values like "letter". > > > > The system uses samba 3.4.11, I also did some tests with > > samba 3.5.8, but nothing changed. > > > > After downgrading to 3.3.2 everything worked as expected. > > I didn't change any samba configuration while up- and > > downgrading. > > > > Bug #6727 sounds a little bit like my problem: > > "[...] Also if I change the configuration (e. g. configure > > 4 cartridges instead of 2), it is not be saved)." > > But this bug should be fixed with 3.5.8, see: > > https://bugzilla.samba.org/show_bug.cgi?id=6727 > > > > Can somebody confirm this bug? > > > > > > Thank you, > > Thilo Uttendorfer > > > > Is anyone able to solve this issue? or at least to point out how to prevent the settings from being changed all the time? We are using Samba version 3.5.6 on FreeBSD 7.2-RELEASE-p2 -- Met vriendelijke groeten, With kind regards, Mit freundlichen Gruessen, Willy * W.K. Offermans Home: +31 45 544 49 44 Mobile: +31 681 15 87 68 e-mail: wi...@offermans.rompen.nl -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Error when changing domain password in Windows XP
On 2011-05-26 13:10, Gaiseric Vandal wrote: Do you have a password change chat script configured and defined in smb.conf ? I've tried the following two, as well as the default blank, same result in all cases. passwd program = /usr/sbin/smbldap-passwd %u passwd program = /usr/bin/passwd %u Either works when run manually as root. Mvh. Torkil -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Error when changing domain password in Windows XP
Do you have a password change chat script configured and defined in smb.conf ? I run solaris 10 with Sun/Oracle Directory Server for LDAP backend. Samba runs as root but root is NOT a ldap administrator. My chat script has to run with ldap admin priveledges. Though I could have probably had it run as the windows user if it it can process the old and new password. -Original Message- From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] On Behalf Of Torkil Svensgaard Sent: Thursday, May 26, 2011 6:42 AM To: samba@lists.samba.org Subject: [Samba] Error when changing domain password in Windows XP Hi list I'm have a samba (2:3.5.4~dfsg-1ubuntu8.4) domain with LDAP backend and I'm getting the following error when I try to change my domain password via Windows XP: "The User name or old password is incorrect. Letters in passwords must be typed using the correct case". The password is typed correctly and it does get changed in LDAP though. This snippet from the log may be the culprit: [2011/05/26 12:22:14.392666, 5] lib/smbldap.c:1556(smbldap_modify) smbldap_modify: dn => [uid=torkil,ou=Users,dc=drcmr,dc=local] [2011/05/26 12:22:14.392990, 10] lib/smbldap.c:1576(smbldap_modify) Failed to modify dn: uid=torkil,ou=Users,dc=drcmr,dc=local, error: 16 (No such attribute) (modify/delete: sambaNTPassword: no such value) [2011/05/26 12:22:14.393027, 3] smbd/sec_ctx.c:418(pop_sec_ctx) pop_sec_ctx (65534, 65534) - sec_ctx_stack_ndx = 1 [2011/05/26 12:22:14.393046, 5] rpc_server/srv_samr_nt.c:1954(_samr_ChangePasswordUser2) _samr_ChangePasswordUser2: 1954 [2011/05/26 12:22:14.393059, 1] ../librpc/ndr/ndr.c:251(ndr_print_function_debug) samr_ChangePasswordUser2: struct samr_ChangePasswordUser2 out: struct samr_ChangePasswordUser2 result : NT_STATUS_UNSUCCESSFUL The attribute sambaNTPassword is present on the object, so that makes no sense? I'm also seeing this error: [2011/05/26 12:22:15.512074, 0] ../libcli/auth/smbencrypt.c:589(decode_pw_buffer) decode_pw_buffer: incorrect password length (1024268875). [2011/05/26 12:22:15.512087, 0] ../libcli/auth/smbencrypt.c:590(decode_pw_buffer) decode_pw_buffer: check that 'encrypt passwords = yes' [2011/05/26 12:22:15.512100, 5] rpc_server/srv_samr_nt.c:1954(_samr_ChangePasswordUser2) _samr_ChangePasswordUser2: 1954 [2011/05/26 12:22:15.512111, 1] ../librpc/ndr/ndr.c:251(ndr_print_function_debug) samr_ChangePasswordUser2: struct samr_ChangePasswordUser2 out: struct samr_ChangePasswordUser2 result : NT_STATUS_WRONG_PASSWORD Any suggestions? I found this problem when I installed pam_passwdqc, which seem to work. Thanks, Torkil -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Error when changing domain password in Windows XP
Hi list I'm have a samba (2:3.5.4~dfsg-1ubuntu8.4) domain with LDAP backend and I'm getting the following error when I try to change my domain password via Windows XP: "The User name or old password is incorrect. Letters in passwords must be typed using the correct case". The password is typed correctly and it does get changed in LDAP though. This snippet from the log may be the culprit: [2011/05/26 12:22:14.392666, 5] lib/smbldap.c:1556(smbldap_modify) smbldap_modify: dn => [uid=torkil,ou=Users,dc=drcmr,dc=local] [2011/05/26 12:22:14.392990, 10] lib/smbldap.c:1576(smbldap_modify) Failed to modify dn: uid=torkil,ou=Users,dc=drcmr,dc=local, error: 16 (No such attribute) (modify/delete: sambaNTPassword: no such value) [2011/05/26 12:22:14.393027, 3] smbd/sec_ctx.c:418(pop_sec_ctx) pop_sec_ctx (65534, 65534) - sec_ctx_stack_ndx = 1 [2011/05/26 12:22:14.393046, 5] rpc_server/srv_samr_nt.c:1954(_samr_ChangePasswordUser2) _samr_ChangePasswordUser2: 1954 [2011/05/26 12:22:14.393059, 1] ../librpc/ndr/ndr.c:251(ndr_print_function_debug) samr_ChangePasswordUser2: struct samr_ChangePasswordUser2 out: struct samr_ChangePasswordUser2 result : NT_STATUS_UNSUCCESSFUL The attribute sambaNTPassword is present on the object, so that makes no sense? I'm also seeing this error: [2011/05/26 12:22:15.512074, 0] ../libcli/auth/smbencrypt.c:589(decode_pw_buffer) decode_pw_buffer: incorrect password length (1024268875). [2011/05/26 12:22:15.512087, 0] ../libcli/auth/smbencrypt.c:590(decode_pw_buffer) decode_pw_buffer: check that 'encrypt passwords = yes' [2011/05/26 12:22:15.512100, 5] rpc_server/srv_samr_nt.c:1954(_samr_ChangePasswordUser2) _samr_ChangePasswordUser2: 1954 [2011/05/26 12:22:15.512111, 1] ../librpc/ndr/ndr.c:251(ndr_print_function_debug) samr_ChangePasswordUser2: struct samr_ChangePasswordUser2 out: struct samr_ChangePasswordUser2 result : NT_STATUS_WRONG_PASSWORD Any suggestions? I found this problem when I installed pam_passwdqc, which seem to work. Thanks, Torkil -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Variable substitution in config file
Hi all, Using the variable substitution method %$var for the parameter workgroup in the smb.conf file (global section) does not work for Samba 3.5.8. The following settings do not work: (...Some startup script...) export myworkgroup = "WORKGROUP2" smbd --daemon --configfile=/etc/samba/smb.conf nmbd --daemon --configfile=/etc/samba/smb.conf Then in the /etc/samba/smb.conf having the following settings: [global] server string = My Test Server (%i) workgroup = %$myworkgroup netbios name = testserver The servers workgroup after startup is "%$myworkgroup" without the quotes. If someone can point me my mistake it will be appreciated. Kind regards Riaan -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba