[Samba] file sharing
Hi, I am using samba to redirect the profiles of the windows user on to linux. I have the follwoing setup. in my setup there is a parent child relationship between two user. I am using homes share for profile. inside the My Documents of a parent user there is a Company share folder which is shared to its child user using a different share. as parentuser.company The company share is mounted on child user's desktop. the inheritance bit is on on both comapny share and homes share. Issues are : if parent creates a folder inside company share folder the child user is able to open the folders . which i dont want to. : if if set the permission inheritance off, the above issue is solved. but if the parent creates a new folder inside a folder with read only then the permisson bits are not inherited -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] smbcacls add acl issue
Hi , I am facing weird issue with samba 3.0.28 package on Cent OS 5.2. Following is acl of the file hi.txt === # smbcacls //ntap/shkdata /RahulkTest/hi.txt -U QALAB\\Administrator%password REVISION:1 OWNER:QALAB+administrator GROUP:QALAB+Domain Users ACL:QALAB+tempAcct1:ALLOWED/0/FULL === I want to add aclnbsp; ACL:+Everyone:ALLOWED/16/FULLnbsp; for file hi.txt. But If I try to add, it gives following error: = [root@shekok1 ~]# smbcacls -a ACL:Everyone:ALLOWED/16/FULLnbsp; //ntap/shkdata /RahulkTest/hi.txt -U QALAB\\Administrator%password cacl_set failed to open \RahulkTest\hi.txt: NT_STATUS_ACCESS_DENIED = nbsp; But if I try to add same acl with samba 3.0.23c, it is successful. Why it is an issue with latest versions as it works fine with older version 3.0.23c. Following is snippet of strace of smbcacls command: == # strace smbcacls -a ACL:Everyone:ALLOWED/16/FULLnbsp; //ntap/shkdata /RahulkTest/hi.txt -U QALAB\\Administrator%password execve(/usr/bin/smbcacls, [smbcacls, -a, ACL:Everyone:ALLOWED/16/FULL, //ntap/shkdata, /RahulkTest/hi.txt, -U, QALAB\\Administrator%password], [/* 27 vars */]) = 0 brk(0)nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; = 0x9f03000 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ffd000 access(/etc/ld.so.preload, R_OK)nbsp;nbsp;nbsp;nbsp;nbsp; = -1 ENOENT (No such file or directory) open(/opt/openkaz/lib/tls/i686/sse2/libcrypt.so.1, O_RDONLY) = -1 ENOENT (No such file or directory) stat64(/opt/openkaz/lib/tls/i686/sse2, 0xbfc59498) = -1 ENOENT (No such file or directory) .. read(4, \377SMB\4\0\0\0\0\210\1\200\0\0\0\0\0\0\0\0\0\0\0\0@\0$r\0\10\7\0..., 35) = 35 write(4, \0\0\0z\377SMB\242\0\0\0\0\10\1\310\0\0\0\0\0\0\0\0\0\0\0\0@\0$r..., 126) = 126 gettimeofday({1308224649, 923904}, NULL) = 0 select(5, [4], NULL, NULL, {10, 0})nbsp;nbsp;nbsp;nbsp; = 1 (in [4], left {10, 0}) read(4, \0\0\0#, 4)nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; = 4 gettimeofday({1308224649, 924291}, NULL) = 0 select(5, [4], NULL, NULL, {10, 0})nbsp;nbsp;nbsp;nbsp; = 1 (in [4], left {10, 0}) read(4, \377SMB\242\\0\0\300\210\1\300\0\0\0\0\0\0\0\0\0\0\0\0@\0$r\0\10\10\0..., 35) = 35 fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 11), ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ff4000 write(1, cacl_set failed to open \\RahulkT..., 68cacl_set failed to open \RahulkTest\hi.txt: NT_STATUS_ACCESS_DENIED ) = 68 exit_group(1)nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; == After adding acl, I change owner to QALAB+tempAcct1 to give exclusive access of file to tempAcct1user. So just wondering why it is not working with samba 3.0.28 or 3.0.33? Thanks, Rahul -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Unable to change owner of the file through smbcacls
I am able to change owner from User1 to Administrator at Domain Controller/active-directory machine. And after that from linux box, using smbcacls -C DOMAIN\\User1 .. command I am able to change owner from Administrator --gt; User1. But changing owner from User1 to Administrator using smbcacls is not working. nbsp; User1 is in Domain admins, Administrators , backup operators groupnbsp; in active directory. ~rahul On Wed, 23 Mar 2011 15:11:13 , Katariya Rahul lt;rahulrahu...@rediffmail.comgt; wrote Hi , I am unable to change owner to Administrator of the file through smbcacls command. CIFS share is in french domain. SMBACLS for the file are: == amp;nbsp;smbcacls -n //10.10.18.19/Rahulk\ test /test.txt -U es1kr\\èçæreg;ôû%èçæreg;ôû REVISION:1 OWNER:ES1KR+èçæreg;ôû GROUP:ES1KR+Utilisa. du domaine ACL:+Tout le monde:DENIED/0/0x000d0116 ACL:ES1KR+èçæreg;ôû:ALLOWED/0/FULL amp;nbsp;smbcaclsamp;nbsp; -n //10.10.18.19/Rahulk\ test /test.txt -U es1kr\\Administrateur%Qy Failed to open \test.txt: NT_STATUS_ACCESS_DENIED amp;nbsp;smbcaclsamp;nbsp; -C es1kr\Administrateur\%Qy //10.10.180.169/Rahulk\ test /test.txt -U es1kr\\Administrateur%Qy Failed to open \test.txt: NT_STATUS_ACCESS_DENIED === Although Administrator is not user, it can take ownership at any time. But this is not happening. -- To unsubscribe from this list go to the following URL and read the instructions: nbsp;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
Re: [Samba] CIFS mount with non-ascii (UTF8) password is not working
This is a windows share.nbsp; But I am trying to mount it from Linux. I tried iocharset=utf8 option, but it didn't work. If I map the same share from laptop (Windows OS), it work fine. I enabled CIFS debugging. Following are errors: == kernel: Status code returned 0xc06d NT_STATUS_LOGON_FAILURE nbsp; !!Mapping smb error code 5 to POSIX err -13 !! nbsp;nt_status is c06d == I am using username : ùrkkknbsp; and password ùrkkk. And user ùrkkk is in Administrators group. ~rahulnbsp; On Sun, 27 Mar 2011 14:00:38 +0530 Jeff Layton lt;jlay...@redhat.comgt; wrote gt;On Fri, 25 Mar 2011 10:44:42 + gt;Moray Henderson lt;moray.hender...@ict-software.orggt; wrote: gt; gt;gt; Katariya Rahul wrote: gt;gt; gt; I have French CIFS server. gt;gt; gt; gt;gt; gt; If I try to map a share from any windows machine with non-ascii (UTF-8, gt;gt; gt; french characters are part of password) password, it is successful. gt;gt; gt; gt;gt; gt; But If I try from linux machine, it fails. gt;gt; gt; gt;gt; gt; mount -t cifs //MACHINE/DatasetFIGS_ùÉÀÊÚÎÏŒÄÑ£₣€amp;nbsp; /tmp/rahul -o gt;gt; gt; user=ùù,password=ùù,domain=eKKDr gt;gt; gt; mount error 13 = Permission denied gt;gt; gt; Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) gt;gt; gt; amp;nbsp; gt;gt; gt; gt;gt; gt; Does CIFS supports non-ascii password? gt;gt; gt;gt; On the Linux machine, what output does the locale command give you? gt;gt; gt;gt; If you type the password at the Linux prompt where you can see it, do you get the right characters? If the keyboard isn't set right in Linux, it won't work. To see exactly how the password is being encoded, use echo lt;passwordgt; | xxd (although obviously don't post the output for a real password here). gt;gt; gt;gt; Was the password set from Windows or from Linux? If from Windows, then I would expect the encoding to be in either UTF-16 or the Windows locale 8-bit encoding, not UTF-8. For example, Latin Small Letter E With Acute is encoded as 0xE9 in the Windows Western encoding, 0xE900 in UTF-16, and 0xC3A9 in UTF-8. gt;gt; gt;gt; Does it work any better if you use Samba's own mount.cifs program directly rather than going through mount? gt;gt; gt;gt; I do not know what (if any) character encoding translation the cifs module does. Check whether the locale and testparm -vs | grep char on your CIFS server match the settings on the Linux machine you are doing the mapping from. gt;gt; gt;gt; gt; gt;Linux CIFS generally treats passwords as an opaque series of bytes. It gt;does no translation of that piece. gt; gt;-- gt;Jeff Layton lt;jlay...@redhat.comgt; gt; -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Urgent: Unable to change owner of the file through smbcacls
password is having ascii characters. But path is non-ascii. I am able to mount it as password is in ascii. I am not able to change owner of the file to Administrator. On Thu, 24 Mar 2011 12:32:31 +0530 Helmut Hullen lt;hul...@t-online.degt; wrote gt;Hallo, Katariya, gt; gt;Du meintest am 24.03.11: gt; gt; gt;gt; I am unable to change owner to Administrator of the file through gt;gt; smbcacls command. gt; gt; gt; gt;gt; CIFS share is in french domain. gt; gt; gt; gt;gt; SMBACLS for the file are: gt; gt;gt; == gt; gt;gt; smbcacls -n //10.10.18.19/Rahulk\ test /test.txt -U gt;gt; es1kr\\USERNAME%PASSWORD gt; gt;gt; REVISION:1 gt; gt;gt; OWNER:ES1KR+èçæreg;ôû gt; gt;gt; GROUP:ES1KR+Utilisa. du domaine gt; gt;gt; ACL:+Tout le monde:DENIED/0/0x000d0116 gt; gt;gt; ACL:ES1KR+èçæreg;ôû:ALLOWED/0/FULL gt; gt; gt;No ASCII - is that the problem? gt; gt;Viele Gruesse! gt;Helmut gt;-- gt;To unsubscribe from this list go to the following URL and read the gt;instructions: https://lists.samba.org/mailman/options/samba gt; -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] CIFS mount with non-ascii (UTF8) password is not working
I am able to mount same path when password is in ascii. But it gives problem when it is non-ascii. On Thu, 24 Mar 2011 12:32:56 +0530 Helmut Hullen lt;hul...@t-online.degt; wrote gt;Hallo, Katariya, gt; gt;Du meintest am 24.03.11: gt; gt;gt; I have French CIFS server. gt; gt;[...] gt; gt;gt; mount -t cifs //MACHINE/DatasetFIGS_ùÉ??ÄÑ£??¬amp;nbsp; /tmp/rahul gt;gt; -o user=ùù,password=ùù,domain=eKKDr mount error 13 = Permission gt;gt; denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) gt;gt; amp;nbsp; gt; gt;gt; Does CIFS supports non-ascii password? gt; gt;Maybe it's not only a problem with the password; the path seems to be gt;non-ASCII too. gt; gt;And non-ASCII has many representations - not only UTF-8. gt; gt;Viele Gruesse! gt;Helmut gt;-- gt;To unsubscribe from this list go to the following URL and read the gt;instructions: https://lists.samba.org/mailman/options/samba gt; -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Unable to change owner of the file through smbcacls
Hi , I am unable to change owner to Administrator of the file through smbcacls command. CIFS share is in french domain. SMBACLS for the file are: == nbsp;smbcacls -n //10.10.18.19/Rahulk\ test /test.txt -U es1kr\\èçîôû%èçîôû REVISION:1 OWNER:ES1KR+èçîôû GROUP:ES1KR+Utilisa. du domaine ACL:+Tout le monde:DENIED/0/0x000d0116 ACL:ES1KR+èçîôû:ALLOWED/0/FULL nbsp;smbcaclsnbsp; -n //10.10.18.19/Rahulk\ test /test.txt -U es1kr\\Administrateur%Qy Failed to open \test.txt: NT_STATUS_ACCESS_DENIED nbsp;smbcaclsnbsp; -C es1kr\Administrateur\%Qy //10.10.180.169/Rahulk\ test /test.txt -U es1kr\\Administrateur%Qy Failed to open \test.txt: NT_STATUS_ACCESS_DENIED === Although Administrator is not user, it can take ownership at any time. But this is not happening. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Unable to change owner of the file through smbcacls
I am correcting previous statement: Although Administrator is not owner of the file, it can take ownership at any time. But this is not happening On Wed, 23 Mar 2011 15:11:13 +0530 Katariya Rahul lt;rahulrahu...@rediffmail.comgt; wrote gt;Hi gt; gt;I am unable to change owner to Administrator of the file through smbcacls command. gt; gt;CIFS share is in french domain. gt; gt;SMBACLS for the file are: gt;== gt;amp;nbsp;smbcacls -n //10.10.18.19/Rahulk\ test /test.txt -U es1kr\\èç�®ôû%èç�®ôû gt;REVISION:1 gt;OWNER:ES1KR+èç�®ôû gt;GROUP:ES1KR+Utilisa. du domaine gt;ACL:+Tout le monde:DENIED/0/0x000d0116 gt;ACL:ES1KR+èç�®ôû:ALLOWED/0/FULL gt; gt; gt; gt;amp;nbsp;smbcaclsamp;nbsp; -n //10.10.18.19/Rahulk\ test /test.txt -U es1kr\\Administrateur%Qy gt;Failed to open \test.txt: NT_STATUS_ACCESS_DENIED gt; gt;amp;nbsp;smbcaclsamp;nbsp; -C es1kr\Administrateur\%Qy //10.10.180.169/Rahulk\ test /test.txt -U es1kr\\Administrateur%Qy gt;Failed to open \test.txt: NT_STATUS_ACCESS_DENIED gt; gt; gt;=== gt; gt;Although Administrator is not user, it can take ownership at any time. But this is not happening. gt; gt; gt;-- gt;To unsubscribe from this list go to the following URL and read the gt;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] Urgent: Unable to change owner of the file through smbcacls
Hi , I am unable to change owner to Administrator of the file through smbcacls command. CIFS share is in french domain. SMBACLS for the file are: == smbcacls -n //10.10.18.19/Rahulk\ test /test.txt -U es1kr\\USERNAME%PASSWORD REVISION:1 OWNER:ES1KR+èçæreg;ôû GROUP:ES1KR+Utilisa. du domaine ACL:+Tout le monde:DENIED/0/0x000d0116 ACL:ES1KR+èçæreg;ôû:ALLOWED/0/FULL smbcaclsamp;nbsp; -n //10.10.18.19/Rahulk\ test /test.txt -U es1kr\\Administrateur%PASSWORD Failed to open \test.txt: NT_STATUS_ACCESS_DENIED smbcaclsamp;nbsp; -C es1kr\Administrateur\%Qy //10.10.180.169/Rahulk\ test /test.txt -U es1kr\\Administrateur%PASSWORD Failed to open \test.txt: NT_STATUS_ACCESS_DENIED === Although Administrator is not a owner of the file, it should be able to take ownership at any time. But this is not happening. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] CIFS mount with non-ascii (UTF8) password is not working
Hi , I have French CIFS server. If I try to map a share from any windows machine with non-ascii (UTF-8, french characters are part of password) password, it is successful. But If I try from linux machine, it fails. mount -t cifs //MACHINE/DatasetFIGS_ùÉÀÊÚÎÏŒÄÑ£₣€nbsp; /tmp/rahul -o user=ùù,password=ùù,domain=eKKDr mount error 13 = Permission denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) nbsp; Does CIFS supports non-ascii password? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Samba + Two NICs
Hello, I am using samba-3.0.24-11.fc6 for my workgroup with user security level simple setup and samba works fine; I have two network interfaces eth0(internal LAN) eth1(external), the problem I face is whenever my internet disconnects and link on eth1 goes down my samba also hangs and windows clients are unable to access samba shares (probably they could not find the samba server), I thought this is due to smbd and nmbd listening on both interfaces eth0 and eth1, so I tried setting following parameters in smb.conf: hosts allow = 192.168.10.0/24 127.0.0.1 local master = yes os level = 65 interfaces = eth0 lo (so that samba will not listen on eth1) bind interfaces only =yes but my problem still continues inspite of above settings, but if I execute ifdown eth1 command samba restores its state immediately and now all clients can access the shares normally. What parameters I need to set in order to operate samba normally on interface eth0 only and ignoring the status of eth1? Is this a firewall issue? (I have setup nat; see below my iptables conf) Please help. Netstat command output: [r...@matrix ~]# netstat -tapn | grep smbd tcp0 0 192.168.10.254:139 0.0.0.0:* LISTEN 3199/smbd tcp0 0 127.0.0.1:139 0.0.0.0:* LISTEN 3199/smbd tcp0 0 192.168.10.254:445 0.0.0.0:* LISTEN 3199/smbd tcp0 0 127.0.0.1:445 0.0.0.0:* LISTEN 3199/smbd tcp0 12 192.168.10.254:445 192.168.10.251:19464 ESTABLISHED 9517/smbd tcp0 0 192.168.10.254:445 192.168.10.102:1046 ESTABLISHED 9580/smbd [r...@matrix ~]# netstat -apn | grep nmbd udp0 0 192.168.10.254:137 0.0.0.0:* 3203/nmbd udp0 0 0.0.0.0:137 0.0.0.0:* 3203/nmbd udp0 0 192.168.10.254:138 0.0.0.0:* 3203/nmbd udp0 0 0.0.0.0:138 0.0.0.0:* 3203/nmbd unix 2 [ ] DGRAM20850 3203/nmbd Iptables configuration: # Generated by iptables-save v1.4.1.1 on Sat Dec 27 11:26:07 2008 *nat :PREROUTING ACCEPT [19:1945] :POSTROUTING ACCEPT [0:0] :OUTPUT ACCEPT [4:290] -A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128 -A POSTROUTING -o eth1 -j MASQUERADE #-A POSTROUTING -o eth1 -j SNAT --to-source 203.129.225.54 #-A POSTROUTING -o eth1 -j SNAT --to-source 192.168.1.5 #-A POSTROUTING -o eth1 -j SNAT --to-source 59.90.140.72 COMMIT # Completed on Sat Dec 27 11:26:07 2008 # Generated by iptables-save v1.4.1.1 on Sat Dec 27 11:26:07 2008 *filter :INPUT DROP [79:8157] :FORWARD DROP [0:0] :OUTPUT DROP [12:1482] :okay - [0:0] -A INPUT -i eth0 -p udp -m udp --sport 67:68 --dport 67:68 -j ACCEPT -A INPUT -s 192.168.10.0/24 -i eth0 -j ACCEPT -A INPUT -s 127.0.0.1/32 -i lo -j ACCEPT -A INPUT -s 192.168.10.254/32 -i lo -j ACCEPT -A INPUT -s 203.129.225.55/32 -i lo -j ACCEPT -A INPUT -s 59.90.140.72/32 -i lo -j ACCEPT -A INPUT -s 192.168.1.5/32 -i lo -j ACCEPT -A INPUT -d 192.168.10.255/32 -i eth0 -j ACCEPT -A INPUT -d 203.129.225.55/32 -m state --state RELATED,ESTABLISHED -j ACCEPT -A INPUT -d 59.90.140.72/32 -m state --state RELATED,ESTABLISHED -j ACCEPT -A INPUT -d 192.168.1.5/32 -m state --state RELATED,ESTABLISHED -j ACCEPT -A INPUT -i eth1 -p tcp -m tcp --dport 21 -j okay -A INPUT -i eth1 -p tcp -m tcp --dport 20 -j okay -A INPUT -i eth1 -p tcp -m tcp --dport 22 -j okay -A INPUT -i eth1 -p tcp -m tcp --dport 80 -j okay -A INPUT -p UDP -i eth0 --destination-port 53 -j ACCEPT -A INPUT -p UDP -i eth1 --destination-port 53 -j ACCEPT -A INPUT -i eth1 -p icmp -m icmp --icmp-type 8 -j ACCEPT -A INPUT -i eth1 -p icmp -m icmp --icmp-type 11 -j ACCEPT -A FORWARD -i eth0 -j ACCEPT -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT -A OUTPUT -s 127.0.0.1/32 -j ACCEPT -A OUTPUT -s 192.168.10.254/32 -j ACCEPT -A OUTPUT -s 203.129.225.55/32 -j ACCEPT -A OUTPUT -s 59.90.140.72/32 -j ACCEPT -A OUTPUT -s 192.168.1.5/32 -j ACCEPT -A okay -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT -A okay -p tcp -m state --state RELATED,ESTABLISHED -j ACCEPT -A okay -p tcp -j DROP COMMIT # Completed on Sat Dec 27 11:26:07 2008 # Generated by webmin *mangle :FORWARD ACCEPT [0:0] :INPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0] :PREROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0] COMMIT # Completed Regards, Rahul. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba AutoCAd 2005
Hello, I have same setup here; all the CAD standards and profiles are loaded in to AutoCAD using SAMBA shares, CAD project files are also accessed from SAMBA shares. This generates very heavy traffic over network and this is I/O bound operation; you should have sufficient RAM at both server and client side. Your AutoCAD should be update with all service packs and CAD fixes released by Autodesk. The problem you are talking about should be related to AutoCAD or possibly some network issues and not with SAMBA; as this happens when user executes certain command. Make sure that AutoCAD is configured properly in case you are using some CAD standards/customizations and file paths should not be missing. Thank you. Rahul. Patrik Dufresne wrote: Hi, I have some problem with a network that use Samba as the main FileServer. All client are Windows XP and are identical in almost every point of view. User complain of several crash of AutoCad that happen during the day for no special reason. It usually happen when the user execute a command. The problem it's self it's not really important, I just want to know if any body complain about similar problem with AutoCad+Samba. If it's not the case, I will not care about the server and take a further look to other network component. Thanks for your help Patrik Dufresne -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba AutoCAd 2005
Patrik Dufresne wrote: Hi, I have some problem with a network that use Samba as the main FileServer. All client are Windows XP and are identical in almost every point of view. User complain of several crash of AutoCad that happen during the day for no special reason. It usually happen when the user execute a command. The problem it's self it's not really important, I just want to know if any body complain about similar problem with AutoCad+Samba. If it's not the case, I will not care about the server and take a further look to other network component. Thanks for your help Patrik Dufresne Rahul Tidke wrote: Hello, I have same setup here; all the CAD standards and profiles are loaded in to AutoCAD using SAMBA shares, CAD project files are also accessed from SAMBA shares. This generates very heavy traffic over network and this is I/O bound operation; you should have sufficient RAM at both server and client side. Your AutoCAD should be update with all service packs and CAD fixes released by Autodesk. The problem you are talking about should be related to AutoCAD or possibly some network issues and not with SAMBA; as this happens when user executes certain command. Make sure that AutoCAD is configured properly in case you are using some CAD standards/customizations and file paths should not be missing. Thank you. Rahul. Yan Seiner wrote: Interesting. I had a complaint today about AutoCAD being slow to access files. Once in a while users see very slow access when accessing files from the server. Apparently this is particular to AutoCAD. I am waiting on more information, so that's all I know at this point. --Yan I went through number of problems while setting up CAD softwares and Samba file server, we use softwares like 1) Graphisoft ArchiCAD which uses a concept called Teamwork (Multiple people working on same project file) 2) Autodesk Revit which uses concept of Central file (This is also shared by multiple peoples with restricted access to certain part of file; after finishing the work everyone saves back to central file and changes are reflected to central file). 3) Autodesk Architecture, this uses number of different client wise CAD standards, libraries , profiles which is all loaded in to AutoCAD project file from SAMBA share and this project files is accessed from different SAMBA share ( A common share is created for CAD standards,CAD Libraries, customization files), in addition this project file has multiple external references (called xrefs) which is also loaded from common SAMBA share. What I am trying to mention is a single file has multiple objects loaded from different SAMBA shares and a user saves the data (file on which he is working) back to server frequently (say after every 2-3 minutes); plus these software have Auto save feature which also saves the data back to server after particular time interval. So if your network disconnects (even if for fraction of seconds) in between; all the files become read only and sometime this affects the teamwork file or central file (file may get corrupt)! My question to SAMBA developers is; whether accessing files this way from different SAMBA shares in to a single CAD project file and how SAMBA serves files are inter related in any way?? What kind of SAMBA configuration one should have in above cases? Thanks Rahul. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Error while contacting ADS from Samba server
Hi Doug, Thanks for your timely reply. We have verified the things which you have mentioned in your mail in the security settings but with any combination the result does not change. We have also resolved the invalid parameters and module load warnings that was getting reported in the log file. When we give net rpc join -U Username%password , its joining to the domain. But when we give net ads join -U username%password , its giving problem and reporting the following error Failed to get ldap server info ads_connect: No results returned I had attached the log file (with ebug level set to 10) in the last mail that was the output of net ads join command I am pasting the samba global setting here, [global] workgroup=jhcc realm=JHCC.ORG idmap uid=1000-1500 idmap gid=1000-1500 wins server=172.16.64.21 server string=sanatserver netbios name=terabox encrypt passwords=yes interfaces=eth0 socket options=TCP_NODELAY read raw=yes write raw=yes oplocks=no level2 oplocks=no unix extensions=no template shell=/bin/false directory mask=0770 create mask=0770 veto files=/aquota.group/aquota.user/lost+found/.owner*/quota.group/quota.user/ root preexec=/usr/local/arm/samba/bin/smb-preexec '%S' '%I' '%U' '%a' '%T' root preexec close=Yes root postexec=/usr/local/arm/samba/bin/smb-postexec '%S' '%I' '%U' '%a' '%T' security=ADS ldap ssl=no password server=* winbind separator=+ If any other group members can throw light on this issue it will be helpful. regards, Rahul On 7/28/07, Doug VanLeuven [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rahul wrote: Hi List, We have a problem in connecting ADS server from SAMBA. Whenever we try to contact the ADS server from the Samba its giving error as LDAP_NO_RESULTS_RETURNED. snip doing parameter write cache size = 262144 [2007/07/26 23:56:48, 1] param/loadparm.c:lp_do_parameter(3283) WARNING: The write cache size option is deprecated doing parameter read size = 65536 [2007/07/26 23:56:48, 0] param/loadparm.c:map_parameter(2536) Unknown parameter encountered: read size You really should run testparm -sv 21|less and resolve any errors first off. snip Probing module 'ANSI_X3.4-1968' [2007/07/26 23:56:48, 5] lib/module.c:smb_probe_module(115) Probing module 'ANSI_X3.4-1968': Trying to load from /usr/local/arm/samba/lib/charset/ANSI_X3.4-1968.so [2007/07/26 23:56:48, 3] lib/module.c:do_smb_load_module(49) Error loading module '/usr/local/arm/samba/lib/charset/ANSI_X3.4- 1968.so': /usr/local/arm/samba/lib/charset/ANSI_X3.4-1968.so: cannot open shared object file: No such file or directory [2007/07/26 23:56:48, 5] lib/charcnv.c:charset_name(78) Locale charset 'ANSI_X3.4-1968' unsupported, using ASCII instead The code is doing what it can to let you know there are problems with the basic configuration file, and possibly the installation. snip [2007/07/26 23:56:50, 4] libsmb/namequery.c:get_dc_list(1406) get_dc_list: returning 2 ip addresses in an unordered list [2007/07/26 23:56:50, 4] libsmb/namequery.c:get_dc_list(1407) get_dc_list: 172.16.64.21:389 172.16.64.27:389 [2007/07/26 23:56:50, 5] libads/ldap.c:ads_try_connect(123) ads_try_connect: trying ldap server '172.16.64.21' port 389 [2007/07/26 23:56:50, 3] libads/ldap.c:ads_connect(285) Connected to LDAP server 172.16.64.21 [2007/07/26 23:56:50, 1] libads/ldap.c:ads_connect(289) Failed to get ldap server info [2007/07/26 23:56:50, 0] utils/net_ads.c:ads_startup(191) ads_connect: No results returned [2007/07/26 23:56:50, 2] utils/net.c:main(873) return code = -1 There are 2 DC's being found, but the connection is being refused like you describe. I thought (until samba4) that domain controller policy had to allow anonymous connections, but I've found a messages that suggest this just masks an underlying problem. Security settings/local policy/security options/ Allow anonymous SID/Name translation (enabled) Do not allow anonymous enumeration of SAM accounts (disabled) Do not allow anonymous enumeration of SAM accounts and shares (disabled) See how they're set and maybe experiment with one or more settings. Make sure the domain join is OK. Try and fix the config files (obsolete unknown values) and installation (missing objects). Over the years I've learned errors in the config can have unpredictable impacts on performance. Start troubleshooting with a clean slate. Regards, Doug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGqu4tFqWysr/jOHMRAiSKAJ9eN8hUx64DX6+CmsdkttYy2mmQbwCgvZ4S y5rGYNTdkqSrOr09PW
[Samba] Error while contacting ADS from Samba
Hi List, We have a problem in connecting ADS server from SAMBA. Whenever we try to contact the ADS server from the Samba its giving error as LDAP_NO_RESULTS_RETURNED. We have varified the code also, in the code also its giving three possibilities to raise that error message, I am pasting the portion of code here, File name: libads/ldap.c Function name: ads_server_info Code snippet within this function: value = ads_pull_string(ads, ctx, res, ldapServiceName); if (!value) { ads_msgfree(ads, res); talloc_destroy(ctx); return ADS_ERROR(LDAP_NO_RESULTS_RETURNED); } timestr = ads_pull_string(ads, ctx, res, currentTime); if (!timestr) { ads_msgfree(ads, res); talloc_destroy(ctx); return ADS_ERROR(LDAP_NO_RESULTS_RETURNED); } schema_path = ads_pull_string(ads, ctx, res, schemaNamingContext); if (!schema_path) { ads_msgfree(ads, res); talloc_destroy(ctx); return ADS_ERROR(LDAP_NO_RESULTS_RETURNED); } In the ADS server Active Directory Users and Computers , under Computers its listing the SAMBA server name also... ADS Server Details: Windows 2000 OS Domain Name : jhcc Domain Controller Name : jhcc.org Computer name : nf7000dc1.jhcc.org No: of users : 556 Please verify this and give us some clues to solve this issue. I am attaching the log file with this mail. -- regards, Rahul -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Error while contacting ADS from Samba server
= NBT/JHCC.ORG#1C, value = 172.16.64.21:389,172.16.64.27:389, timeout = Thu Jul 26 23:55:35 2007 [2007/07/26 23:56:50, 5] libsmb/namecache.c:namecache_fetch(195) no entry for JHCC.ORG#1C found. [2007/07/26 23:56:50, 10] lib/gencache.c:gencache_del(214) Deleting cache entry (key = NBT/JHCC.ORG#1C) [2007/07/26 23:56:50, 5] libsmb/namequery.c:resolve_ads(955) resolve_hosts: Attempting to resolve DC's for JHCC.ORG using DNS [2007/07/26 23:56:50, 10] libsmb/namequery.c:remove_duplicate_addrs2(320) remove_duplicate_addrs2: looking for duplicate address/port pairs [2007/07/26 23:56:50, 5] libsmb/namecache.c:namecache_store(131) namecache_store: storing 2 addresses for JHCC.ORG#1c: 172.16.64.21:389, 172.16.64.27:389 [2007/07/26 23:56:50, 10] lib/gencache.c:gencache_set(127) Adding cache entry with key = NBT/JHCC.ORG#1C; value = 172.16.64.21:389, 172.16.64.27:389 and timeout = Fri Jul 27 00:07:50 2007 (660 seconds ahead) [2007/07/26 23:56:50, 10] libsmb/namequery.c:internal_resolve_name(1145) internal_resolve_name: returning 2 addresses: 172.16.64.21:389 172.16.64.27:389 [2007/07/26 23:56:50, 8] libsmb/namequery.c:get_dc_list(1316) Adding 2 DC's from auto lookup [2007/07/26 23:56:50, 10] libsmb/namequery.c:remove_duplicate_addrs2(320) remove_duplicate_addrs2: looking for duplicate address/port pairs [2007/07/26 23:56:50, 4] libsmb/namequery.c:get_dc_list(1406) get_dc_list: returning 2 ip addresses in an unordered list [2007/07/26 23:56:50, 4] libsmb/namequery.c:get_dc_list(1407) get_dc_list: 172.16.64.21:389 172.16.64.27:389 [2007/07/26 23:56:50, 5] libads/ldap.c:ads_try_connect(123) ads_try_connect: trying ldap server '172.16.64.21' port 389 [2007/07/26 23:56:50, 3] libads/ldap.c:ads_connect(285) Connected to LDAP server 172.16.64.21 [2007/07/26 23:56:50, 1] libads/ldap.c:ads_connect(289) Failed to get ldap server info [2007/07/26 23:56:50, 0] utils/net_ads.c:ads_startup(191) ads_connect: No results returned [2007/07/26 23:56:50, 2] utils/net.c:main(873) return code = -1 -- regards, Rahul -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] log file format
I want seperate log files for every shares. Is it possible to accomplish it using any method? On 5/9/07, Gerald (Jerry) Carter [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rahul wrote: Can anybody tell me why its not working with %S? %S is only valid within the context of a share connection. cheers, jerry = Samba--- http://www.samba.org Centeris --- http://www.centeris.com What man is a man who does not make the world better? --Balian -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGQcdrIR7qMdg1EfYRAt4TAKCLcAyQ7+RjNtnElFM8XtTbP3HznACfY9D1 DjDFo2Rj907SH3xXrabmsVg= =cSUN -END PGP SIGNATURE- -- regards, Rahul Sahadevan SANAT Technologies (Intel Storage Community member) http://www.sanatdata.net mob : 09884 423254 Dont tell people your problems ... 70% dont care and other 30% are glad!! -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Data missing in samba shares
Sorry for not mentioning the correct samba version number. We are Samba is 3.0.20. The server is running on linux kernel 2.6.9 and the basic hw configuration is Pentium Dual Core,512 mb ram and 1TB Storage. We are mainly storing large documents of nearly 2-5 GB size. Ya some files are there in directories too. All the data is missing from some shares. Data is missing from server too. On 5/9/07, Volker Lendecke [EMAIL PROTECTED] wrote: On Wed, May 09, 2007 at 11:07:58AM +0530, Rahul wrote: We are using windows XP professional as the client OS and the samba version is 3.0.x. The x is interesting, as well as your smb.conf and a debug level 10 log of smbd. Volker -- regards, Rahul Sahadevan SANAT Technologies (Intel Storage Community member) http://www.sanatdata.net mob : 09884 423254 Dont tell people your problems ... 70% dont care and other 30% are glad!! -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Data missing in samba shares
Yeah we got the solution, in the server some of the shares were not mounted, thats why we were not able to see the contents . But i dont know what happened on reboot that these shares were unmounted. Anyhow the issue is solved :-) On 5/9/07, Volker Lendecke [EMAIL PROTECTED] wrote: On Wed, May 09, 2007 at 03:55:01PM +0530, Rahul wrote: Sorry for not mentioning the correct samba version number. We are Samba is 3.0.20. The server is running on linux kernel 2.6.9 and the basic hw configuration is Pentium Dual Core,512 mb ram and 1TB Storage. We are mainly storing large documents of nearly 2-5 GB size. Ya some files are there in directories too. All the data is missing from some shares. Data is missing from server too. Then this is not a Samba bug. You might dig up your backup tapes, after you've done a fsck on the file system. Volker -- regards, Rahul -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] log file format
Hi list, Issue regarding the samba log files. In the samba configuration file Global settings i have the parameter to get log files of particular samba shares in the share_name.log format. For that i have given the parameter as log file = /var/log/%S.log According to the docs the log files will be generated for particular shares in the /var/log and for %S the sharename has to come. But for us its showing as %S.log itself. We have tried with %m and %U which is replaced with the machine netbios name and the samba username respectively. Can anybody tell me why its not working with %S? Or i have to do something more to get it work? I am attaching Global Settings part of the samba configuration file here, [global] server string=sanat server netbios name=sanat wins server=192.168.0.1 log level=2 security=user encrypt passwords=yes socket options=TCP_NODELAY read raw=yes write raw=yes oplocks=no level2 oplocks=no template shell=/bin/false unix extensions=no directory mask=0770 create mask=0770 veto files=/aquota.group/aquota.user/lost+found/.owner*/quota.user/quota.group/ root preexec=/usr/local/samba/bin/smb-preexec '%S' '%I' '%U' '%a' '%T' root preexec close=Yes root postexec=/usr/local/samba/bin/smb-postexec '%S' '%I' '%U' '%a' '%T' log file = /var/log/%S.log Thanks in advance. -- regards, Rahul -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Data missing in samba shares
Hi List, We have a Samba Server in which we have nearly 64 shares of nearly 1 TB data. Last week we took a downtime of nearly 5 hours for this samba server. After that when we boot the server and access the shares from the windows host. To my surprise i found that some 8-10 shares are not having any contents at all. Those shares are completely blank without even a single file. Is it a problem that shares are not mounted properly or it has something to deal with Samba. We are using windows XP professional as the client OS and the samba version is 3.0.x. Please help to solve this issue. Thanks in advance. regards, Rahul -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] local master browser
Hello! Can anybody tell me what is the meaning of following logs (/var/log/messages). Feb 28 09:16:10 espl nmbd[3086]: process_local_master_announce: Server VINAY at IP 192.168.10.50 is announcing itself as a local master browser for workgroup EXCELIZE and we think we are master. Forcing election. Feb 28 09:16:10 espl nmbd[3086]: Samba name server ESPL has stopped being a local master browser for workgroup EXCELIZE on subnet 192.168.10.254 Feb 28 09:16:27 espl nmbd[3086]: Samba name server ESPL is now a local master browser for workgroup EXCELIZE on subnet 192.168.10.254 Regards, Rahul Tidke. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Fwd: Remote windows host monitor
-- Forwarded message -- From: Atul Rahul [EMAIL PROTECTED] Date: Jul 30, 2006 9:37 PM Subject: Remote windows host monitor To: [EMAIL PROTECTED], [EMAIL PROTECTED] Hi all, We are using Samba to mount remote Windows share. Would like to have the automatic unmount of remote share when: 1. Remote host is unavailable 2. Remote share is deleted. 3. Remote share authentication details changes. In short theere should be a heartbeat kind of solutions which monitors the remote host credentials. Regards, Atul -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Mounting samba fs
Hi, I am new to samba. I want to make shares exported from a Windows-NT to be accessible to linux users. I want the following : 1. I don't want users mounting their shares by giving username and password to smbmount. 2. The root of the shared folder must be mounted *only once* on a directory such as /mnt/win 3. The shared folder will contain folders owned by users x1, x2, x3 4. The user x1 must be able to access /mnt/win/x1 but not /mnt/win/{x2,x3...}. If any authentication is required, it will be available from a file from x1's home directory on the linux machine. Is it possible to do this ? Regards, -S Rahul __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] How to share a printer with Windows2000
Hello Samba-gurus , please forgive me if I am repeating this question , I tried to search in the archives , but there is no searchable archive of this list that I know of . If available please let me know . I looked at http://lists.samba.org/pipermail/samba/ I want to share a printer on Solaris Machine with Printer ? can anybody guide me how to do that ? part of smb.con file is like this . [tkhledp3] path = /tmp printable = Yes [print$] comment = For Printers path = /export/home/samba/printers guest ok = Yes best regards, -Rahul Ce message contient des informations confidentielles ou appartenant au Cr=e9dit Lyonnais et est =e9tabli =e0 l'intention exclusive de ses destinataires. Toute divulgation, utilisation, diffusion ou reproduction (totale ou partielle) de ce message, ou des informations qu'il contient, doit =eatre pr=e9alablement autoris=e9e. Tout message =e9lectronique est susceptible d'alt=e9ration et son int=e9grit=e9 ne peut =eatre assur=e9e. Le Cr=e9dit Lyonnais d=e9cline toute responsabilit=e9 au titre de ce message s'il a =e9t=e9 modifi=e9 ou falsifi=e9. Si vous n'=eates pas destinataire de ce message, merci de le d=e9truire imm=e9diatement et d'avertir l'exp=e9diteur de l'erreur de distribution et de la destruction du message. This e-mail contains confidential information or information belonging to Cr=e9dit Lyonnais and is intended solely for the addressees. The unauthorised disclosure, use, dissemination or copying (either whole or partial) of this e-mail, or any information it contains, is prohibited. E-mails are susceptible to alteration and their integrity cannot be guaranteed. Cr=e9dit Lyonnais shall not be liable for this e-mail if modified or falsified. If you are not the intended recipient of this e-mail, please delete it immediately from your system and notify the sender of the wrong delivery and the mail deletion.