Re: [Samba] copy of smbpasswd
Hi I have same problem exactly U got, even I post earlier to this group but didn't get any help If U do resolve this Please update me also. thanks. chami Tom Haerens wrote: Hi, I have to move our old samba file server to a new machine. The old samba server was a RedHat8 with samba 2.2.5. The new one is SLES9 with samba 3.0.2b-3.4 SuSE Is there a way to re-use the old smbpasswd file? In the log-files I can see that the authentication fails when I try to access a shared folder. A windows client keeps on asking the login and password. Is it possible to re-use the smbpasswd file? When I create a new smbpasswd file, everything works fine. But, I want to avoid that everybody has to re-enter his or her password... Kind Regards, Tom -- This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer. Internet e-mails are not necessarily secure.Ministry of Finance & Planning does not accept responsibility for changes made to this message after it was sent. Whilst all reasonable care has been taken to avoid the transmission of viruses, it is the responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments will not adversely affect its systems or data. No responsibility is accepted by Ministry of Finance & Planning Sri Lanka in this regard. To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] URGENT: Samba Won't Substitute %u In "Logon *" When LDAP Is Used
I don't have any values for these coming from LDAP. It's the smb.conf settings that aren't getting the %u (lower-case "u") expanded. Lower '%u' can only be used in a share (as a general rule). Ah. Okay. That would explain why it's wrong. I used it previously (don't know the exact samba version) and it worked then so it must have broken when I upgraded samba. Unfortunately, all the ldap changes went in at the same time so I assumed the problem had something to do with that. Thanks for clarifying! Brian ( [EMAIL PROTECTED] ) --- Until we are first independent, we cannot be interdependent. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] URGENT: Samba Won't Substitute %u In "Logon *" When LDAP Is Used
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian White wrote: > I don't have any values for these coming from LDAP. > It's the smb.conf settings that aren't getting the > %u (lower-case "u") expanded. Lower '%u' can only be used in a share (as a general rule). - -- - -- cheers, jerry $ cat ~/.signature = 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.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEcnDTIR7qMdg1EfYRAoTTAJ4joV1TsiSuwqRXX+qTMTb7ZKaQlgCdHO5L MAA4Kud/1wbCQN0x5k/vpC0= =DIFw -END 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] URGENT: Samba Won't Substitute %u In "Logon *" When LDAP Is Used
I just upgraded to 3.0.22 (debian "testing") and have the same problem. I could really use some help on this one!!! Use %U. Be watch out as this will actually become deprecated functionality in future releases. Just figured that out. Thanks! Why is this being depricated? The variable syntax is ambiguous with client side environment variables.Hint: %L ? Or %LOGONSERVER% ? You can leave out the values from the passdb backend and the default values from smb.conf will still be expanded though. I don't have any values for these coming from LDAP. It's the smb.conf settings that aren't getting the %u (lower-case "u") expanded. Brian ( [EMAIL PROTECTED] ) --- Until we are first independent, we cannot be interdependent. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba Print Problem (Everything Looks Right)
Hmmm... I think that's the key point right there. It works, but I can't _configure_ it! That could mean that the DLL that provides the configuration tabs isn't initialising properly. When you deleted the printer and tried to re-add it, did you also uninstall the driver from the Windows box? I tried fully removing the driver (Settings, Printers & Faxes, File Menu, Server Properties, Drivers Tab, Remove) and then reconnecting to the printer. Same problem. That could explain why you weren't seeing any requests for the print$ share when you re-added the printer. Yup. I think you're right. It's looking more and more like a pure CUPS problem. I'm trying to get on their mailing list to see what I can find out. Brian ( [EMAIL PROTECTED] ) --- Until we are first independent, we cannot be interdependent. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] URGENT: Samba Won't Substitute %u In "Logon *" When LDAP Is Used
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian White wrote: >>> I just upgraded to 3.0.22 (debian "testing") and have the same problem. >>> I could really use some help on this one!!! >> >> Use %U. Be watch out as this will actually become deprecated >> functionality in future releases. > > Just figured that out. Thanks! > > Why is this being depricated? The variable syntax is ambiguous with client side environment variables.Hint: %L ? Or %LOGONSERVER% ? You can leave out the values from the passdb backend and the default values from smb.conf will still be expanded though. - -- - -- cheers, jerry $ cat ~/.signature = 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.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEcm2mIR7qMdg1EfYRAu0wAJ48nKPZMyNKJaHghiUv5iFOOEbM7gCgrQrE 64r1DBcJGXt+49D2eoKeI7M= =gIsN -END 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] Samba Print Problem (Everything Looks Right)
> Hmmm... I think that's the key point right there. It works, but I > can't _configure_ it! That could mean that the DLL that provides the configuration tabs isn't initialising properly. When you deleted the printer and tried to re-add it, did you also uninstall the driver from the Windows box? The driver isn't removed when you delete the printer, so this is usually done by loading up Printers, and going File | Server properties. I can't recall whether you can uninstall the drivers through here under Win2k (it may have to be done through the registry) but XP has a Remove button. It's possible that the driver was mis-installed on an early attempt, and since then you've fixed the problem but Windows is still using the badly installed driver. That could explain why you weren't seeing any requests for the print$ share when you re-added the printer. Cheers, Adam. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba Print Problem (Everything Looks Right)
Can you try it on an XP box? It sounds like it should work there - I've yet to find a solution for Win2k. All my WinXP boxes are behaving the same as the Win2K unit. I just don't have a "fresh" install of a WinXP box handy at the moment. That shouldn't make a difference - it works fine for me on XP machines that have gone years without a reinstall. You're able to run \\server\print$ from the client machines? I suppose so, otherwise the files you've seen wouldn't have been copied across. All I can suggest is removing/renaming the .tdb files related to printing, restarting Samba and then rerunning cupsaddsmb. I've had a few issues with cupsaddsmb, it has to be run *just* right to work. If it asks you for a password more than once, it probably hasn't worked. Try adding one printer at a time (if you have more than one) as opposed to using the -a option to add all printers at once. Yes, I can access the share just fine. As I get in to it, it looks like it's not a samba problem but something to do with the CUPS driver install. It's been copied to the WinXP machine (I can see all the files in the appropriate directories on the Windows machine) and I can print test pages. It just won't let me configure it. Hmmm... I think that's the key point right there. It works, but I can't _configure_ it! Now, if I only knew of what that is indicitive. Sorry I couldn't be more helpful! It's all helpful! Successive approximation! Brian ( [EMAIL PROTECTED] ) --- Until we are first independent, we cannot be interdependent. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] URGENT: Samba Won't Substitute %u In "Logon *" When LDAP Is Used
On Mon, May 22, 2006 at 09:37:33PM -0400, Brian White wrote: > >Version: 3.0.14a (debian stable: 3sarge1) > > I just upgraded to 3.0.22 (debian "testing") and have the same problem. > I could really use some help on this one!!! > > > >I'm just about finished converting our company's network from NIS to > >LDAP. Part of that involved updating Samba to use that same directory > >so all the information is maintained in one place. > > > >Most everything is good, except that my roaming profiles won't work. My > >smb.conf file is attached. > > > >Upping the log level eventually showed messages like this: > > > >[2006/05/22 15:16:29, 5] smbd/filename.c:unix_convert(108) > > unix_convert called on file "%u" > >[2006/05/22 15:16:29, 10] smbd/statcache.c:stat_cache_lookup(210) > > stat_cache_lookup: lookup failed for name [%U] > >[2006/05/22 15:16:29, 5] smbd/filename.c:unix_convert(175) > > unix_convert begin: name = %u, dirpath = , start = %u More details needed - probably the full debug level 10 log from a user authentication to attempt at profile load. That's what I'd need to debug (but to be honest I'm not going to have time to help you on this in the timeframe you need). Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba Print Problem (Everything Looks Right)
> Try to put this: > > use client driver = yes > > it's work with me. Unfortunately that option will (I assume) only work if you're using client drivers, i.e. *not* the driver sitting on the Samba server. From the manpage: > This parameter MUST not be able enabled on a print share which has > valid print driver installed on the Samba server. Since the driver *is* installed on the server, I'm not sure what would happen if you enabled it... I'm guessing you'd have to manually choose which driver you want to use on the client PC (e.g. the driver that came with the printer) so you wouldn't end up using the CUPS driver. Cheers, Adam. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] URGENT: Samba Won't Substitute %u In "Logon *" When LDAP Is Used
I just upgraded to 3.0.22 (debian "testing") and have the same problem. I could really use some help on this one!!! Use %U. Be watch out as this will actually become deprecated functionality in future releases. Just figured that out. Thanks! Why is this being depricated? Brian ( [EMAIL PROTECTED] ) --- Until we are first independent, we cannot be interdependent. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] URGENT: Samba Won't Substitute %u In "Logon *" When LDAP Is Used
However, it semes that Samba is NOT substituting the "%u" in this case even though it was when LDAP was not in use. At least "logon path" and "logon home" are affected; maybe more. Okay, guess what! Both %L and %U (capital) get substituted correctly. I guess I'll just use %U instead of %u -- the two seem to be the case (I'm a little unclear on the differences, to be truthful). Brian ( [EMAIL PROTECTED] ) --- Until we are first independent, we cannot be interdependent. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba Print Problem (Everything Looks Right)
> > Can you try it on an XP box? It sounds like it should work there - > > I've yet to find a solution for Win2k. > > All my WinXP boxes are behaving the same as the Win2K unit. I just > don't have a "fresh" install of a WinXP box handy at the moment. That shouldn't make a difference - it works fine for me on XP machines that have gone years without a reinstall. You're able to run \\server\print$ from the client machines? I suppose so, otherwise the files you've seen wouldn't have been copied across. All I can suggest is removing/renaming the .tdb files related to printing, restarting Samba and then rerunning cupsaddsmb. I've had a few issues with cupsaddsmb, it has to be run *just* right to work. If it asks you for a password more than once, it probably hasn't worked. Try adding one printer at a time (if you have more than one) as opposed to using the -a option to add all printers at once. Sorry I couldn't be more helpful! Cheers, Adam. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] URGENT: Samba Won't Substitute %u In "Logon *" When LDAP Is Used
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian White wrote: >> Version: 3.0.14a (debian stable: 3sarge1) > > I just upgraded to 3.0.22 (debian "testing") and have the same problem. > I could really use some help on this one!!! Use %U. Be watch out as this will actually become deprecated functionality in future releases. cheers, jerry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEcmjnIR7qMdg1EfYRAjMsAKCnwkQCCsFD4V8fJPamT72E6kobyACgt2IS s7zDIpKV4Xa2dGEjha5ozMk= =8j56 -END 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] URGENT: Samba Won't Substitute %u In "Logon *" When LDAP Is Used
Version: 3.0.14a (debian stable: 3sarge1) I just upgraded to 3.0.22 (debian "testing") and have the same problem. I could really use some help on this one!!! I'm just about finished converting our company's network from NIS to LDAP. Part of that involved updating Samba to use that same directory so all the information is maintained in one place. Most everything is good, except that my roaming profiles won't work. My smb.conf file is attached. Upping the log level eventually showed messages like this: [2006/05/22 15:16:29, 5] smbd/filename.c:unix_convert(108) unix_convert called on file "%u" [2006/05/22 15:16:29, 10] smbd/statcache.c:stat_cache_lookup(210) stat_cache_lookup: lookup failed for name [%U] [2006/05/22 15:16:29, 5] smbd/filename.c:unix_convert(175) unix_convert begin: name = %u, dirpath = , start = %u I traced this to the "logon path" configuration item. Samba is choosing the value from the smb.conf file because I don't have these values set within the LDAP directory; I just want to use the default generated one. However, it semes that Samba is NOT substituting the "%u" in this case even though it was when LDAP was not in use. At least "logon path" and "logon home" are affected; maybe more. To verify, I manually changed every "%u" in the smb.conf file to "bcwhite" and then I can log on with my profile and home directory just fine. An okay solution for me, but the rest of my users might complain. Since my users are expecting to return tomorrow (after a long weekend) and use their WinXP machines, I'd appreciate it if someone can shed some light on this problem asap. Thanks much!!! ; ; $Id: smb.conf,v 1.7 2006/05/22 19:09:28 bcwhite Exp $ ; [global] printing = cups printcap = cups load printers = yes guest account = guest invalid users = root dont descend = /proc,/dev unix extensions = no bind interfaces only = no interfaces = eth1 eth2 netbios aliases = titan share shell profiles ; don't risk problems with buggy dos programs (Visual C++) getting wrong timestamp dos filetime resolution = yes ; "security = user" is always a good idea. This will require a Unix account ; in this server for every user accessing the server. security = user ; Change this for the workgroup your Samba server will part of workgroup = precidia server string = %h Server (Samba %v) ; If you want Samba to log though syslog only then set the following ; parameter to 'yes'. Please note that logging through syslog in ; Samba is still experimental. syslog only = no ; We want Samba to log a minimum amount of information to syslog. Everything ; should go to /var/log/{smb,nmb} instead. If you want to log through ; syslog you should set the following parameter to something higher. syslog = 0; ; This socket options really speed up Samba under Linux, according to my ; own tests. socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096 ; Passwords are encrypted by default. This way the latest Windows 95 and NT ; clients can connect to the Samba server with no problems. encrypt passwords = yes passdb backend = ldapsam:ldap://localhost ; It's always a good idea to use a WINS server. If you want this server ; to be the WINS server for your network change the following parameter ; to "yes". Otherwise leave it as "no" and specify your WINS server ; below (note: only one Samba server can be the WINS server). ; Read BROWSING.txt for more details. wins support = yes ; If this server is not the WINS server then specify who is it and uncomment ; next line. ; wins server = 172.16.0.10 ; Please read BROWSING.txt and set the next four parameters according ; to your network setup. os level = 99 local master = yes preferred master = yes ; Domain stuff domain master = yes domain logons = yes ;; domain group map = /etc/samba/domain-group.map ;; domain user map = /etc/samba/domain-user.map ;; local group map = /etc/samba/local-group.map logon path = \\profiles\profiles\%u logon home = \\shell\%u logon drive = u: logon script = logon.bat ;; add user script = /etc/samba/addhost %u ; What naming service and in what order should we use to resolve host names ; to IP addresses name resolve order = host bcast ; This will enable nmbd to search for NetBIOS names through DNS. dns proxy = yes ; Name mangling options preserve case = yes short preserve case = yes mangled names = yes mangle prefix = 5 mangling method = hash ; LDAP settings ldap admin dn = uid=samba,ou=Services,dc=precidia ldap suffix = dc=precidia ldap user suffix = ou=People ldap group suffix = ou=Groups
Re: [Samba] Samba Print Problem (Everything Looks Right)
I've done that dozens of times now. I've even gone to a fresh Win2K install. They all say the same thing: Ah, so this is on Win2K? (Your original post said XP as well.) I'm actually having a very similar problem with Win2K, and most annoying of all it used to work fine. And it still does, but now with XP only. For me if I click 'yes' to install the printer driver it comes up asking me for an .INF file, which I obviously don't have. Can you try it on an XP box? It sounds like it should work there - I've yet to find a solution for Win2k. All my WinXP boxes are behaving the same as the Win2K unit. I just don't have a "fresh" install of a WinXP box handy at the moment. Brian ( [EMAIL PROTECTED] ) --- Until we are first independent, we cannot be interdependent. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba Print Problem (Everything Looks Right)
> I've done that dozens of times now. I've even gone to a fresh Win2K > install. They all say the same thing: Ah, so this is on Win2K? (Your original post said XP as well.) I'm actually having a very similar problem with Win2K, and most annoying of all it used to work fine. And it still does, but now with XP only. For me if I click 'yes' to install the printer driver it comes up asking me for an .INF file, which I obviously don't have. Can you try it on an XP box? It sounds like it should work there - I've yet to find a solution for Win2k. Cheers, Adam. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba Print Problem (Everything Looks Right)
Try 'guest ok = yes' - otherwise any slight change in credentials will block access to the print$ share - and anyway, it shouldn't matter if an unauthorised user can copy your driver files ;-) Tried that, but it didn't make any difference. In fact, when I double-click to open the printer, it does connect and give me a print-queue window. It's only when I trying to bring up the properties for that printer that it tells me no driver is installed and asks if I want to search for one. This is the classic scenario of 'the driver was never originally installed' - I don't know if you can successfully install it from here, I've always deleted the locally installed printer and then gone back to the server and double-clicked on the printer again. I've done that dozens of times now. I've even gone to a fresh Win2K install. They all say the same thing: "The 'Doyle' printer driver is not installed on this computer. Some printer properties will not be accessible unless you install the printer driver. Do you want to install the driver now?" Reading this more carefully... I originally assumed it meant that it couldn't find the printer driver for "Doyle" the printer. But this says it can't find the "Doyle" printer driver, which is (somewhat) different. The "cupsaddsmb" program creates the driver with the same name as the printer. Thus, the printer "Doyle" uses the "Doyle" printer driver. Anyway... I did a search on C:\ and found "Doyle.BPD" and "Doyle.ppd" in C:\WINDOWS\system32\spool\drivers\w32x86\3, so it has found and copied all 8 files to that directory (cupsui6.dll, cupsps6.dll, cups6.ini, pscript.ntf, pscript.hlp, ps5ui.dll, Doyle.ppd, and pscript6.dll). However, even if I say "no", the properties dialog does come up (just the print queue settings -- no printer driver options) and I can successfully print a test page. Yes, Windows will display the standard pages that aren't driver specific. That's odd that you can print a test page though. > So... What am I missing? Did you install the PostScript driver or the CUPS driver? From your last post it looks like both are installed at the same time - but as I've never used the CUPS driver, that might be normal. Although it could explain why you were able to print (via one driver) but not display the properties (problem with the other driver.) The cups driver seems to be an extension of the Microsoft one. You have to copy _both_ sets to the /usr/share/cups/drivers directory (something far from clear in the man page) before the "cupsaddsmb" script will work. When you double-click on the printer on the server (assuming it's not installed locally) that's when it tries to copy the driver across. What happens when you do this? It seems to work. It opens the queue window. I haven't seen any jobs on it, but then I'm just re-building the network here, so there isn't anyone else around to print. If I try to open the "properties" for the printer I'll get the error mentioned above. This whole thing summarizes what I hate most about Windows... When it doesn't work, it's darn near impossible to find out why! No "strace", no source code, no logs, nothing. Brian ( [EMAIL PROTECTED] ) --- Until we are first independent, we cannot be interdependent. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba Print Problem (Everything Looks Right)
> [print$] > guest ok = no Try 'guest ok = yes' - otherwise any slight change in credentials will block access to the print$ share - and anyway, it shouldn't matter if an unauthorised user can copy your driver files ;-) > In fact, when I double-click to open the printer, it does connect and > give me a print-queue window. It's only when I trying to bring up > the properties for that printer that it tells me no driver is > installed and asks if I want to search for one. This is the classic scenario of 'the driver was never originally installed' - I don't know if you can successfully install it from here, I've always deleted the locally installed printer and then gone back to the server and double-clicked on the printer again. > However, even if I say "no", the properties dialog does come up (just > the print queue settings -- no printer driver options) and I can > successfully print a test page. Yes, Windows will display the standard pages that aren't driver specific. That's odd that you can print a test page though. > So... What am I missing? Did you install the PostScript driver or the CUPS driver? From your last post it looks like both are installed at the same time - but as I've never used the CUPS driver, that might be normal. Although it could explain why you were able to print (via one driver) but not display the properties (problem with the other driver.) When you double-click on the printer on the server (assuming it's not installed locally) that's when it tries to copy the driver across. What happens when you do this? Cheers, Adam. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba Print Problem (Everything Looks Right)
(a truely great work, IMO). However, I cannot get a WinXP or Win2K machine to automatically install the driver when I double-click on the printer after browsing the share. Actually, now that I think about it... Perhaps I'm not completely accurate with that statement. In fact, when I double-click to open the printer, it does connect and give me a print-queue window. It's only when I trying to bring up the properties for that printer that it tells me no driver is installed and asks if I want to search for one. However, even if I say "no", the properties dialog does come up (just the print queue settings -- no printer driver options) and I can successfully print a test page. So... What am I missing? Brian ( [EMAIL PROTECTED] ) --- Until we are first independent, we cannot be interdependent. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Q: Using create mask under [Homes]
Greetings, I am trying to pass samba the "create mask = 0700" directive under [Homes]. In spite of this, files show up with permissions 740 (group readable). This directive seems to work fine in other shares, this behavior is special to [Homes]. Is [Homes] overriding my create mask directive intentionally, or am I missing something stupid? ^_^ [homes] comment = Home directory for %u on %h browseable = no writable = yes path = /archive/homes/%u valid users = %S create mask = 0700 force user = %S Thanks, John H. Nyhuis Sr. Computer Specialist Dept. of Pediatrics HS RR349B, Box 356320 University of Washington Desk: (206)-685-3884 [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba Print Problem (Everything Looks Right)
I'm trying to get Samba to print with CUPS and the universal postscript driver. I've followed the HOWTO at http://us4.samba.org/samba/docs/man/Samba-HOWTO-Collection/CUPS-printing.html (a truely great work, IMO). However, I cannot get a WinXP or Win2K machine to automatically install the driver when I double-click on the printer after browsing the share. I've done everything up to and including step #10. I can use "rpcclient" and see the driver installed. The only difference I see is that "cupsaddsmb" (v1.2) put the driver (cups-windows v6.0) under the "3" subdirectory instead of the "2" directory. titan:/var/log/samba$ rpcclient -Ubcwhite%secret -c 'getdriver Doyle' share [Windows NT x86] Printer Driver Info 3: Version: [3] Driver Name: [Doyle] Architecture: [Windows NT x86] Driver Path: [\\SHARE\print$\W32X86\3\pscript5.dll] Datafile: [\\SHARE\print$\W32X86\3\Doyle.ppd] Configfile: [\\SHARE\print$\W32X86\3\ps5ui.dll] Helpfile: [\\SHARE\print$\W32X86\3\pscript.hlp] Dependentfiles: [\\SHARE\print$\W32X86\3\cupsui6.dll] Dependentfiles: [\\SHARE\print$\W32X86\3\cupsps6.dll] Dependentfiles: [\\SHARE\print$\W32X86\3\cups6.ini] Dependentfiles: [\\SHARE\print$\W32X86\3\pscript.ntf] Dependentfiles: [\\SHARE\print$\W32X86\3\pscript.hlp] Dependentfiles: [\\SHARE\print$\W32X86\3\ps5ui.dll] Dependentfiles: [\\SHARE\print$\W32X86\3\Doyle.ppd] Dependentfiles: [\\SHARE\print$\W32X86\3\pscript5.dll] Monitorname: [] Defaultdatatype: [RAW] Not only that, I've connected with smbclient and retrieve one of those files back to my hard drive (always as "bcwhite"), so I know they exist and are readable. I've tried setting the sambal "log level" to 65535 and examing the logs. I can't even see it making any reference to the "print$" share. [print$] comment = Printer Drivers path = /etc/samba/drivers browseable = yes guest ok = no read only = yes write list = admin Any ideas? Thanks! Brian ( [EMAIL PROTECTED] ) --- Until we are first independent, we cannot be interdependent. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Does samba support Active Directory User Group name with space
On Mon, May 22, 2006 at 12:51:47PM -0700, Angela Cheng wrote: > Hi, > > I am using samba 3.0.20 and winbind 3.0.20 on Debian Linux kernel > version 2.4.27 > > ii samba 3.0.20b-bycast a LanManager-like file and printer > server fo > ii samba-common 3.0.20b-bycast Samba common files used by both the > server a > ii winbind3.0.20b-bycast service to resolve user and group > informatio > > I was able to authentic with AD Domain and allow groups and individual > users to access the CIFS share from Windows. > > However, there is a AD User Group name "ABC USERS" I need to grant > access to. How do I specify the User Group name with space in between > in the samba share file. Enclose it using quotes. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba/DLAP Howto
Newbie here...wanting to implement and test Samba (current version, 3.0.22) as a PDC on LDAP backend. I'm just finishing doing the same thing. I've tried to write it all down and I'll post it here when I'm done (perhaps even later today). As you've noticed, there are quite a few on the net. I'm afraid mine will be just one more. I'd prefer a pretty step-by-step how-to, that doesn't assume I know much at all. It's not a trivial process, I assure you. I spent a full week preparing on a test server and another two days to make the conversion on the real network. Brian ( [EMAIL PROTECTED] ) --- Until we are first independent, we cannot be interdependent. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Samba/DLAP Howto
Here is a link to a pretty good one. It is for k12, but the idea is the same for any environment. http://web.vcs.u52.k12.me.us/linux/smbldap/ Mark Sarria Sylmar High School LAUSD (818) 367-0299 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of listserv.traffic Sent: Sunday, May 21, 2006 2:43 PM To: samba@lists.samba.org Subject: [Samba] Samba/DLAP Howto Newbie here...wanting to implement and test Samba (current version, 3.0.22) as a PDC on LDAP backend. I'm looking for a good how to. I've already looked at Ignacio Coupeau, CTI, University of Navarra and the IDEALX stuff and find them wanting. (Three passes attempting to make the IDEALX stuff work were a bust...but perhaps that just says more about my skills than IDEALX's how to...) "The Official Samba-3" Howto book is even lighter. I'd prefer a pretty step-by-step how-to, that doesn't assume I know much at all. All are confusing to me. Perhaps I'm just too lazy, but I don't think that's all... Is there a native english speaker who has done a recent and comprehensive how to? Is there one somewhere on the Samba site I'm not aware of? If one doesn't exist, I'd be glad to assist in doing one. I'd like a tech guru to review it and make suggestions so I don't produce a piece of crap that's useless to anyone else. Again, I'd prefer a pretty step-by-step how-to, that doesn't assume I know much at all. That's also the target output I'll use to create my how-to, should it be a useful thing to others. One further question. Is FC5 a decent platform to do this on, or is there something better, like say CentOS? The eventual target environment is mainly small business (<100 users) work-group servers. TIA, Greg -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Does samba support Active Directory User Group name with space
Hi, I am using samba 3.0.20 and winbind 3.0.20 on Debian Linux kernel version 2.4.27 ii samba 3.0.20b-bycast a LanManager-like file and printer server fo ii samba-common 3.0.20b-bycast Samba common files used by both the server a ii winbind3.0.20b-bycast service to resolve user and group informatio I was able to authentic with AD Domain and allow groups and individual users to access the CIFS share from Windows. However, there is a AD User Group name "ABC USERS" I need to grant access to. How do I specify the User Group name with space in between in the samba share file. In my AD-TEST domain, if I rename the "ABC USERS" to "ABCUSER", the users within this group can access the share. Sample share-testshare.inc [testshare] read only = yes write list = @AD-TEST\ABCUSERS AD-TEST\ps valid users = @AD-TEST\ AD-TEST\ps @AD-TEST\ABCUSERS @AD-TEST\readonly path = /fsg/testshare force user = fsg-client force group = nogroup browseable = no printable = no public = no security mask = 0777 Thank you. Angela Cheng -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] copy of smbpasswd
Hi, I have to move our old samba file server to a new machine. The old samba server was a RedHat8 with samba 2.2.5. The new one is SLES9 with samba 3.0.2b-3.4 SuSE Is there a way to re-use the old smbpasswd file? In the log-files I can see that the authentication fails when I try to access a shared folder. A windows client keeps on asking the login and password. Is it possible to re-use the smbpasswd file? When I create a new smbpasswd file, everything works fine. But, I want to avoid that everybody has to re-enter his or her password... Kind Regards, Tom -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Problem
I have a problem with my samba server and mij Apple imac G5. The connection is very slow. Can you tell me what the problem is. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba/DLAP Howto
Newbie here...wanting to implement and test Samba (current version, 3.0.22) as a PDC on LDAP backend. I'm looking for a good how to. I've already looked at Ignacio Coupeau, CTI, University of Navarra and the IDEALX stuff and find them wanting. (Three passes attempting to make the IDEALX stuff work were a bust...but perhaps that just says more about my skills than IDEALX's how to...) "The Official Samba-3" Howto book is even lighter. I'd prefer a pretty step-by-step how-to, that doesn't assume I know much at all. All are confusing to me. Perhaps I'm just too lazy, but I don't think that's all... Is there a native english speaker who has done a recent and comprehensive how to? Is there one somewhere on the Samba site I'm not aware of? If one doesn't exist, I'd be glad to assist in doing one. I'd like a tech guru to review it and make suggestions so I don't produce a piece of crap that's useless to anyone else. Again, I'd prefer a pretty step-by-step how-to, that doesn't assume I know much at all. That's also the target output I'll use to create my how-to, should it be a useful thing to others. One further question. Is FC5 a decent platform to do this on, or is there something better, like say CentOS? The eventual target environment is mainly small business (<100 users) work-group servers. TIA, Greg -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba client file locking
On Mon, May 22, 2006 at 04:13:18PM +1000, Matthias Reif wrote: > Hello, > > I am trying to work out the file locking mechanism on our Samba server when > connecting from Linux clients. I am getting some strange behaviour in a > mixed Linux/Windows environment when multiple clients open/lock the same > file for writing. Everything seems fine when a Windows client creates the > lock, but if a Linux client creates the lock, we get either two or more > Linux clients being able to open the same file for writing (SMBFS) or the I don't think smbfs implements locking at all. > other extreme, if one Linux client opens the file none of the others can't > even open it in read-only mode (CIFS). The main application used on the > network is OpenOffice2. Currently CIFSFS probably maps the posix write lock into a CIFS exclusive lock - which would prevent any other client from issuing a read over that area. 3.0.23 might help here as it supports on the wire POSIX locking (experimental mode - not currently mapped into an underlying filesystem lock). > I noticed that depending on the client I use Samba creates a different kind > of lock with different behaviour when multiple clients attempt to open the > same file. Neither smbfs nor cifs create the correct lock share mode > (DENY_WRITE) and the access mode is different (smbfs:0x3, cifs:0x12019f as > opposed to Windows: 0x2019f) You're confusing deny modes with locks. They are not the same thing. Are you talking about locks or deny modes here ? Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Errors accessing smbfs share after upgrade to redhat ES4.0
I used to mount following share using samba client on RHEL 3.0 without any problems. Then I installed ES4.0 and I started seeing problems with these samba shares. I have following line in fstab to mount the share : Instead of using smfs, try using cifs, as smbfs is somewhat deprecated in newer 2.6 kernels. In my case, I tried using smfs with RHEL-ES 4.0 and had no luck. However, cifs works flawlessly. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: Missing Files on share
Ubiratã Muniz da Silva wrote: just asking again... did anyone solve this? thanks Ubiratã Muniz da Silva wrote: Hello all, I have an old server here, which is my PDC and has worked fine so far. It runs Conectiva Linux 8.0 and Samba 3.0.4 Here's the deal. In a share (I didn't check all, this is the one that the users complained so far), there are files missing. The problem: In Windows XP Pro workstations, when browsing the share, which should have more than 1,000 files, only about 200 show up. However, if I log on to the machine locally and go to the share directory, all the files are there. The curious thing is that the files don't show up on the user's EExplorer, but if he tries to save a file with the same name, the system asks if he wants to overwrite the file. And even if he does overwrite the files, the files don't show up on the browsing. I know that 3.0.4 is an old Samba version, but I haven't upgraded to 3.0.11 yet because I'm afraid something will screw up and that I won't be able to return to the previous state (this system was put together by an external consultant which tangled it in a way nobody understands how it works - we are in a migration process, but I need this thing working before the migration to the new Samba server, which will take some time yet) I was wondering if special chars (such as ª and º) could prevent files from being browseable, but that's not the pattern. Some files with special chars such as these show up, and some don't. Info below. Thanks for any assistance. Ubiratã Muniz (Bira) Some info: Samba packages: samba-clients-3.0.4-61850cl samba-common-3.0.4-61850cl samba-winbind-3.0.4-61850cl samba-swat-3.0.4-62749U10_2cl samba-server-3.0.4-61850cl An excerpt of smb.conf: [global] workgroup = STM netbios name = SRVARQUIVOS netbios aliases = ALTOS01 server string = Samba Server PDC interfaces = lo, eth0 bind interfaces only = Yes min passwd length = 1 passwd chat = *New*passwor* %n\r *new*SMB*password* %n\r log level = 2 log file = /var/log/samba/log.%U max log size = 5 min protocol = LANMAN2 read raw = No write raw = No announce version = 4.0 max xmit = 8192 name resolve order = wins bcast lmhosts host time server = Yes keepalive = 36000 max open files = 3 socket options = TCP_NODELAY SO_RCVBUF=16384 SO_SNDBUF=16384 load printers = No logon script = geral.bat logon path = logon home = domain logons = Yes os level = 254 lm announce = Yes preferred master = Yes domain master = Yes dns proxy = No wins support = Yes ldap suffix = (ldap suffix here) ldap machine suffix = (ldap machine suffix here) ldap user suffix = (ldap user suffix here) ldap group suffix = (ldap group suffix here) ldap admin dn = (ldap admin dn here) ldap ssl = no admin users = root, (and admin users) create mask = 0664 force create mode = 0664 directory mask = 02775 force directory mode = 02775 printing = lprng print command = lpr -r -P'%p' %s lpq command = lpq -P'%p' lprm command = lprm -P'%p' %j lppause command = lpc hold '%p' %j lpresume command = lpc release '%p' %j queuepause command = lpc stop '%p' queueresume command = lpc start '%p' preserve case = No short preserve case = No dos filetimes = Yes dos filetime resolution = Yes # Trusted domains (so that users already # in the new JMU domain - still testing - # can acess shares) allow trusted domains = Yes < .. other shares ...> # this is the share with problems [sepro_arq] # the path to the file share path = /arquivos/sepro_arq # group sepro exists in LDAP and the server recognizes it. Permissions are #OK write list = @sepro read only = No browseable = Yes double check the permisions on the files which are showing vs the files which are not. This may have something to do with "hide unreadable = yes" or "hide unreadable = no". I don't see it in your conf, but I've seen similar issues. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Long delay when printing from XP (over samba, cups, raw)
Hi all together, I set up a SAMBA-Server as Primary Domain Controller. Everything works so far, I can logon to domain, get printers and shares, etc... But when I start a print job in windows xp nothing happens for about 3-5 minutes an then it is printed (without problems). On Linux side I installed a RAW-Driver an use the Windows drivers. The smb.conf printers section looks like this: [printers] comment = All Printers path = /var/spool/samba printer admin = stephan create mask = 0700 printable = Yes browseable = No public = Yes use client driver = Yes My global section like this (partly created by SWAT): [global] workgroup = BUERO netbios name = Server # we make him the Primary Domain Controller domain logons = yes security = user password server = Server local master = yes os level = 65 preferred master = yes domain master = yes logon script = logonscr.bat logon drive = X: logon path = \\Server\profiles\%U admin users = root, administrator, Administrator server string = %h server obey pam restrictions = Yes passdb backend = tdbsam, guest passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n . syslog = 0 log file = /var/log/samba/log.%m max log size = 1000 printcap name = cups show add printer wizard = No dns proxy = No ldap ssl = no panic action = /usr/share/samba/panic-action %d printing = cups print command = lpq command = %p lprm command = It would be really nice if someone could help me with that issue... Best wishes, Stephan -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] URGENT: Samba Won't Substitute %u In "Logon *" When LDAP Is Used
Version: 3.0.14a (debian stable: 3sarge1) I'm just about finished converting our company's network from NIS to LDAP. Part of that involved updating Samba to use that same directory so all the information is maintained in one place. Most everything is good, except that my roaming profiles won't work. My smb.conf file is attached. Upping the log level eventually showed messages like this: [2006/05/22 15:16:29, 5] smbd/filename.c:unix_convert(108) unix_convert called on file "%u" [2006/05/22 15:16:29, 10] smbd/statcache.c:stat_cache_lookup(210) stat_cache_lookup: lookup failed for name [%U] [2006/05/22 15:16:29, 5] smbd/filename.c:unix_convert(175) unix_convert begin: name = %u, dirpath = , start = %u I traced this to the "logon path" configuration item. Samba is choosing the value from the smb.conf file because I don't have these values set within the LDAP directory; I just want to use the default generated one. However, it semes that Samba is NOT substituting the "%u" in this case even though it was when LDAP was not in use. At least "logon path" and "logon home" are affected; maybe more. To verify, I manually changed every "%u" in the smb.conf file to "bcwhite" and then I can log on with my profile and home directory just fine. An okay solution for me, but the rest of my users might complain. Since my users are expecting to return tomorrow (after a long weekend) and use their WinXP machines, I'd appreciate it if someone can shed some light on this problem asap. Thanks much!!! Brian ( [EMAIL PROTECTED] ) --- Until we are first independent, we cannot be interdependent. ; ; $Id: smb.conf,v 1.7 2006/05/22 19:09:28 bcwhite Exp $ ; [global] printing = cups printcap = cups load printers = yes guest account = guest invalid users = root dont descend = /proc,/dev unix extensions = no bind interfaces only = no interfaces = eth1 eth2 netbios aliases = titan share shell profiles ; don't risk problems with buggy dos programs (Visual C++) getting wrong timestamp dos filetime resolution = yes ; "security = user" is always a good idea. This will require a Unix account ; in this server for every user accessing the server. security = user ; Change this for the workgroup your Samba server will part of workgroup = precidia server string = %h Server (Samba %v) ; If you want Samba to log though syslog only then set the following ; parameter to 'yes'. Please note that logging through syslog in ; Samba is still experimental. syslog only = no ; We want Samba to log a minimum amount of information to syslog. Everything ; should go to /var/log/{smb,nmb} instead. If you want to log through ; syslog you should set the following parameter to something higher. syslog = 0; ; This socket options really speed up Samba under Linux, according to my ; own tests. socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096 ; Passwords are encrypted by default. This way the latest Windows 95 and NT ; clients can connect to the Samba server with no problems. encrypt passwords = yes passdb backend = ldapsam:ldap://localhost ; It's always a good idea to use a WINS server. If you want this server ; to be the WINS server for your network change the following parameter ; to "yes". Otherwise leave it as "no" and specify your WINS server ; below (note: only one Samba server can be the WINS server). ; Read BROWSING.txt for more details. wins support = yes ; If this server is not the WINS server then specify who is it and uncomment ; next line. ; wins server = 172.16.0.10 ; Please read BROWSING.txt and set the next four parameters according ; to your network setup. os level = 99 local master = yes preferred master = yes ; Domain stuff domain master = yes domain logons = yes ;; domain group map = /etc/samba/domain-group.map ;; domain user map = /etc/samba/domain-user.map ;; local group map = /etc/samba/local-group.map logon path = \\profiles\profiles\%u logon home = \\shell\%u logon drive = u: logon script = logon.bat ;; add user script = /etc/samba/addhost %u ; What naming service and in what order should we use to resolve host names ; to IP addresses name resolve order = host bcast ; This will enable nmbd to search for NetBIOS names through DNS. dns proxy = yes ; Name mangling options preserve case = yes short preserve case = yes mangled names = yes mangle prefix = 5 mangling method = hash ; LDAP settings ldap admin dn = uid=samba,ou=Services,dc=precidia ldap suffix = dc=precidia ldap user suf
[Samba] Errors accessing smbfs share after upgrade to redhat ES4.0
I used to mount following share using samba client on RHEL 3.0 without any problems. Then I installed ES4.0 and I started seeing problems with these samba shares. I have following line in fstab to mount the share : //bizgroup/wli1 /wli1 smbfs uid=501,gid=501,credentials=/etc/samba/.smbpassword 0 0 and /etc/samba/.smbpassword contains following username=xxx password=xxx workgroup= and when I mount one of these file systems, I see following lines in messages file :- May 4 10:34:20 beatest4 kernel: smb_add_request: request [f69b9080, mid=0] timed out! May 4 10:34:20 beatest4 kernel: smb_delete_inode: could not close inode 2 May 4 10:34:20 beatest4 mount.smbfs[2133]: [2006/05/04 10:34:20, 0] client/smbmount.c:send_fs_socket(410) May 4 10:34:20 beatest4 mount.smbfs[2133]: mount.smbfs: entering daemon mode for service \\bizgroup\wli1, pid=2133 May 4 10:34:20 beatest4 kernel: smb_retry: no connection process and after that it mounts the file system. Once I start my application processes, I see more of these errors. It gives errors and works intermittently. I checked online forums and found that I should use cifs instead of smbfs. When I use cifs to mount a share, it is mounted without any error. But when I try to run 'ls' command it gives me "Input/output error". [root at beatest4 ~]# mount -t cifs //bizprod/wli1 /wli1 -o ip=10.110.1.80,user=kumara4,password=xxx,domain=twpn,uid=501,gid=501 [root at beatest4 ~]# ls -l /wli1 ls: reading directory /wli1: Input/output error total 0 If I try to run [root at beatest4 ~]# cd /wli1/wlitest2 [root at beatest4 wlitest2]# pwd /wli1/wlitest2 It works fine. But if you do ls again [root at beatest4 wlitest2]# ls wlitest2 It gives you the current directory name. I even tried to copy files on this share. No errors. But again there is no way to list them. If you know the file name you can even cat a file. Samba rpm installed samba-3.0.22-1 cifs.ko version 1.34 mount.cifs version 1.8 Please help. Thanks, Alok Kumar __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] problem printer driver on Windows XP
Stijn De Doncker wrote: We have a strange problem with some printers on a Windows XP host: When we print a testpage from the linux server (RedHat 8), there's no problem. But when we configure the printer on our Windows XP client and we want to print a testpage: nothing happens and we get the "windows troubleshooter". When we print a Word document to the same printer on the same Windows XP client, the printjob comes out the printer. Anyone an idea? Thx, Stijn I've noticed that some printers are finicky about what they get. This usually has to do with trying to print outside of the printer's printable area. The Windows test page usually doesn't push the boundary the way the CUPS test page does, but it is possible if the default print form is wrong. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba/DLAP Howto
On Sun, May 21, 2006 at 03:30:39PM -0700, [EMAIL PROTECTED] wrote: > > If one doesn't exist, I'd be glad to assist in doing one. I'd like a tech > guru to review it and make suggestions so I don't produce a piece > of crap that's useless to anyone else. If you write one I'm sure we'd add it to the docs Hope that's an incentive :-). Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] problem printer driver on Windows XP
We have a strange problem with some printers on a Windows XP host: When we print a testpage from the linux server (RedHat 8), there's no problem. But when we configure the printer on our Windows XP client and we want to print a testpage: nothing happens and we get the "windows troubleshooter". When we print a Word document to the same printer on the same Windows XP client, the printjob comes out the printer. Anyone an idea? Thx, Stijn samba version: 3.0.9 smb.conf [global] workgroup = OURDOMAIN encrypt passwords = yes security = user domain logons = yes logon path = logon home = logon script = logon.bat server string = preferred master = yes os level = 64 printcap name = /etc/printcap printing = cups printer admin = @users,@group load printers = no ... [printers] comment = All Printers path = /var/spool/samba browseable = yes public = yes guest ok = yes writable = no printable = yes [print$] comment = Printer Drivers path = /etc/samba/drivers browseable = yes guest ok = no read only = yes write list = root ... -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] new directory to share gives error code -43
My guess is you may have forgotten to create the dir You could try this little script to check if you have created all the paths == #!/bin/bash for p in $(grep path /etc/samba/smb.conf | cut -d= -f2 | cut -d" " -f2 | grep -v \%) do if [ -d $p ]; then echo "GOOD! $p EXISTS! YAY!" else echo "$p doesn't exist... YOU WILL HAVE TO CREATE IT." fi done === Bye, Veronica. On 20 May 2006, at 07:09, Anna Barnes wrote: Hi I'm running samba on a unix box to share out our unix file system across windows and mac boxes and it works just fine. However, I wanted to add another directory to share so I added it to the smb.conf file by copying previous entries and making the appropriate directory path changes. Now when I connect to server from my Mac box the directory appears in my list of options but after I've authenticated I get the error message The operation cannot be completed because one or more required items cannot be found (error code -43) What have I forgotten to do ? Thanks Anna :) -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Samba share question
read only = yes admin user = wes > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > On Behalf Of Wesley Hobbie > Sent: Saturday, May 20, 2006 9:33 PM > To: samba@lists.samba.org > Subject: [Samba] Samba share question > > I have the following Samba share: > > [Programs] > writable = yes > path = /home/wes/Download > > I want myself to have write access, and everyone else to have > read-only > access. The write access works fine when I authenticate, but > anyone that > does not authenticate gets the you do not have permission error. The > /home/wes/Download folder ACL has read access to group and > others. What do > I need to do to fix that? > > Wes > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba > -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] smbd process grows to 25Mb resident size
Hi, I've 4 Samba servers running 3.0.21c in solaris 10 zones. One PDC, 3 BDCs. The machines are identically installed and the samba binaries and associated libraries are copied between the machines so are also identical. On my PDC which seems to be accepting almost all of the clients, my smbd processes are 33M with 25M resident. This seems to be used by dev:32,0 ino301938 ,see pmap below, which is a similar size on most smbd processes. I can see some where it's 8k. Any idea what might be causing this and is it possible to cap it at all? Is it normal and nothing to be concerned about? It seems to be related to how busy the server is as my BDCs, which only seem to pick up between 10 and 60 clients at any one time have footprints of around 8 to 10 MB. The PDC has over 300 clients at any one time. It's not causing any major problems but the PDC will eventually run out of RAM as we add clients unless I can somehow slow it down from being first to respond to domain logon requests. (Is that possible and is having the PDC as the wins server what causes that? They all have very similar ping times from a given client and are spread across our network as the clients are.) Thanks, Duncan 26029: /usr/local/samba/sbin/smbd -D 00012832K r-x-- /usr/local/samba/sbin/smbd 002E2000 48K rwx-- /usr/local/samba/sbin/smbd 002EE0001320K rwx--[ heap ] FD081224K rw-s- dev:32,0 ino:301936 FD201736K rw-s- dev:32,0 ino:301937 FD40 20288K rw-s- dev:32,0 ino:301938 FE90 168K rw-s- dev:32,0 ino:301940 FE93 24K r-x-- /lib/nss_nis.so.1 FE946000 8K rwx-- /lib/nss_nis.so.1 FE95 8K rw-s- dev:32,0 ino:301950 FE96 8K rw-s- dev:32,0 ino:301949 FE97 8K rw-s- dev:32,0 ino:301945 FE98 8K rw-s- dev:32,0 ino:301948 FE99 8K rw-s- dev:32,0 ino:301942 FE9A 8K rw-s- dev:32,0 ino:301941 FE9D 8K rw-s- dev:32,0 ino:301939 FE9E 8K rwxs-[ anon ] FE9F 8K r-x-- /lib/libdoor.so.1 FEA02000 8K rwx-- /lib/libdoor.so.1 FEA1 8K r-x-- /usr/local/lib/libcom_err.so.1.1.1 FEA2 8K rwx-- /usr/local/lib/libcom_err.so.1.1.1 FEA3 72K r-x-- /usr/local/lib/libroken.so.16.1.0 FEA5 8K rwx-- /usr/local/lib/libroken.so.16.1.0 FEA6 256K r-x-- /usr/local/lib/libncurses.so.5.4 FEAAE000 48K rwx-- /usr/local/lib/libncurses.so.5.4 FEAC 160K r-x-- /usr/local/lib/libasn1.so.6.1.0 FEAF6000 8K rwx-- /usr/local/lib/libasn1.so.6.1.0 FEB0 264K r-x-- /usr/local/lib/libkrb5.so.17.4.0 FEB5 24K rwx-- /usr/local/lib/libkrb5.so.17.4.0 FEB6 80K r-x-- /usr/local/lib/libgssapi.so.4.0.0 FEB82000 16K rwx-- /usr/local/lib/libgssapi.so.4.0.0 FEB9 80K r-x-- /lib/nss_ldap.so.1 FEBB2000 16K rwx-- /lib/nss_ldap.so.1 FEBB6000 40K rwx-- /lib/nss_ldap.so.1 FEBD 24K r-x-- /lib/nss_files.so.1 FEBE6000 8K rwx-- /lib/nss_files.so.1 FEBF 8K rw-s- dev:32,0 ino:301751 FEC0 64K rwx--[ anon ] FEC2 8K rw-s- dev:32,0 ino:199483 FEC3 64K r--s- dev:32,0 ino:199406 FEC5 8K rwx--[ anon ] FEC6 8K r-x-- /usr/lib/iconv/CP850%UTF-16LE.so FEC7 8K rwx-- /usr/lib/iconv/CP850%UTF-16LE.so FEC8 8K r-x-- /usr/lib/iconv/8859-15%UTF-16LE.so FEC9 8K rwx-- /usr/lib/iconv/8859-15%UTF-16LE.so FECA 8K r-x-- /usr/lib/iconv/UTF-16LE%CP850.so FECB 8K rwx-- /usr/lib/iconv/UTF-16LE%CP850.so FECC 8K r-x-- /usr/lib/iconv/UTF-16LE%8859-15.so FECD 8K rwx-- /usr/lib/iconv/UTF-16LE%8859-15.so FECE 16K r-x-- /usr/lib/locale/en_GB.ISO8859-15/en_GB.ISO8859-15.so.3 FECF2000 16K rwx-- /usr/lib/locale/en_GB.ISO8859-15/en_GB.ISO8859-15.so.3 FED0 8K rwx--[ anon ] FED2 128K r--s- dev:32,0 ino:199403 FED5 128K r--s- dev:32,0 ino:199404 FED81432K r-x-- /usr/local/ssl/lib/libcrypto.so.0.9.8 FEEF4000 88K rwx-- /usr/local/ssl/lib/libcrypto.so.0.9.8 FEF0A000 8K rwx-- /usr/local/ssl/lib/libcrypto.so.0.9.8 FEF2 8K r-x-- /platform/sun4u-us3/lib/libc_psr.so.1 FEF3 24K rwx--[ anon ] FEF4 8K rwx--[ anon ] FEF5 16K r-x-- /lib/libcmd.so.1 FEF64000 8K rwx-- /lib/libcmd.so.1 FEF7 264K r-x-- /usr/local/ssl/lib/libssl.so.0.9.8 FEFC 24K rwx-- /usr/local/ssl/lib/libssl.so.0.9.8 FEFD 88K r-x-- /usr/local/lib/libsasl2.so.2.0.21 FEFF4000 8K rwx-- /usr/local/lib/libsasl2.so.2.0.21 FF00 848K r-x-- /lib/libc.so.1 FF0E4000 32K rwx-- /lib/libc.so.1 FF0EC000 8K rwx-- /lib/libc.so.1 FF10 32K r-x-- /usr/local/lib/libgcc_s.so.1 FF116000 16K rwx-- /usr/local/lib/libgcc_s.so.1 FF12 8K rwx--[ anon ] FF13 24K r-x-- /lib/libgen.so.1 FF146000 8K rwx-- /lib/libg
RE: [Samba] share with no authentication
Hi, I tested it this morning. It works for me with security=domain. I think "map to guest" is not valid outside [global] section. Best Regards -Message d'origine- De : Adam Williams [mailto:[EMAIL PROTECTED] Envoyé : dimanche 21 mai 2006 16:38 À : samba@lists.samba.org Objet : Re: [Samba] share with no authentication In my [global] I have guest account = nobody and security = user, and in my share [wpkg] I have: [wpkg] comment = Windows Packager path = /samba/wpkg read only = yes browseable = no guest ok = Yes guest only = no # valid users = guest nobody map to guest = Bad User still asks me for a username and password. if i set security = share it works, but then I have other problems with my windows xp computers authenticating. Michael Gasch wrote: > you could play with "map to guest = bad xxx" > that´s how i did it in security=domain (i think it works with user, > too) and one share. all other shares have "guest ok = no" > > greez > > -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Preparing to migrate
Use robocopy, it works fine. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] consistent id mapping between samba PDC and member server.
Sorry for re-posting this, but I found that my original subject was "wrong" topic. I have successfully setup a samba PDC with ldap backend. I am using the padl tools libnss_ldap and pam_ldap to tie in the linux users. I have setup a second PC running samba in security domain mode using the PDC as password server. Also I am using winbind idmap ldap backend to store its mappings in ou=Idmap. Now the problem: uid/gid mapping is consistent across all domain servers, except the PDC itself! I am unable to convince winbind running on the PDC to use the ldap mappings. How can I cure this? Any hints appreciated! Thank you, Roland -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba fails after upgrade
I have Samba server joined to NT domain. My previous version was 3.0.12. It worked fine. But after upgrade to 3.0.22 (FreeBSD 5.3) smbd fails during startup. I see following messages at /var/log/messages: May 22 08:46:07 ws170101 smbd[537]: [2006/05/22 08:46:07, 0] smbd/server.c:main(829) May 22 08:46:07 ws170101 smbd[537]: ERROR: failed to setup guest info. May 22 08:46:08 ws170101 winbindd[544]: [2006/05/22 08:46:08, 0] rpc_client/cli_pipe.c:cli_rpc_pipe_open_noauth(2240) May 22 08:46:08 ws170101 winbindd[544]: cli_rpc_pipe_open_noauth: rpc_pipe_bind for pipe \lsarpc failed with error NT_STATUS_BUFFER_TOO_SMALL Also I found at /var/log/samba/smbd.log: [2006/05/22 08:46:07, 1] auth/auth_util.c:make_server_info_sam(876) User abc in passdb, but getpwnam() fails! [2006/05/22 08:46:07, 0] smbd/server.c:main(829) ERROR: failed to setup guest info. I did not change any Samba configuration file after upgrade. Do I need to rejoin into domain? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Winbind running on PDC. How?
I have successfully setup a samba PDC with ldap backend. I am using the padl tools libnss_ldap and pam_ldap to tie in the linux users. I have setup a second PC running samba in security domain mode using the PDC as password server. Also I am using winbind idmap ldap backend to store its mappings in ou=Idmap. Now the problem: uid/gid mapping is consistent across all domain servers, except the PDC itself! I am unable to convince winbind running on the PDC to use the ldap mappings. How can I cure this? Any hints appreciated! Thank you, Roland -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Join ADS problem
you should not run the daeomons while joining. The daemon log files don't provide any information about the join process. You should run the net command with a higher debug level, e.g. net ads join -d 3 On Mon, May 22, 2006 at 10:39:01AM +0200, diego Pelizzi wrote: > Problem with join to Active Directory > > > [EMAIL PROTECTED] samba]# net ads join -S 10.0.0.1 -U Administrator > Administrator's password: > [2006/05/22 10:24:05, 0] libads/ldap.c:ads_join_realm(1640) > ads_add_machine_acct (clust): Type or value exists > ads_join_realm: Type or value exists > > [EMAIL PROTECTED] samba]# kinit [EMAIL PROTECTED] > Password for [EMAIL PROTECTED]: > > As you can see kerberors seems works well, but when i tried to join to ADS > routput is: Type or value exists. > I checked the computer folder in Active Directory, but there isn't the samba > server. > > > winbindd.log > [2006/05/22 10:23:17, 1] libsmb/cliconnect.c:cli_session_setup_kerberos(544) > spnego_gen_negTokenTarg failed: No credentials cache found > [2006/05/22 10:23:17, 1] libsmb/clikrb5.c:ads_krb5_mk_req(323) > krb5_cc_get_principal failed (No credentials cache found) > [2006/05/22 10:23:17, 1] libsmb/cliconnect.c:cli_session_setup_kerberos(544) > spnego_gen_negTokenTarg failed: No credentials cache found > [2006/05/22 10:23:17, 1] libsmb/clikrb5.c:ads_krb5_mk_req(323) > krb5_cc_get_principal failed (No credentials cache found) > [2006/05/22 10:23:17, 1] libsmb/cliconnect.c:cli_session_setup_kerberos(544) > spnego_gen_negTokenTarg failed: No credentials cache found > [2006/05/22 10:23:17, 1] libsmb/clikrb5.c:ads_krb5_mk_req(323) > krb5_cc_get_principal failed (No credentials cache found) > [2006/05/22 10:23:17, 1] libsmb/cliconnect.c:cli_session_setup_kerberos(544) > spnego_gen_negTokenTarg failed: No credentials cache found > [2006/05/22 10:23:17, 1] libsmb/clikrb5.c:ads_krb5_mk_req(323) > krb5_cc_get_principal failed (No credentials cache found) > [2006/05/22 10:23:17, 1] libsmb/cliconnect.c:cli_session_setup_kerberos(544) > spnego_gen_negTokenTarg failed: No credentials cache found > [2006/05/22 10:28:18, 1] libsmb/clikrb5.c:ads_krb5_mk_req(323) > krb5_cc_get_principal failed (No credentials cache found) > [2006/05/22 10:28:18, 1] libsmb/cliconnect.c:cli_session_setup_kerberos(544) > spnego_gen_negTokenTarg failed: No credentials cache found > > ### smbd.log > 2006/05/22 08:24:11, 0] smbd/server.c:main(760) > smbd version 3.0.8pre1-0.pre1.3 started. > Copyright Andrew Tridgell and the Samba Team 1992-2004 > [2006/05/22 08:24:11, 1] libsmb/clikrb5.c:ads_krb5_mk_req(323) > krb5_cc_get_principal failed (No credentials cache found) > [2006/05/22 08:24:11, 0] printing/nt_printing.c:nt_printing_init(383) > nt_printing_init: error checking published printers: WERR_ACCESS_DENIED > [2006/05/22 08:56:10, 0] smbd/server.c:main(760) > smbd version 3.0.8pre1-0.pre1.3 started. > Copyright Andrew Tridgell and the Samba Team 1992-2004 > [2006/05/22 08:56:11, 1] libsmb/clikrb5.c:ads_krb5_mk_req(323) > krb5_cc_get_principal failed (No credentials cache found) > > > > My config: > Fedora Core3 > samba-3.0.8-0.pre1.3 > > #/etc/krb5.conf > [libdefaults] > default_realm = COROD.LOCAL > dns_lookup_realm = false > dns_lookup_kdc = false > > [realms] > COROD.LOCAL = { > kdc = 10.0.0.1:88 > admin_server = 10.0.0.1:749 > default_domain = corod.local > } > > [domain_realm] > .corod.local = COROD.LOCAL > corod.local = COROD.LOCAL > > [kdc] > profile = /var/kerberos/krb5kdc/kdc.conf > > # /etc/samba/smb.conf > [global] > workgroup = COROD > security = ADS > realm = COROD.LOCAL > netbios name = CLUST > os level = 20 > log file = /var/log/samba/%m.log > max log size = 50 > socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 > dns proxy = No > ldap ssl = no > force create mode = 0700 > create mode = 0770 > directory mode = 0770 > force directory mode = 0770 > load printers = no > > > Thanks in advance for any help. > > > - > Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3 > > - > Yahoo! Messenger with Voice: chiama da PC a telefono a tariffe esclusive > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Join ADS problem
Problem with join to Active Directory [EMAIL PROTECTED] samba]# net ads join -S 10.0.0.1 -U Administrator Administrator's password: [2006/05/22 10:24:05, 0] libads/ldap.c:ads_join_realm(1640) ads_add_machine_acct (clust): Type or value exists ads_join_realm: Type or value exists [EMAIL PROTECTED] samba]# kinit [EMAIL PROTECTED] Password for [EMAIL PROTECTED]: As you can see kerberors seems works well, but when i tried to join to ADS routput is: Type or value exists. I checked the computer folder in Active Directory, but there isn't the samba server. winbindd.log [2006/05/22 10:23:17, 1] libsmb/cliconnect.c:cli_session_setup_kerberos(544) spnego_gen_negTokenTarg failed: No credentials cache found [2006/05/22 10:23:17, 1] libsmb/clikrb5.c:ads_krb5_mk_req(323) krb5_cc_get_principal failed (No credentials cache found) [2006/05/22 10:23:17, 1] libsmb/cliconnect.c:cli_session_setup_kerberos(544) spnego_gen_negTokenTarg failed: No credentials cache found [2006/05/22 10:23:17, 1] libsmb/clikrb5.c:ads_krb5_mk_req(323) krb5_cc_get_principal failed (No credentials cache found) [2006/05/22 10:23:17, 1] libsmb/cliconnect.c:cli_session_setup_kerberos(544) spnego_gen_negTokenTarg failed: No credentials cache found [2006/05/22 10:23:17, 1] libsmb/clikrb5.c:ads_krb5_mk_req(323) krb5_cc_get_principal failed (No credentials cache found) [2006/05/22 10:23:17, 1] libsmb/cliconnect.c:cli_session_setup_kerberos(544) spnego_gen_negTokenTarg failed: No credentials cache found [2006/05/22 10:23:17, 1] libsmb/clikrb5.c:ads_krb5_mk_req(323) krb5_cc_get_principal failed (No credentials cache found) [2006/05/22 10:23:17, 1] libsmb/cliconnect.c:cli_session_setup_kerberos(544) spnego_gen_negTokenTarg failed: No credentials cache found [2006/05/22 10:28:18, 1] libsmb/clikrb5.c:ads_krb5_mk_req(323) krb5_cc_get_principal failed (No credentials cache found) [2006/05/22 10:28:18, 1] libsmb/cliconnect.c:cli_session_setup_kerberos(544) spnego_gen_negTokenTarg failed: No credentials cache found ### smbd.log 2006/05/22 08:24:11, 0] smbd/server.c:main(760) smbd version 3.0.8pre1-0.pre1.3 started. Copyright Andrew Tridgell and the Samba Team 1992-2004 [2006/05/22 08:24:11, 1] libsmb/clikrb5.c:ads_krb5_mk_req(323) krb5_cc_get_principal failed (No credentials cache found) [2006/05/22 08:24:11, 0] printing/nt_printing.c:nt_printing_init(383) nt_printing_init: error checking published printers: WERR_ACCESS_DENIED [2006/05/22 08:56:10, 0] smbd/server.c:main(760) smbd version 3.0.8pre1-0.pre1.3 started. Copyright Andrew Tridgell and the Samba Team 1992-2004 [2006/05/22 08:56:11, 1] libsmb/clikrb5.c:ads_krb5_mk_req(323) krb5_cc_get_principal failed (No credentials cache found) My config: Fedora Core3 samba-3.0.8-0.pre1.3 #/etc/krb5.conf [libdefaults] default_realm = COROD.LOCAL dns_lookup_realm = false dns_lookup_kdc = false [realms] COROD.LOCAL = { kdc = 10.0.0.1:88 admin_server = 10.0.0.1:749 default_domain = corod.local } [domain_realm] .corod.local = COROD.LOCAL corod.local = COROD.LOCAL [kdc] profile = /var/kerberos/krb5kdc/kdc.conf # /etc/samba/smb.conf [global] workgroup = COROD security = ADS realm = COROD.LOCAL netbios name = CLUST os level = 20 log file = /var/log/samba/%m.log max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 dns proxy = No ldap ssl = no force create mode = 0700 create mode = 0770 directory mode = 0770 force directory mode = 0770 load printers = no Thanks in advance for any help. - Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3 - Yahoo! Messenger with Voice: chiama da PC a telefono a tariffe esclusive -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba