[Samba] Permission denied error while connecting to EMC CIFS server
Hi, I'm getting "Permission denied" error while connecting to a EMC cifs share from samba client on unix machine. Looking at the packet capture it is observed that samba client is authenticating with "anonymous" instead of the user name that has been provided. Here are flags received from EMC server as part of "Session Setup AndX Response, NTLMSSP_CHALLENGE, NTLMSSP_CHALLENGE, Error: STATUS_MORE_PROCESSING_REQUIRED" packet. After this, client connected to EMC server with "anonymous" instead of given username. Any help? Flags: 0x20018201 0... = Negotiate 56: Not set .0.. = Negotiate Key Exchange: Not set ..1. = Negotiate 128: Set ...0 = Negotiate 0x1000: Not set 0... = Negotiate 0x0800: Not set .0.. = Negotiate 0x0400: Not set ..0. = Negotiate Version: Not set ...0 = Negotiate 0x0100: Not set 0... = Negotiate Target Info: Not set .0.. = Request Non-NT Session: Not set ..0. = Negotiate 0x0020: Not set ...0 = Negotiate Identify: Not set 0... = Negotiate Extended Security: Not set .0.. = Target Type Share: Not set ..0. = Target Type Server: Not set ...1 = Target Type Domain: Set 1... = Negotiate Always Sign: Set .0.. = Negotiate 0x4000: Not set ..0. = Negotiate OEM Workstation Supplied: Not set ...0 = Negotiate OEM Domain Supplied: Not set 0... = Negotiate 0x0800: Not set .0.. = Negotiate NT Only: Not set ..1. = Negotiate NTLM key: Set ...0 = Negotiate 0x0100: Not set 0... = Negotiate Lan Manager Key: Not set .0.. = Negotiate Datagram: Not set ..0. = Negotiate Seal: Not set ...0 = Negotiate Sign: Not set 0... = Request 0x0008: Not set .0.. = Request Target: Not set ..0. = Negotiate OEM: Not set ...1 = Negotiate UNICODE: Set NTLM Server Challenge: 400ce1834c04f2eb Reserved: Target Info mechListMIC: 4e544c4d535352000600060031820120... NTLM Secure Service Provider NTLMSSP identifier: NTLMSSP NTLM Message Type: NTLMSSP_CHALLENGE (0x0002) Target Name: MHS Flags: 0x20018201 0... = Negotiate 56: Not set .0.. = Negotiate Key Exchange: Not set ..1. = Negotiate 128: Set ...0 = Negotiate 0x1000: Not set 0... = Negotiate 0x0800: Not set .0.. = Negotiate 0x040
Re: [Samba] Does samba-3.6.7's libsmbclient supports SMB2 protocol?
Thanks a lot Volker, Does source4 directory has got SMB2 support in libsmbclient library? thanks, -Kishore From: Volker Lendecke To: naga_kishore_komm...@yahoo.com Cc: "samba@lists.samba.org" Sent: Friday, August 31, 2012 7:41 PM Subject: Re: [Samba] Does samba-3.6.7's libsmbclient supports SMB2 protocol? On Fri, Aug 31, 2012 at 06:56:04AM -0700, naga_kishore_komm...@yahoo.com wrote: > Hi, > I'm using libsmbclient library built from source3 directory of samba-3.6.7. > When I connect to a vista/2008 server using this libsmbclient library, > communication is happening in SMB1 protocol and NOT in SMB2. > Please note that I've enabled SMB2 by adding following line to smb.conf > > max protocol = SMB2 > > Does libsmbclient library built from source3 directory of samba-3.6.7 > supports SMB2? No, it does not yet. 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 http://www.sernet.de, mailto:kont...@sernet.de -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Does samba-3.6.7's libsmbclient supports SMB2 protocol?
Hi, I'm using libsmbclient library built from source3 directory of samba-3.6.7. When I connect to a vista/2008 server using this libsmbclient library, communication is happening in SMB1 protocol and NOT in SMB2. Please note that I've enabled SMB2 by adding following line to smb.conf max protocol = SMB2 Does libsmbclient library built from source3 directory of samba-3.6.7 supports SMB2? thanks, -Kishore -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] smbc_opendir() is failing with "Connection timed out"
Hi, I'm using samba-3.6.7. smbc_opendir() is failing with "Connection timed out" error if I give hostname as argument. For example smb://hostname But it is working fine if I give sharename. Ex smb://hostname/sharename It is working fine if I give IP address. Ex : smb://IPaddress Any clue? thanks, -Kish -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Windows 2008 cluster server support
Hi, Could you please tell whether I can access windows 2008 cluster server shares from linux box using samba? Currently I'm using samba-3.2.6. I'm not able to list shares on a windows 2008 server. Is there any way to access 2008 cluster server? Is 2008 cluster server supported in later versions of samba? Please help. thanks, -Kishore -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] How to access Windows cluster Server 2008 R2 using smblcinet
Hi, I'm using smbclient to get list of shares exported in a cluster server 2008 R2. I'm not getting the share list. Instead I'm getting list of local drives.(C$ to Z$). I'm connecting to server using IP address(given by nslookup) NOT by cluster name. and I'm processing dirents of SMBC_FILE_SHARE type. Am I missing anything here? Can I connect to the server by name instead of IP address? thanks in advance -Kishore -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] How do i get file attributes using samba.
Hi, I tried smbc_getxattr() with "system.dos_attr.mode" and I guess it will give me following attributes only... #define SMBC_DOS_MODE_READONLY 0x01 #define SMBC_DOS_MODE_HIDDEN 0x02 #define SMBC_DOS_MODE_SYSTEM 0x04 #define SMBC_DOS_MODE_VOLUME_ID 0x08 #define SMBC_DOS_MODE_DIRECTORY 0x10 #define SMBC_DOS_MODE_ARCHIVE 0x20 How can I get other attributes? thanks, -Kishore From: "naga_kishore_komm...@yahoo.com" To: "samba@lists.samba.org" Sent: Monday, June 20, 2011 1:28 PM Subject: [Samba] How do i get file attributes using samba. Hi, I need to extract the following attributes of a file in Windows share using samba. /* FileAttributesField */ #define FILE_ATTRIBUTE_READONLY 0x001L #define FILE_ATTRIBUTE_HIDDEN 0x002L #define FILE_ATTRIBUTE_SYSTEM 0x004L #define FILE_ATTRIBUTE_DIRECTORY 0x010L #define FILE_ATTRIBUTE_ARCHIVE 0x020L #define FILE_ATTRIBUTE_NORMAL 0x080L #define FILE_ATTRIBUTE_TEMPORARY 0x100L #define FILE_ATTRIBUTE_SPARSE 0x200L #define FILE_ATTRIBUTE_REPARSE_POINT 0x400L #define FILE_ATTRIBUTE_COMPRESSED 0x800L #define FILE_ATTRIBUTE_OFFLINE 0x1000L #define FILE_ATTRIBUTE_NONINDEXED 0x2000L #define FILE_ATTRIBUTE_ENCRYPTED 0x4000L #define SAMBA_ATTRIBUTES_MASK 0x7F Which API of samba library should I use to extract these attributes of a file. Thanks -Kishore -- 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] How do i get file attributes using samba.
Hi, I need to extract the following attributes of a file in Windows share using samba. /* FileAttributesField */ #define FILE_ATTRIBUTE_READONLY 0x001L #define FILE_ATTRIBUTE_HIDDEN 0x002L #define FILE_ATTRIBUTE_SYSTEM 0x004L #define FILE_ATTRIBUTE_DIRECTORY 0x010L #define FILE_ATTRIBUTE_ARCHIVE 0x020L #define FILE_ATTRIBUTE_NORMAL 0x080L #define FILE_ATTRIBUTE_TEMPORARY 0x100L #define FILE_ATTRIBUTE_SPARSE 0x200L #define FILE_ATTRIBUTE_REPARSE_POINT 0x400L #define FILE_ATTRIBUTE_COMPRESSED 0x800L #define FILE_ATTRIBUTE_OFFLINE 0x1000L #define FILE_ATTRIBUTE_NONINDEXED 0x2000L #define FILE_ATTRIBUTE_ENCRYPTED 0x4000L #define SAMBA_ATTRIBUTES_MASK 0x7F Which API of samba library should I use to extract these attributes of a file. Thanks -Kishore -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Out of memory error while calling smbc_getxattr().
Hi, I'm using samba 3.2.6 and getting the following error whille calling smbc_getxattr(). cli_lsa_lookup_sids_noalloc(): out of memory Here is the relavent code snippet of the function cli_lsa_lookup_sids_noalloc()... if (dom_idx != 0x) { dom_name = ref_domains->domains[dom_idx].name.string; name = lsa_names.names[i].name.string; if (name) { (names)[i] = talloc_strdup(mem_ctx, name); if ((names)[i] == NULL) { DEBUG(0, ("cli_lsa_lookup_sids_noalloc(): out of memory\n")); result = NT_STATUS_UNSUCCESSFUL; goto done; } } else { (names)[i] = NULL; } (domains)[i] = talloc_strdup(mem_ctx, dom_name); (types)[i] = lsa_names.names[i].sid_type; if (((domains)[i] == NULL)) { DEBUG(0, ("cli_lsa_lookup_sids_noalloc(): out of memory\n")); result = NT_STATUS_UNSUCCESSFUL; goto done; } } else { (names)[i] = NULL; (domains)[i] = NULL; (types)[i] = SID_NAME_UNKNOWN; } Is there any patch for this issue? thanks, -Kishore -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] How to extract 'size on disk' attribute a file on CIFS share
Hi, I could extract 'file size' using smbc_stat() in a C program. But how can I extract 'size on disk' value using smbclient . Is there any way? Any help is greatly appreciated. Thanks in Advance -Kishore -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] NTLM V2 authentication problem with samba-3.2.6
Hi, I'm using samba-3.2.6. Got the following error while connecting to a server which supports ntlm v2 only. NT_STATUS_LOGON_FAILURE Then I changed /etc/samba/smb.conf to include the following line.. client NTLMv2 auth = yes Even then I got the same error. Then recompiled the samba source by making the following change.. < Globals.bClientNTLMv2Auth = False; -- >Globals.bClientNTLMv2Auth = True; Then it worked. My questions... 1) Why it failed even though I've added "client NTLMv2 auth = yes" to smb.conf 2) What are the side effects of the change Globals.bClientNTLMv2Auth = True. Is this recommended? thanks, -Kishore -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] SET_PATH_INFO is not working on NetApp Filer
Hi, I'm using samba-3.2.6 on linux. Using this, I'm trying to update/modify Last Access Time(atime) of a file on CIFS share(on NetApp Filer). But not able to do so. I could successfully update atimes on windows server, but NOT on NetApp Filer. Is SET_PATH_INFO supported by NetApp filer(7.2 version)? Any help is greatly appreciated. thanks, -Kishore -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] cli_read() is stuck in select() with the following stack trace
(gdb) bt #0 0x0033a86bcc36 in select () from /lib64/tls/libc.so.6 #1 0x2ae5c108 in sys_select () from /usr/lib/libsmbclient.so.0 #2 0x2ae64027 in event_loop_once () from /usr/lib/libsmbclient.so.0 #3 0x2ae8556b in cli_pull () from /usr/lib/libsmbclient.so.0 #4 0x2ae85626 in cli_read () from /usr/lib/libsmbclient.so.0 #5 0x2ae0866a in SMBC_read_ctx () from /usr/lib/libsmbclient.so.0 ... ... #8 0x0033a861c4ca in __libc_start_main () from /lib64/tls/libc.so.6 #9 0x0040567a in _start () (gdb) I'm using samba-3.2.6 libsmbclient library on a linux box to crawl files from a windows 2003 server. Any help is greatly appreciated. thanks in advance -Kishore -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Query related to samba-3.2.6 and Last Access Time stamp.
Hi Miguel Medalha, 'noatime' option did not work. Last access times got changed on the server even after mounting the share with 'noatime' option. -Kishore - Original Message From: Miguel Medalha To: naga_kishore_komm...@yahoo.com Cc: samba@lists.samba.org Sent: Monday, April 6, 2009 6:19:21 PM Subject: Re: [Samba] Query related to samba-3.2.6 and Last Access Time stamp. > I want to avoid this and I do not have administrator permission of the > windows machine. > Is there any client side setting that I can change to avoid the updation of > 'last access date' on the server? > > Mount the server's filesystem with the "noatime" option? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Query related to samba-3.2.6 and Last Access Time stamp.
Hi Miguel/Scott, Thanks for the reply. Unfortunately I'm not mounting the samba filesystem. I'm using limsmbclient library APIs from a C program to open a smb file, read it, close the file. Is there any 'noatime' option while opening a smbfile or while initializing a context? thanks, -Kishore - Original Message From: Miguel Medalha To: naga_kishore_komm...@yahoo.com Cc: samba@lists.samba.org Sent: Monday, April 6, 2009 6:19:21 PM Subject: Re: [Samba] Query related to samba-3.2.6 and Last Access Time stamp. > I want to avoid this and I do not have administrator permission of the > windows machine. > Is there any client side setting that I can change to avoid the updation of > 'last access date' on the server? > > Mount the server's filesystem with the "noatime" option? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Query related to samba-3.2.6 and Last Access Time stamp.
Hi, I've installed samba-3.2.6 libraries on my linux box. >From the linux machine, I've transfered/copied some files from a share on >windows machine. This operation has changed the 'last access date' of the files(which I've copied) on the windows machine. I want to avoid this and I do not have administrator permission of the windows machine. Is there any client side setting that I can change to avoid the updation of 'last access date' on the server? thanks in advance -Kishore -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Segmentation fault in smbc_getxattr()->...->convert_sid_to_string() in samba-3.2.6
Hi Volker, Thanks a lot. That solves the problem. Thanks once again, -Kishore - Original Message From: Volker Lendecke To: naga_kishore_komm...@yahoo.com Cc: samba@lists.samba.org Sent: Wednesday, December 17, 2008 10:52:17 PM Subject: Re: [Samba] Segmentation fault in smbc_getxattr()->...->convert_sid_to_string() in samba-3.2.6 On Wed, Dec 17, 2008 at 08:31:17AM -0800, naga_kishore_komm...@yahoo.com wrote: > Hi, > Got segmentation fault with the follwoing stacktrace > while running "examples/libsmbclient/testacl13.c". Can you please try the attached patch? Thanks, Volker -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Segmentation fault in smbc_getxattr()->...->convert_sid_to_string() in samba-3.2.6
Hi, Got segmentation fault with the follwoing stacktrace while running "examples/libsmbclient/testacl13.c". #0 0x0033a866f200 in strlen () from /lib64/tls/libc.so.6 #1 0x0033a8642c51 in vfprintf () from /lib64/tls/libc.so.6 #2 0x0033a8661bb4 in vsnprintf () from /lib64/tls/libc.so.6 #3 0x0033a86481a1 in snprintf () from /lib64/tls/libc.so.6 #4 0x2aaebf36 in convert_sid_to_string () from /usr/lib/libsmbclient.so.0 #5 0x2aaedbda in cacl_get () from /usr/lib/libsmbclient.so.0 #6 0x2aaf05ff in SMBC_getxattr_ctx () from /usr/lib/libsmbclient.so.0 #7 0x2aae1d75 in smbc_getxattr () from /usr/lib/libsmbclient.so.0 #8 0x00400fad in main () Can somebody please help me solve this. I'm unable to use smbc_getxattr() in the latest version of samba. thanks, -Kishore -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba