[CentOS] Samba 4.1.7 + CentOS 6.5 - Home's directory mounting in W7 + Roaming of Profils
Hello all, I progress slowly in my installation of Samba; but I'm confronted to two problems: 1) Is it possible to configure Samba (4.1.7) directly from GNU/Linux (CentOS 6.5) for automatically mount the user's home directory to H: when he connects to the domain ? 2) In addition, after that, I'll try to set up profiles' roaming. Here's my files: -- smb.conf (simplified after many tests) -- # Global parameters [global] #general naming workgroup = ADS realm = ADS.LOCAL netbios name = SERVER server string = File Server #logging log file = /usr/local/samba/var/log/%m.log max log size = 50 log level = 8 server role = active directory domain controller dns forwarder = 172.16.130.7 idmap_ldb:use rfc2307 = yes # These (uncommented) lines changes nothing # add user script = /usr/local/samba/sbin/add-user-script.sh %D %U %L #logon script = logon.bat #logon path = \\%L\\profile\\%U #logon drive = H: [netlogon] # this line isn't root preexec = /bin/bash /usr/local/samba/sbin/create-profile-directory.sh %D %U %L path = /usr/local/samba/var/locks/sysvol/ads.local/scripts read only = No #browsable=yes is for test only browsable=yes [sysvol] path = /usr/local/samba/var/locks/sysvol read only = No browsable=No [profile] comment = Roaming profiles path = /home/%D/profiles/ #browsable=yes is for test only browsable = yes writable = yes [homes] comment = %S's home root preexec = /bin/bash /usr/local/samba/sbin/create-home-directory.sh %D %S path = /home/%D/files/%S browsable = no -- create-home-directory.sh : -- #!/bin/bash if [ ! -e /home/$1/files/$2 ]; then mkdir -p /home/$1/files/$2 chmod 775 /home/$1/files/$2 chown $2:Domain Users /home/$1/files/$2 fi exit 0 -- create-profile-directory.sh : -- #!/bin/bash if [ ! -e /home/$1/profiles/$2 ]; then mkdir -p /home/$1/profiles/$2 chmod 775 /home/$1/profiles/$2 chown $2:Domain Users /home/$1/profiles/$2 pdbedit -u $2 -D H: -S \\$3\\netlogon\\logon.bat -h $3\\$2 fi exit 0 -- add-user-script.sh: -- #!/bin/bash /usr/sbin/useradd -s /bin/false -d /home/$1/files/$2 -m $2 pdbedit -u $2 -D H: -S \\$3\\netlogon\\logon.bat -h $3\\$2 -- logon.bat: -- net use h: %LOGONSERVER%\%USERNAME% --- Regards. Pascal Blétard ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] FW: [Samba] Samba 4.1.7 + CentOS 6.5 - Home's directory mounting in W7 + Roaming of Profils
Date: Thu, 5 Jun 2014 05:39:47 -0700 From: jd...@yahoo.com Subject: Re: [Samba] Samba 4.1.7 + CentOS 6.5 - Home's directory mounting in W7 + Roaming of Profils To: paddel...@hotmail.com; centos@centos.org From: Pascal Blétard paddel...@hotmail.com 1) Is it possible to configure Samba (4.1.7) directly from GNU/Linux (CentOS 6.5) for automatically mount the user's home directory to H: when he connects to the domain ? This worked for me: /etc/samba/smb.conf logon script = logon.bat logon path = \\%L\Profiles\%U logon home = \\%L\%U logon drive = h: [netlogon] path = /home/SAMBA/netlogon/ browseable = no read only = yes write list = Administrator root @smb-admin /home/SAMBA/netlogon/logon.bat net use H: \\FILER\home net time \\FILER /set /yes JD Hello Thank you for your reply. I tried it first, but this seems doesn't working for me :/ - Can you send me your whole smb.conf (in particular for sysvol and global shares) - Which OS on client? Win7 ? - What's your distro GNU/Linux? - Is it a for samba dedicated server? If yes, what's your dependances list ? - I haven't the smb-admin group, have you created it? - Which are your compilation's options for samba ? - Which are your options for domain provision ? I don't know why my environment differs of yours Regards Pascal Blétard ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Basic Bash Script Question
2011/2/21 James Bensley jwbens...@gmail.com: I'm stuck trying to work this one out and my Google skills are apparently lacking today. This is a test bash script; #!/bin/bash do something | tee a.log if [ $? -ne 0]; then echo broken fi The problem with this script is $? contains the exit value of the tee command, but I want to check the exit value of whatever command I put in place of 'do something'. How can I achieve this without loosing the tee operation, as 'do something' maybe a long running command with a lot of output like rsync? I don't want to; result=`do something` if [ $? -ne 0... fi echo $result man bash search for Pipelines, pipefail and PIPESTATUS. -- Pascal ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] linux-2.6.18.tar.bz2 is missing
We have to rebuild our kernel to add support for a Mainpine fax board on a CentOS 5.5 board: http://www.hylafax.org/content/Handbook:Basic_Server_Configuration:Modem-specific_Guidance#Mainpine_IQ_Express We followed all steps, but when calling rpmbuild, we are getting: [r...@hylafax SPECS]# rpmbuild -ba --target x86_64 kernel-2.6.spec Construction pour plate-formes cibles: x86_64 Construction pour cible x86_64 erreur: Fichier /usr/src/redhat/SOURCES/linux-2.6.18.tar.bz2: Aucun fichier ou répertoire de ce type So it doesn't find linux-2.6.18.tar.bz2 We do have both the kernel-devel and kernel-headers packages installed, so I don't understand why that file is missing. Googling for linux-2.6.18.tar.bz2 is missing didn't bring any useful info. So where/how can we rebuild or get that archive? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] linux-2.6.18.tar.bz2 is missing
Le 2010-11-30 à 14:58, Eero Volotinen a écrit : 2010/11/30 Pascal Robert prob...@macti.ca: We have to rebuild our kernel to add support for a Mainpine fax board on a CentOS 5.5 board: http://www.hylafax.org/content/Handbook:Basic_Server_Configuration:Modem-specific_Guidance#Mainpine_IQ_Express We followed all steps, but when calling rpmbuild, we are getting: [r...@hylafax SPECS]# rpmbuild -ba --target x86_64 kernel-2.6.spec Construction pour plate-formes cibles: x86_64 Construction pour cible x86_64 erreur: Fichier /usr/src/redhat/SOURCES/linux-2.6.18.tar.bz2: Aucun fichier ou répertoire de ce type So it doesn't find linux-2.6.18.tar.bz2 We do have both the kernel-devel and kernel-headers packages installed, so I don't understand why that file is missing. Googling for linux-2.6.18.tar.bz2 is missing didn't bring any useful info. So where/how can we rebuild or get that archive? it is inside the kernel source .src.rpm package .. that one that you downloaded and installed? Hum, right... Nothing to see here... This is what happen when a coworker told you that he did all the steps and you trust his words :-) ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Checking what's running inside a httpd process
I'm trying to fix a CentOS (5.5 x86_64) VM that we have where it become unstable due to swapping. But I did notice something: I have 10 httpd processes, and 5 of them are using 13 MB of resident memory, the other are using between 91 and 96 MB of RAM. I find it quite strange to see such differences in RAM usage. I ran a lsof -P -p on the processes, and I didn't see any major differences, so I'm wondering what is the best way to know what the processes are doing? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Physical-to-Virtual (VMware) SELinux
Le 2010-06-19 à 09:01, Eero Volotinen a écrit : 2010/6/19 Jorge Fábregas jorge.fabre...@gmail.com: Hello guys, I have a couple of servers that I'm about to virtualize to our VMware Vsphere ecosystem. For Linux servers I read that one needs to use the stand-alone converter (which is a live-cd that you boot from it and then you point it to your destination ESX). I would like to know from folks that have already done so...what was your experience like? Did everything went smooth? Any caveats? I'm worried about the filesystem extended attributes (SELinux). Will it survive the migration? Or will I need to relabel the whole filesystem again? Usually it works fine, just need to install vmware tools after conversion. Also, you cannot resize linux disk(s) during conversion. We migrated a couple of CentOS 5 and RHEL 4 boxes to VMWare ESX4 with the standalone converter and I was able to modify the size of a couple of partitions. And true, only the stand-alone converter is supported for Linux P2V, the one bundled in vCenter can only do Windows P2V. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Naming of a Java Process in Linux
Le 2010-05-24 à 06:21, Mathieu Baudier a écrit : linux box. So currently when i have these procs running on my box they show up as java in the ps -A command. I dont know for sure as to which if you can use the 'f' option in your ps command, you will get the arguments used to start the JVM. This may provide you with enough information to distinguish between them them e.g.: ps -Af | grep java identify them properly can i have it running as java_1 or java_2 or as far as I know, it is not (easily) possible You could give a try to the jconsole tool which comes with the JDK (in package java-1.6.0-openjdk-devel), it allows you to monitor Java processes precisely (either local or remote via JMX). +1 for JMX, and someone wrote a Nagios plugin that use JMX to monitor some parts of Java processes : http://exchange.nagios.org/directory/Plugins/Java-Applications-and-Servers/check_jmx/details ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] (OT) OpenOffice.org calc chart strangeness.
Le 2010-04-02 à 20:19, Bill Campbell a écrit : I am attempting to create a simple line chart graphing three columns from a soffice-calc spreadsheet. I expect it to take the leftmost column as the X-Axis, plotting the others on the Y-Axis, but it always creates an X-Axis of the row number in the columns, and the first column amongst the data. I have tried this on OpenOffice.org 3.2.0, NeoOffice(R) 3.0.2 Patch 2, iWork Pages, and Excel 12.2.4 in Microsoft Office 2008 for Mac. It does what I expect in iWork Pages and M$-Excel, but not in the various incantations of OpenOffice.org. I OO-calc has gone to a fancy wizard thingy that doesn't seem to have any way to specify details for the X-Axis, and I can't find anything useful in the on-line documentation. Does anybody know how one gets this to work in OpenOffice.org? The Linux tie-in is that I'm getting data from a postgresql database that lives on a Linux box, and none of the fancy commercial products seem to be able to use it in their data sources. You should be able to connect to it with a ODBC driver for pgsql, Excel on both Windows and OS X should be able to talk to it by ODBC. On the other hand, I have written a python script that extracts the data from the postgresql database and creates the pretty reports using groff and gplot totally on Linux which is faster in any case for my current problem. Bill -- INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way Voice: (206) 236-1676 Mercer Island, WA 98040-0820 Fax:(206) 232-9186 Skype: jwccsllc (206) 855-5792 Blessed are the young, for they shall inherit the national debt. -- Herbert Hoover ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] [OT] Small touch screens that works with CentOS
Hi, We want to display on a small LCD screen next to our meeting rooms and optionally let people book the room from the panel. We looked at different providers and those solutions either works with Exchange or Lotus Notes... Since I already have code to fetch events from any CalDAV/WebDSV servers, I'm looking at building the system myself. So I'm wondering if any of you can recommend small LCD screen that works well with Linux (the app would be a full screen Web app, browser have to be Gecko or WebKit based), and even better if the screen can have « touch buttons » (so that people don't have to use a physical keyboard to book the room), that's even better. I guess my other option would be a iPad. -- Pascal Robert prob...@macti.ca AIM/iChat : MacTICanada LinkedIn : http://www.linkedin.com/in/macti Twitter : MacTICanada ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] how to work with Code Repositories, but for web development?
Le 10-02-11 à 09:05, Mathieu Baudier a écrit : SVN. Easy to setup, and the docs are excellent. I'm using it all the time. I second that: it the OP is not that familiar with version control systems, Subversion is more intuitive and answers will be easy to find on the web. And more client tools too, including the ones that you can install in Eclipse. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Get Me Outta Here! Web site security issue
Le 10-01-12 à 15:32, Slack-Moehrle a écrit : Hi, How do I stop this from happing? Do I need to buy an SSL cert? Aren't these really expensive per server and I have 5 servers I would need to do this too. The *only* way is to buy certs. And it'll be one for each sitename. And you'll have to answer a *lot* of questions Security's cranking up, esp. if you're accepting credit cards, in which case it's *really* ratcheted up. What are the organizations that do this properly and inexpensively. One for each domain name, correct? You can buy wildcard certificates if all of your servers are running under the same TLD. Pascal Robert prob...@macti.ca AIM: MacTICanada Twitter : MacTICanada LinkedIn : http://www.linkedin.com/in/macti ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Zimbra Help
Le 09-11-02 à 13:47, ML a écrit : Guys, I would suggest starting out with one of the RHEL versions found on the download page here http://www.zimbra.com/community/downloads.html. Got it, yes, I should have choose the RHEL 5 version. Can anyone explain CentOS vs RHEL5 vs Fedora as I dont really know the differences and compatibilities between them all. In my mind they are the same...sad And I can confirm that both the commercial and open-source packages for RHEL 5 works great on CentOS 5. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Antwort: Question about iostat output
Le 09-09-22 à 04:48, Christoph Maser a écrit : Am Dienstag, den 22.09.2009, 10:42 +0200 schrieb frank.brodb...@klingel.de: Hi, Pascal Robert prob...@macti.ca schrieb am 21.09.2009 20:01:20: [r...@golgoth ~]# iostat I've learned that you must always ignore the first output of iostat but do something along the line of ``iostat 5'' and let it collect some data before even starting to care about it. Frank. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Why ignore it, us it correctly. From the manpage: The first report generated by the iostat command provides statistics concerning the time since the system was booted Ok, but since the Nagios plugin will not call it with an interval, it will be always the same stats. Look like I will have to look at what Dell OpenManage have to offer for I/O stats. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Question about iostat output
Hello, We are planning to moving most of our servers to ESX but before buying our SAN, we want to do some I/O stats to see if iSCSI is enough or if we have to go with FC. So I found a plugin for Nagios that can log I/O stats with iostat. So far it's fine with single disk/one partition servers, but on our Oracle Database 10g server, we have two drives in RAID 1 (/dev/sda) and 4 other drives in RAID 10 (/dev/sdb). When I query iostat, I get : [r...@golgoth ~]# iostat Linux 2.6.9-55.ELsmp (golgoth.acaiq-ctb.lan)09/21/2009 avg-cpu: %user %nice%sys %iowait %idle 1.830.003.040.79 94.34 Device:tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn sda 8.4412.2532.40 489731534 1295151278 sda1 0.00 0.00 0.00 21360 7478 sda2 6.6080.9044.41 3234128950 1775185432 sda3 0.05 0.20 0.2378522129358056 sda4 0.00 0.00 0.00 2 0 sda5 41.1638.5995.20 1542695170 3805566528 sdb 2.8472.6328.91 2903208392 1155519494 sdb1 3.6777.1423.90 3083762026 955474128 sdb2 1.62 102.92 5.00 4114412086 200045262 So why sda have a lower TPS and bytes read/write than one of it's partitions (sda5, which is the root partition)? I guess I would have to collect the stats for each partitions to get what the total? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos