[Samba] migrating from samba3+openldap+autofs to samba4 AD DC?
Any suggestions as to folks who have written fairly concise how-tos'? Much of what I've found so far is pretty vague. Also if moving to AD DC model, strategies for syncing with OpenLDAP... (Not to stir up old wounds, but the idea of multiple credential sources makes me very ill) Thanks, -Jeff -- Jefferson K Davis Technology and Information Systems Manager Standard School District 1200 North Chester Ave Bakersfield, CA 93308 661.392.2110 ext 120 (office) http://district.standard.k12.ca.us District Users: Click here to report technology issues -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Compiling samba4 hangs at [1815/3978] Compiling librpc/ndr/ndr_basic.c
great catch!!! I ran into this yesterday on my first build attempt. - Original Message - From: Andrew Bartlett lt;abart...@samba.orggt; To: Edward Ashley lt;n...@redmonkeysoftware.comgt; Cc: samba@lists.samba.org Sent: Thu, 25 Oct 2012 13:55:41 -0700 (PDT) Subject: Re: [Samba] Compiling samba4 hangs at [1815/3978] Compiling librpc/ndr/ndr_basic.c On Thu, 2012-10-25 at 17:45 +0100, Edward Ashley wrote: Hi, Thanks for that, the latest output is quite long but ends up with this: [pid 22991] open(/usr/include/netinet/ip.h, O_RDONLY|O_NOCTTY) = 4 [pid 22991] fstat(4, {st_mode=S_IFREG|0644, st_size=9522, ...}) = 0 [pid 22991] read(4, /* Copyright (C) 1991,92,93,95,9..., 9522) = 9522 [pid 22991] close(4) = 0 [pid 22991] open(default/librpc/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(../librpc/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(default/include/public/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(../include/public/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(default/source4/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(../source4/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(default/lib/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(../lib/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(default/source4/lib/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(../source4/lib/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(default/source4/include/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(../source4/include/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(default/include/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(../include/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(default/lib/replace/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(../lib/replace/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(default/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(../net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(default/lib/socket_wrapper/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(../lib/socket_wrapper/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(default/lib/talloc/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(../lib/talloc/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(default/lib/util/charset/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(../lib/util/charset/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(default/lib/crypto/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(../lib/crypto/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(default/libcli/util/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(../libcli/util/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(default/lib/nss_wrapper/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(../lib/nss_wrapper/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(default/lib/uid_wrapper/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(../lib/uid_wrapper/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(default/dynconfig/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(../dynconfig/net/if.h, O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 22991] open(/net/if.h, O_RDONLY|O_NOCTTY THIS is the critical clue. The problem is caused by two things: automount and -I/ We need to work out how -I/ got into the gcc command line (ie, what dependency declared -I/). Now I know what I'm looking for, I'll go hunting. Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- Jefferson K Davis Technology and Information Systems Manager Standard School District 1200 North Chester Ave Bakersfield, CA 93308 661.392.2110 ext 120
Re: [Samba] How to detect active users
I usually just use smbstatus. if I'm looking into a user issue, it's usually smbstatus | grep userid. Then I can get the PID and give it a kill -HUP to load new shares, etc, IF they don;t have any open files. - Original Message - From: Aaron E. ssures...@gmail.com To: samba@lists.samba.org Sent: Wednesday, July 27, 2011 6:21:28 AM Subject: Re: [Samba] How to detect active users clear the logs and monitor for a few days,, If there is not real activity just shut down the service and see if anyone complains they can't access something.. After a few days/weeks/months pull the server. Might not be the perfect scenario but if smbstatus isn't displaying what you need then this might make you feel better about it lol On 07/27/2011 04:33 AM, Malte Forkel wrote: Am 26.07.2011 19:27, schrieb Jeremy Allison: On Tue, Jul 26, 2011 at 07:18:15PM +0200, Malte Forkel wrote: Am 26.07.2011 19:08, schrieb John Drescher: On Tue, Jul 26, 2011 at 1:04 PM, Malte Forkelmalte.for...@berlin.de wrote: Am 26.07.2011 18:42, schrieb Chris Weiss: On Tue, Jul 26, 2011 at 3:06 AM, Malte Forkelmalte.for...@berlin.de wrote: Currently, I'm not even sure Samba preserves the kind of state information required to detect the usage scenario I'm interested in. Is there any concept of an open file in Windows/Samba, after all? May be it depends on the application used to open the file? yes, it depends on the application. If the app closes the file and leaves the share, samba honors that. if the app keeps the file handle open, samba does too. So an application (like SciTE) might open a file, read and display its contents, and close the file while continuing to display it. And in contrast, a different application might not close the file while it is displaying its contents? Exactly. John Well, thanks to all of you for your help. In summary then, it looks to me like I won't be able to reliably detect if there is any client out there who would be disappointed if the server shuts down. Of course you will ! smbstatus does this as I keep repeating. If an application has opened and closed the file and keeps it in memory, then the user won't be disappointed if the server is shut down, they'll get an IO error on save and have to do a save as to a local (or other remote) drive. If an application keeps the file open (so it's not safely stored in memory) then smbstatus will show this and you don't shut the server down. You seem to think there's some magic option that will show you client intent, not client activity. Client activity is all you need to care about, and smbstatus show you this. Doesn't matter if applications are running or not, whether that have actual files open is all that matters. Jeremy. Well, I guess some people get disappointed more easily than others :-) I understand that users won't loose any data if the server shuts down and they save as their changes. But having to re-synchronize those files with those on the server once it is up again is something I'd like to avoid. Plus, the open files (from a user perspective) might just be an indicator that the user would like to use other capabilities of the server as well. E.g., he might do remote development of an application on the server using Eclipse on the Windows machine. If I found out that the server had shut down when I try to compile a new version (implicitly saving changed files before), I'd be disappointed. Malte -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Getting win7 and XP roaming profiles to coexist peacefully.
So finally got our PDC and member servers upgraded to 3.5.9 this week. Successfully joined win7 vm to the domain. Now roaming profiles have reared their ugly head. What can/should be shared/redirected, and what is the best way to do this, long term. No AD server, everything is in OpenLDAP (code to protocols, not products). Anyone have any useful tips or detailed links they'd be willing to share? Thanks, -Jeff -- Jefferson K Davis Technology and Information Systems Manager Standard School District 1200 North Chester Ave Bakersfield, CA 93308 661.392.2110 ext 120 (office) 661.392.0681 (fax) http://district.standard.k12.ca.us -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Printer Migration and configuration script
Hi All... We're in the process of moving our printing from multiple servers to a single dedicated Samba/CUPS server... Wondering if anyone is aware of tools that can assist automating this process from the command line. Trying to avoid re-inventing the wheel. So far I'm able to automatically download all associated windows driver files from a named printer on a named host. If anyone's interested I'd be happy to share. -Jeff -- Jefferson K Davis Technology and Information Systems Manager Standard School District 1200 North Chester Ave Bakersfield, CA 93308 661.392.2110 ext 120 (office) 661.392.0681 (fax) http://district.standard.k12.ca.us -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba