Re: [Samba] SMB Share
On Thursday 01 March 2012 18:27:18 Gonçalo Girão wrote: Hello, I have successful installed samba on my RHEL with RPM. Edited smb.conf and started smb service. I can access a share via win (or mac) but doesn't list any files and i cannot copy files or create folders. Can you help me please? Gonçalo Girão IT Hi Gonçalo, samba usage related questions should not be directed to the development oriented samba-technical mailing list, so i added samba@lists.samba.org These days it's often much more effective to discuss those configuration questions in interactive IRC channels. There is a #samba IRC channel on irc.freenode.net So setup an IRC-client and meet the samba users on freenode ... :-) (there should be good tutorials for any OS to setup an IRC client) Cheers, Günter -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Konica Printer: Scan to File (Samba SMB share) fails
Greetings! * Patrick Ben Koetter [EMAIL PROTECTED]: Yes it is the full log and yes it's weird. Excuse my ignorance, the log level setting is a copy and paste setting: log level = 3 passdb:5 auth:10 winbind:2 What should in- or decrease to get more usefull logging? Just ignore those different levels. Just log level = 10... Here's debug output at level 10: http://www.state-of-mind.de/log.smbd.txt I restarted the smb server and left the output in the log as it may be helpful. Does anybody have an idea, why the Konica Scanner (see: log link above) fails to write to the [scanner] share? Thanks, [EMAIL PROTECTED] -- state of mind Agentur für Kommunikation, Design und Softwareentwicklung Patrick KoetterTel: 089 45227227 Echinger Strasse 3 Fax: 089 45227226 85386 Eching Web: http://www.state-of-mind.de Amtsgericht MünchenPartnerschaftsregister PR 563 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Konica Printer: Scan to File (Samba SMB share) fails
* Volker Lendecke [EMAIL PROTECTED]: On Fri, Nov 28, 2008 at 10:42:21PM +0100, Patrick Ben Koetter wrote: Yes it is the full log and yes it's weird. Excuse my ignorance, the log level setting is a copy and paste setting: log level = 3 passdb:5 auth:10 winbind:2 What should in- or decrease to get more usefull logging? Just ignore those different levels. Just log level = 10... Here's debug output at level 10: http://www.state-of-mind.de/log.smbd.txt I restarted the smb server and left the output in the log as it may be helpful. [EMAIL PROTECTED] -- state of mind Agentur für Kommunikation, Design und Softwareentwicklung Patrick KoetterTel: 089 45227227 Echinger Strasse 3 Fax: 089 45227226 85386 Eching Web: http://www.state-of-mind.de Amtsgericht MünchenPartnerschaftsregister PR 563 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Konica Printer: Scan to File (Samba SMB share) fails
I am trying to let a Konica-Minolta Copy-Scanner-Printer store scanned stuff to a file. It works at once, if I let it send the file to a SMB share provided by a W2K workstation that is part of a (Samba) domain. It doesn't work, if I want it to store the messages on a share provided by the Samba server. So far I have verified that the user the scanner runs under is allowed to mount the share and write to it and this marks my wits end. I have log, but I can't interpret it really well. As far as I can tell the client connects, authenticates and then disconnects without giving any reason. If anyone took a look at the log and tell me they are seeing more I'd be helped a lot. Here's the log: http://www.state-of-mind.de/smb.log.txt TIA, [EMAIL PROTECTED] -- state of mind Agentur für Kommunikation, Design und Softwareentwicklung Patrick KoetterTel: 089 45227227 Echinger Strasse 3 Fax: 089 45227226 85386 Eching Web: http://www.state-of-mind.de Amtsgericht MünchenPartnerschaftsregister PR 563 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Konica Printer: Scan to File (Samba SMB share) fails
On Fri, Nov 28, 2008 at 09:24:36PM +0100, Patrick Ben Koetter wrote: I am trying to let a Konica-Minolta Copy-Scanner-Printer store scanned stuff to a file. It works at once, if I let it send the file to a SMB share provided by a W2K workstation that is part of a (Samba) domain. It doesn't work, if I want it to store the messages on a share provided by the Samba server. So far I have verified that the user the scanner runs under is allowed to mount the share and write to it and this marks my wits end. I have log, but I can't interpret it really well. As far as I can tell the client connects, authenticates and then disconnects without giving any reason. If anyone took a look at the log and tell me they are seeing more I'd be helped a lot. Here's the log: http://www.state-of-mind.de/smb.log.txt That log looks very weird. Some messages appear to be debug level 10 messages, but if it was, there are lots of lines missing. Are you sure you really got the correct, full log? Volker pgptyo7VegLKR.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Konica Printer: Scan to File (Samba SMB share) fails
* Volker Lendecke [EMAIL PROTECTED]: On Fri, Nov 28, 2008 at 09:24:36PM +0100, Patrick Ben Koetter wrote: I am trying to let a Konica-Minolta Copy-Scanner-Printer store scanned stuff to a file. It works at once, if I let it send the file to a SMB share provided by a W2K workstation that is part of a (Samba) domain. It doesn't work, if I want it to store the messages on a share provided by the Samba server. So far I have verified that the user the scanner runs under is allowed to mount the share and write to it and this marks my wits end. I have log, but I can't interpret it really well. As far as I can tell the client connects, authenticates and then disconnects without giving any reason. If anyone took a look at the log and tell me they are seeing more I'd be helped a lot. Here's the log: http://www.state-of-mind.de/smb.log.txt That log looks very weird. Some messages appear to be debug level 10 messages, but if it was, there are lots of lines missing. Are you sure you really got the correct, full log? Yes it is the full log and yes it's weird. Excuse my ignorance, the log level setting is a copy and paste setting: log level = 3 passdb:5 auth:10 winbind:2 What should in- or decrease to get more usefull logging? [EMAIL PROTECTED] -- state of mind Agentur für Kommunikation, Design und Softwareentwicklung Patrick KoetterTel: 089 45227227 Echinger Strasse 3 Fax: 089 45227226 85386 Eching Web: http://www.state-of-mind.de Amtsgericht MünchenPartnerschaftsregister PR 563 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Konica Printer: Scan to File (Samba SMB share) fails
On Fri, Nov 28, 2008 at 10:42:21PM +0100, Patrick Ben Koetter wrote: Yes it is the full log and yes it's weird. Excuse my ignorance, the log level setting is a copy and paste setting: log level = 3 passdb:5 auth:10 winbind:2 What should in- or decrease to get more usefull logging? Just ignore those different levels. Just log level = 10... Volker pgpOF3jQQeGsA.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Konica Printer: Scan to File (Samba SMB share) fails
* Volker Lendecke [EMAIL PROTECTED]: On Fri, Nov 28, 2008 at 10:42:21PM +0100, Patrick Ben Koetter wrote: Yes it is the full log and yes it's weird. Excuse my ignorance, the log level setting is a copy and paste setting: log level = 3 passdb:5 auth:10 winbind:2 What should in- or decrease to get more usefull logging? Just ignore those different levels. Just log level = 10... Okay. I'll get some of that tomorrow. Nobody there to operate the scanner anymore. ;) Thanks, [EMAIL PROTECTED] -- state of mind Agentur für Kommunikation, Design und Softwareentwicklung Patrick KoetterTel: 089 45227227 Echinger Strasse 3 Fax: 089 45227226 85386 Eching Web: http://www.state-of-mind.de Amtsgericht MünchenPartnerschaftsregister PR 563 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] SMB share and .mdb files?
Hi. With samba 3.0.25b as part of Mac OS X 10.5.4 Server, I'm encountering issues with .mdb files: Some Windows apps use client software on local machines and one Microsoft Access database on the SMB share. Everything works fine, as long as there's only one client using the .mdb file. As soon as a second client tries to access (and write!) to the .mdb file, the clients on the Windows machines report broken network connections and crash. In Server-Admin/File-Sharing, the shares are open for SMB only, oplock and strict locking both off. No ACL, Posix permission admin r/w, group r/w, other r. (Mac-specific: Could Spotlight do harm to this? It could be disabled for this share...) smb.conf (/etc) [global] debug pid = yes log level = 1 server string = Mac OS X printcap name = cups printing = cups encrypt passwords = yes use spnego = yes passdb backend = odsam idmap domains = default idmap config default: default = yes idmap config default: backend = odsam idmap alloc backend = odsam idmap negative cache time = 5 map to guest = Bad User guest account = nobody unix charset = UTF-8-MAC display charset = UTF-8-MAC dos charset = 437 vfs objects = darwinacl,darwin_streams ; Don't become a master browser unless absolutely necessary. os level = 2 domain master = no ; For performance reasons, set the transmit buffer size ; to the maximum and enable sendfile support. max xmit = 131072 use sendfile = yes ; The darwin_streams module gives us named streams support. stream support = yes ea support = yes ; Enable locking coherency with AFP. darwin_streams:brlm = yes ; Core files are invariably disabled system-wide, but attempting to ; dump core will trigger a crash report, so we still want to try. enable core files = yes ; Configure usershares for use by the synchronize-shares tool. usershare max shares = 1000 usershare path = /var/samba/shares usershare owner only = no usershare allow guests = yes usershare allow full config = yes ; Filter inaccessible shares from the browse list. com.apple:filter shares by access = yes ; Check in with PAM to enforce SACL access policy. obey pam restrictions = yes ; Don't be trying to enforce ACLs in userspace. acl check permissions = no ; Make sure that we resolve unqualified names as NetBIOS before DNS. name resolve order = lmhosts wins bcast host ; Pull in system-wide preference settings. These are managed by ; synchronize-preferences tool. include = /var/db/smb.conf [printers] comment = All Printers path = /tmp printable = yes guest ok = no create mode = 0700 writeable = no browseable = no smb.conf (/var/db) [global] security = USER auth methods = odsam netbios name = serverg4 workgroup = ARBEITSGRUPPE realm = SERVERG4.x.INTERN dos charset = CP437 server string = serverg4 ntlm auth = yes lanman auth = yes max smbd processes = 100 log level = 1 use kerberos keytab = yes realm = SERVERG4.x.INTERN map to guest = Never domain master = no preferred master = no enable disk services = yes enable print services = yes wins support = no [homes] comment = User Home Directories browseable = no read only = no create mode = 0750 guest ok = no com.apple: show admin all volumes = no Any ideas? Thanks in advance! Best, Beste Gruesse, Hannes Gnad [EMAIL PROTECTED] Apple Distinguished Professionalhttp://www.apfelwerk.de/ * Mac OS X 10.5 Leopard - seit 26. Oktober 2007 - http://www.apple.de/ * -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] SMB share and .mdb files?
Hi, Some apps locks only parts of the files, blocking access to all users if you haven't activated oportunistic lockings (allow locking only part of a file, not the whole file) You can find more info about it in http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/locking.html#id2609918 I hope it works for you Greets, David Hi. With samba 3.0.25b as part of Mac OS X 10.5.4 Server, I'm encountering issues with .mdb files: Some Windows apps use client software on local machines and one Microsoft Access database on the SMB share. Everything works fine, as long as there's only one client using the .mdb file. As soon as a second client tries to access (and write!) to the .mdb file, the clients on the Windows machines report broken network connections and crash. In Server-Admin/File-Sharing, the shares are open for SMB only, oplock and strict locking both off. No ACL, Posix permission admin r/w, group r/w, other r. (Mac-specific: Could Spotlight do harm to this? It could be disabled for this share...) smb.conf (/etc) [global] debug pid = yes log level = 1 server string = Mac OS X printcap name = cups printing = cups encrypt passwords = yes use spnego = yes passdb backend = odsam idmap domains = default idmap config default: default = yes idmap config default: backend = odsam idmap alloc backend = odsam idmap negative cache time = 5 map to guest = Bad User guest account = nobody unix charset = UTF-8-MAC display charset = UTF-8-MAC dos charset = 437 vfs objects = darwinacl,darwin_streams ; Don't become a master browser unless absolutely necessary. os level = 2 domain master = no ; For performance reasons, set the transmit buffer size ; to the maximum and enable sendfile support. max xmit = 131072 use sendfile = yes ; The darwin_streams module gives us named streams support. stream support = yes ea support = yes ; Enable locking coherency with AFP. darwin_streams:brlm = yes ; Core files are invariably disabled system-wide, but attempting to ; dump core will trigger a crash report, so we still want to try. enable core files = yes ; Configure usershares for use by the synchronize-shares tool. usershare max shares = 1000 usershare path = /var/samba/shares usershare owner only = no usershare allow guests = yes usershare allow full config = yes ; Filter inaccessible shares from the browse list. com.apple:filter shares by access = yes ; Check in with PAM to enforce SACL access policy. obey pam restrictions = yes ; Don't be trying to enforce ACLs in userspace. acl check permissions = no ; Make sure that we resolve unqualified names as NetBIOS before DNS. name resolve order = lmhosts wins bcast host ; Pull in system-wide preference settings. These are managed by ; synchronize-preferences tool. include = /var/db/smb.conf [printers] comment = All Printers path = /tmp printable = yes guest ok = no create mode = 0700 writeable = no browseable = no smb.conf (/var/db) [global] security = USER auth methods = odsam netbios name = serverg4 workgroup = ARBEITSGRUPPE realm = SERVERG4.x.INTERN dos charset = CP437 server string = serverg4 ntlm auth = yes lanman auth = yes max smbd processes = 100 log level = 1 use kerberos keytab = yes realm = SERVERG4.x.INTERN map to guest = Never domain master = no preferred master = no enable disk services = yes enable print services = yes wins support = no [homes] comment = User Home Directories browseable = no read only = no create mode = 0750 guest ok = no com.apple: show admin all volumes = no Any ideas? Thanks in advance! Best, Beste Gruesse, Hannes Gnad [EMAIL PROTECTED] Apple Distinguished Professionalhttp://www.apfelwerk.de/ * Mac OS X 10.5 Leopard - seit 26. Oktober 2007 - http://www.apple.de/ * -- David Ferreira Dpto. de sistemas - I Z A N E T - GLOBAL SERVICES S.L. web: _http://www.izanet.com_ 3D%22http://www.izanet.com/%22 Direcciónes: Argualas nº 3 (Planta calle) - 50.012 Zaragoza Teléfono: 902 999 065 y 976 306 752 - Fax 976 306 753 -- *DISCLAIMER: *Este mensaje se dirige exclusivamente a su destinatario y puede contener informacion privilegiada o confidencial. Si no es vd. el destinatario indicado, queda notificado de que la utilizacion, divulgacion y/o copia sin autorizacion esta prohibida en virtud de la legislacion vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma via y proceda a su
Re: [Samba] SMB share and .mdb files?
On Fri, Aug 01, 2008 at 10:21:54AM +0200, Hannes Gnad wrote: Hi. With samba 3.0.25b as part of Mac OS X 10.5.4 Server, I'm encountering issues with .mdb files: Some Windows apps use client software on local machines and one Microsoft Access database on the SMB share. Everything works fine, as long as there's only one client using the .mdb file. As soon as a second client tries to access (and write!) to the .mdb file, the clients on the Windows machines report broken network connections and crash. In Server-Admin/File-Sharing, the shares are open for SMB only, oplock and strict locking both off. No ACL, Posix permission admin r/w, group r/w, other r. Turn strict locking back on, or at least to Auto. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] SMB share and .mdb files?
On the topic of Access databases: All the Access databases we have are set to compact on close. I've noticed that since I moved the databases to a Samba server from a w2k server, I get db1.mdb, db2.mdb, etc. every day instead of only occasionally. mdb's are set in veto oplock files. Permissions are 2770 for administrator/Domain Admins, and acl's are used to r/w to these files. Inherit owner, permissions, and acls are all set to Yes. strict locking is the default auto. As someone earlier suggested, I tried force security mode as the fix for MS Office files. It didn't seem to have an effect on the mdb problem, and it stripped the acl's from excel spreadsheets. It seemed to override the inherit acls parameter. Is the mdb problem something I'll have to live with, or can it be remedied? Dale Jeremy Allison wrote: On Fri, Aug 01, 2008 at 10:21:54AM +0200, Hannes Gnad wrote: Hi. With samba 3.0.25b as part of Mac OS X 10.5.4 Server, I'm encountering issues with .mdb files: Some Windows apps use client software on local machines and one Microsoft Access database on the SMB share. Everything works fine, as long as there's only one client using the .mdb file. As soon as a second client tries to access (and write!) to the .mdb file, the clients on the Windows machines report broken network connections and crash. In Server-Admin/File-Sharing, the shares are open for SMB only, oplock and strict locking both off. No ACL, Posix permission admin r/w, group r/w, other r. Turn strict locking back on, or at least to Auto. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] SMB share specific log file creation
Hi all, We are trying to print the log messages pertaining to each share in a different log file for auditing purposes. We are using Samba v3.0.20b. We are trying to modify the file smbd/service.c::make_connection_snum() function by changing the log file full path. The code changes that is done are as follows: char logfilefullpath[70]; char sharename[256]; safe_strcpy_fn (__FILE__, __LINE__ ,logfilefullpath, /log/sharenet/, sizeof (/log/sharenet/)); safe_strcat_fn (__FILE__,__LINE__,logfilefullpath,lp_servicename(snum), sizeof(/log/sharenet/)+sizeof(lp_servicename(snum))); safe_strcat_fn (__FILE__,__LINE__,logfilefullpath,.log, sizeof(/log/sharenet/)+sizeof(lp_servicename(snum))+sizeof(.log)); safe_strcpy_fn (__FILE__,__LINE__,sharename,lp_servicename(snum), sizeof(/log/sharenet/)+sizeof(lp_servicename(snum))); lp_set_logfile(logfilefullpath); safe_strcpy_fn (__FILE__,__LINE__,debugf,logfilefullpath,sizeof(logfilefullpath)); if( DEBUGLVL( IS_IPC(conn) ? 3 : 1 ) ) { dbgtext( %s (%s) , get_remote_machine_name(), conn-client_address ); dbgtext( %s, srv_is_signing_active() ? signed : ); dbgtext( connect to service %s , lp_servicename(snum) ); dbgtext( initially as user %s , user ); dbgtext( (uid=%d, gid=%d) , (int)geteuid(), (int)getegid() ); dbgtext( (pid %d)\n, (int)sys_getpid() ); } We have done a similar code snipped in the relevant portion of the code in open_file part of Samba as well. However we find that the log file randomly gets written to the default log file (log file= variable in smb.conf) or sometimes to the share specific log file (that we have attempted above). It looks like that this was a buffering problem and so we tried to put in dbgflush() routine as well after calling dbgtext() macro. Still with no success... Has anyone tried to modify the source code to generate share specific log trails - either by modifying the source code or without? If so, can the experts guide us on this? Thanks in advance for all your inputs and help, Srini -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] SMB share visible but not its work group
Hi, I have set up some samba shares to give my win98-under-qemu-virtual-machine read and write access to the linux host. While testing the setup using konqueror (smb:/ in the address bar), I discovered that I can get a specific share (for example, smb://localhost/tmp), but could not see the work group and its available computers and shares. Thus, simply typing [enter] after entering smb:/ in the konqueror address bar gives me an error message. What do I need to do to have konqueror see what shares are out there? By the way, what is the work group name for? For your reference, I am adding my smb.conf file: [EMAIL PROTECTED] samba]# cat smb.conf # Samba config file created using SWAT # from 127.0.0.1 (127.0.0.1) # Date: 2006/10/29 23:11:14 [global] workgroup = SOME_GROUP server string = Samba Server interfaces = 127.0.0.1 username map = /etc/samba/smbusers log file = /var/log/samba/%m.log max log size = 50 domain master = Yes dns proxy = No ldap ssl = no cups options = raw [tmp] path = /tmp writeable = yes guest ok = yes browseable = yes Thanks for your help, AF -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] SMB share/MS networking + Novell = major lag
On Mar 21, 2005, at 10:27 AM, Dan Kirkpatrick wrote: I am hoping someone else has found a solution for this: A Delay Occurs When You Open a Mapped Network Drive on a Novell NetWare or UNIX NFS Server Roaming Profiles caused this type of behavior for me... I made local profiles, and they are smoking fast now! You have to make the switch on the XP box itself... PropMy Computer -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] SMB share/MS networking + Novell = major lag
I am hoping someone else has found a solution for this: A Delay Occurs When You Open a Mapped Network Drive on a Novell NetWare or UNIX NFS Server This delay is usually 25sec for any mapped drive or network printer when accessed the first time since timeout. Painful for users who need novell and samba shares. (Windows XP sp2, exists on Novell clients 4.9 sp1a, sp1b, sp2, latest 4.91) I have tried all of the registry fixes to no avail. http://support.microsoft.com/?kbid=814952 http://support.microsoft.com/default.aspx?scid=kb;en-us;171386 Has anyone found a resolution? Regards, Dan -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba