From bortzmeyer+redhat at nic.fr Wed May 10 07:41:11 2006 From: bortzmeyer+redhat at nic.fr (Stephane Bortzmeyer) Date: Wed, 10 May 2006 09:41:11 +0200 Subject: Compiling a kernel on RHEL Message-ID: <20060510074111.GA21749@nic.fr> [Warning: beginner] I need to add the connlimit module of Netfilter (http://www.netfilter.org/patch-o-matic/pom-base.html#pom-base-connlimit) and it does not seem included in the official kernel. Therefore, I need to compile mine. I thought it would be simpler to use RHEL sources (and safer since the machine has cutting-edge hardware, whose drivers may not be in ftp.kernel.org regular kernels). I 'up2date kernel-smp-devel', I copy the sources, 'make menuconfig' works OK but then make fails: eowyn:~/kernels/2.6.9-34.EL-smp-x86_64 % make CHK include/linux/version.h CHK include/asm-x86_64/offset.h make[1]: *** No rule to make target `init/main.o', needed by `init/built-in.o'. Stop. make: *** [init] Error 2 I opened a ticket at RedHat but because http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/sysadmin-guide/ch-kernel.html says: Please note, that building a custom kernel is not supported by the Red Hat Global Services Support team, and therefore is not explored in this manual. I do not think I'll get a reply. So, if someone knows how to compile a RHEL kernel? Platform: HP Proliant with AMD64 and Red Hat Enterprise Linux ES release 4 (Nahant Update 3) From patchu1 at yahoo.com Fri May 19 20:00:47 2006 From: patchu1 at yahoo.com (Pat) Date: Fri, 19 May 2006 13:00:47 -0700 (PDT) Subject: Is there a time limit on startup script (rc.local) before moved to background process? Message-ID: <20060519200047.54562.qmail@web32503.mail.mud.yahoo.com> Part of my kickstart install involving writing a run-once rc.local script which executes after the first reboot. At the end of this script, I need the script to wait for human input and then reboot after the input. The problem is after about 1-2 hours, the screen is cleared and I get the console login screen. Any ideas on what is causing this and how to disable it? My first thought was autologout was to blame. However, I checked the shell scripts and environment variable and nowhere is TMOUT or autologout set. I don't actually login to run rc.local either. To be safe I added 'TMOUT=0' and 'unset autologout' to my rc.local script but that does not solve it. My rc.local looks like this (editted for brevity): [CODE] #!/bin/sh clear echo " Post-Install Setup " echo " " rpm -ivh /root/mycustom.rpm #restore original rc.local mv -f /etc/rc.d/rc.local /etc/rc.d/rc.local_custom cp /etc/rc.d/rc.local.orig /etc/rc.d/rc.local echo " Install FINISHED! " echo " Press ENTER to reboot " TMOUT=0 unset autologout read X reboot exit 0 [/CODE] The script works fine and installs my rpm properly. The only issue I have is when I leave the computer for an extended period of time while it runs, rather than coming back to see a "Press ENTER to reboot" message awaiting my input, I only see the console login screen. The computer is set to run level 3 so it seems the boot process just continued on and didn't wait for rc.local to exit? It didn't kill the rc.local proces though (read below). The screen was cleared as well so I don't see any output from my script. In addition, after I enter a login name and press enter at the login prompt, the computer will reboot itself as the reboot command from my rc.local script is still waiting to be executed in the background. Some other things I've tried is putting in a continuous loop waiting for input: [CODE] reply=none until [ "$reply" = "REBOOT" -o "$reply" = "reboot" ] do read -t 60 reply done reboot exit 0 EOF [/CODE] That doesn't work either as I still get a login screen. I can't login properly though as it seem input is still being read by the read command. So the script still seems to be running in the background. Another thing I tried is a long sleep statement in the rc.local, however that doesn't keep my rc.local script on the screen either as I get the login screen. When I login however, I can view the rc.local process still running though in the background: [root at mycomputer ~]# ps -ef | grep local root 2476 1503 0 May18 ? 00:00:00 /bin/sh /etc/rc3.d/S99local start (Note: S99local is a link to rc.local) I'm pulling my hair out on this one. How can I prevent the login screen from being moved to the background and keep it on the terminal indefinitely until user enters something? Any clues or tips would be appreciated! __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Liz.Beresford at csr.com Wed May 24 17:12:27 2006 From: Liz.Beresford at csr.com (Liz Beresford) Date: Wed, 24 May 2006 18:12:27 +0100 Subject: Automount options Message-ID: <87F3365F468C0645BCF7B9BEDABDE01230FF81@cameurexb01.EUROPE.ROOT.PRI> Dear RedHat users, I would like to setup my machines so that the automounter can use both an NIS and a local auto.home file. Under solaris the following syntax applies: /etc/auto_master: # Master map for automounter # +auto_master /net -hosts -nosuid,nobrowse /home auto_home -nobrowse /xfn -xfn /etc/auto_home: # Home directory map for automounter # po localhost:/var local localhost:/var/local +auto_home So, the auto_home map has both local mounts and also uses the NIS auto_home (+auto_home). I have tried various attempts for achieving a similar thing under redhat but with no success: I changed the auto.master file to point to a local auto.home file and tried to used the + syntax to indicate the NIS auto.home file but it did not work. Has anyone else successfully achieved what I am trying to do? Many thanks for any help received. Regards Liz Beresford. To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php From admin.cluster at gmail.com Mon May 29 13:51:23 2006 From: admin.cluster at gmail.com (Anthony) Date: Mon, 29 May 2006 15:51:23 +0200 Subject: /etc/pam.d/su with ldap Message-ID: <447AFC5B.6010909@gmail.com> Hi, i have modified my /etc/su file so that it integrates Ldap, i got a small problem, whenever the root user do a $su - username1 password: it asks me a passwor, i hit 'enter' then i get the prompt; what is wrong with my su confg file ? # cat /etc/redhat-release Red Hat Enterprise Linux AS release 4 (Nahant Update 2) # uname -a Linux cluster2 2.6.9-22.0.1.ELsmp #1 SMP Tue Oct 18 18:39:02 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux # cat /etc/pam.d/su #%PAM-1.0 #pam_ldap Added by me auth sufficient pam_ldap.so account sufficient pam_ldap.so password sufficient pam_ldap.so auth sufficient /lib/security/$ISA/pam_rootok.so # Uncomment the following line to implicitly trust users in the "wheel" group. #auth sufficient /lib/security/$ISA/pam_wheel.so trust use_uid # Uncomment the following line to require a user to be in the "wheel" group. #auth required /lib/security/$ISA/pam_wheel.so use_uid auth required /lib/security/$ISA/pam_stack.so service=system-auth account required /lib/security/$ISA/pam_stack.so service=system-auth #added try_first_pass password required /lib/security/$ISA/pam_stack.so service=system-auth try_first_pass # pam_selinux.so close must be first session rule session required /lib/security/$ISA/pam_selinux.so close session required /lib/security/$ISA/pam_stack.so service=system-auth # pam_selinux.so open and pam_xauth must be last two session rules session required /lib/security/$ISA/pam_selinux.so open multiple session optional /lib/security/$ISA/pam_xauth.so From joe at illegal-access.de Mon May 29 14:37:15 2006 From: joe at illegal-access.de (joe at illegal-access.de) Date: Mon, 29 May 2006 16:37:15 +0200 Subject: AW: /etc/pam.d/su with ldap Message-ID: <26617798.265141148913432999.JavaMail.servlet@kundenserver> password sufficient pam_ldap.so nullok ??? cu, Joe ># cat /etc/pam.d/su >#%PAM-1.0 >#pam_ldap Added by me >auth sufficient pam_ldap.so >account sufficient pam_ldap.so >password sufficient pam_ldap.so From admin.cluster at gmail.com Mon May 29 14:40:56 2006 From: admin.cluster at gmail.com (Anthony) Date: Mon, 29 May 2006 16:40:56 +0200 Subject: AW: /etc/pam.d/su with ldap In-Reply-To: <26617798.265141148913432999.JavaMail.servlet@kundenserver> References: <26617798.265141148913432999.JavaMail.servlet@kundenserver> Message-ID: <447B07F8.6010405@gmail.com> joe at illegal-access.de wrote: >password sufficient pam_ldap.so nullok ??? > > nop :( >cu, > Joe > > > > >># cat /etc/pam.d/su >>#%PAM-1.0 >>#pam_ldap Added by me >>auth sufficient pam_ldap.so >>account sufficient pam_ldap.so >>password sufficient pam_ldap.so >> >> > >-- >redhat-sysadmin-list mailing list >redhat-sysadmin-list at redhat.com >https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > From joe at illegal-access.de Mon May 29 14:57:49 2006 From: joe at illegal-access.de (joe at illegal-access.de) Date: Mon, 29 May 2006 16:57:49 +0200 Subject: AW: Re: AW: /etc/pam.d/su with ldap Message-ID: <7809076.267251148914669891.JavaMail.servlet@kundenserver> Did you take a loot at: http://www.metaconsultancy.com/whitepapers/ldap-linux.htm cu, Joe >joe at illegal-access.de wrote: > >>password sufficient pam_ldap.so nullok ??? >> >> >nop :( > >>cu, >> Joe >> >> >> >> >>># cat /etc/pam.d/su >>>#%PAM-1.0 >>>#pam_ldap Added by me >>>auth sufficient pam_ldap.so >>>account sufficient pam_ldap.so >>>password sufficient pam_ldap.so >>> >>> >> >>-- >>redhat-sysadmin-list mailing list >>redhat-sysadmin-list at redhat.com >>https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list >> >> >> > >-- >redhat-sysadmin-list mailing list >redhat-sysadmin-list at redhat.com >https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list From dougw at sdsc.edu Mon May 29 15:55:46 2006 From: dougw at sdsc.edu (Doug Weimer) Date: Mon, 29 May 2006 08:55:46 -0700 Subject: /etc/pam.d/su with ldap In-Reply-To: <447AFC5B.6010909@gmail.com> References: <447AFC5B.6010909@gmail.com> Message-ID: <20060529155546.GE8903@sdsc.edu> On Mon, 29 May 2006, Anthony wrote: > Hi, i have modified my /etc/su file so that it integrates Ldap, > > i got a small problem, whenever the root user do a > $su - username1 > password: > > it asks me a passwor, i hit 'enter' then i get the prompt; > > what is wrong with my su confg file ? > > # cat /etc/pam.d/su > #%PAM-1.0 > #pam_ldap Added by me > auth sufficient pam_ldap.so > account sufficient pam_ldap.so > password sufficient pam_ldap.so > > auth sufficient /lib/security/$ISA/pam_rootok.so I believe that pam starts at the top of a configuration file and then runs each applicable module in the order it is listed. With this configuration the first 'auth' entry is pam_ldap.so and this module will prompt for a password. By hitting enter at the prompt, this auth check will fail. Upon failure, pam will then go to the pam_rootok.so module which will succeed and allow root to su. Have you tried putting the pam_rootok.so line first? Thanks, Doug From admin.cluster at gmail.com Tue May 30 08:58:40 2006 From: admin.cluster at gmail.com (Anthony) Date: Tue, 30 May 2006 10:58:40 +0200 Subject: /etc/pam.d/su with ldap In-Reply-To: <20060529155546.GE8903@sdsc.edu> References: <447AFC5B.6010909@gmail.com> <20060529155546.GE8903@sdsc.edu> Message-ID: <447C0940.9080603@gmail.com> Doug Weimer wrote: >On Mon, 29 May 2006, Anthony wrote: > > > >>Hi, i have modified my /etc/su file so that it integrates Ldap, >> >>i got a small problem, whenever the root user do a >>$su - username1 >>password: >> >>it asks me a passwor, i hit 'enter' then i get the prompt; >> >>what is wrong with my su confg file ? >> >> >> > > > >># cat /etc/pam.d/su >>#%PAM-1.0 >>#pam_ldap Added by me >>auth sufficient pam_ldap.so >>account sufficient pam_ldap.so >>password sufficient pam_ldap.so >> >>auth sufficient /lib/security/$ISA/pam_rootok.so >> >> > >I believe that pam starts at the top of a configuration file and then runs >each applicable module in the order it is listed. With this configuration >the first 'auth' entry is pam_ldap.so and this module will prompt for a >password. By hitting enter at the prompt, this auth check will fail. Upon >failure, pam will then go to the pam_rootok.so module which will succeed >and allow root to su. > >Have you tried putting the pam_rootok.so line first? > >Thanks, > >Doug > >-- >redhat-sysadmin-list mailing list >redhat-sysadmin-list at redhat.com >https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > Ok it worked, but i have now a different problem: when i pass from a ldap account to the root account, by typing su- it gives twice the Password prompt: i can type anything at the first prompt, then the real password at the second prompt... my new /etc/pam.d/su file looks like this: #%PAM-1.0 auth sufficient /lib/security/$ISA/pam_rootok.so #pam_ldap Added by me auth sufficient pam_ldap.so account sufficient pam_ldap.so password sufficient pam_ldap.so # Uncomment the following line to implicitly trust users in the "wheel" group. #auth sufficient /lib/security/$ISA/pam_wheel.so trust use_uid # Uncomment the following line to require a user to be in the "wheel" group. #auth required /lib/security/$ISA/pam_wheel.so use_uid auth required /lib/security/$ISA/pam_stack.so service=system-auth account required /lib/security/$ISA/pam_stack.so service=system-auth password required /lib/security/$ISA/pam_stack.so service=system-auth try_first_pass # pam_selinux.so close must be first session rule session required /lib/security/$ISA/pam_selinux.so close session required /lib/security/$ISA/pam_stack.so service=system-auth # pam_selinux.so open and pam_xauth must be last two session rules session required /lib/security/$ISA/pam_selinux.so open multiple session optional /lib/security/$ISA/pam_xauth.so From andre-c-cova at ptinovacao.pt Wed May 31 13:48:52 2006 From: andre-c-cova at ptinovacao.pt (=?iso-8859-1?Q?Andr=E9_Castro_Cova?=) Date: Wed, 31 May 2006 14:48:52 +0100 Subject: Problem - USB external drive access Message-ID: <75D349FBF7C131408F5061B7168072C302E6EC96@INOAVREX06.ptin.corpPT.com> Hello! I already do everything possible and impossible to solve this problem and access to USB external drive. Dmesg "tell me" that usb external HDD is correctly connected. Someone help me? [root at carevivo usb]# cat /var/log/messages | grep usb May 30 21:01:02 carevivo kernel: usb-uhci.c: interrupt, status 2, frame# 1700 May 30 21:01:02 carevivo kernel: hiddev0: USB HID v1.10 Device [Western Digital External HDD] on usb1:6.1 May 30 21:01:05 carevivo /etc/hotplug/usb.agent: Setup usb-storage hid for USB product 1058/400/112 May 30 21:01:05 carevivo /etc/hotplug/usb.agent: Setup usb-storage hid for USB product 1058/400/112 [root at carevivo usb]# lspci -v | grep HCI 00:1d.0 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #1 (rev 02) (prog-if 00 [UHCI]) 00:1d.1 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #2 (rev 02) (prog-if 00 [UHCI]) [root at carevivo usb]# modprobe usb-ohci /lib/modules/2.4.21-20.EL/kernel/drivers/usb/host/usb-ohci.o: init_module: No such device Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters. You may find more information in syslog or the output from dmesg /lib/modules/2.4.21-20.EL/kernel/drivers/usb/host/usb-ohci.o: insmod /lib/modules/2.4.21-20.EL/kernel/drivers/usb/host/usb-ohci.o failed /lib/modules/2.4.21-20.EL/kernel/drivers/usb/host/usb-ohci.o: insmod usb-ohci failed Thanks a lot Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: From Chad.Truhn at argonst.com Wed May 31 16:58:39 2006 From: Chad.Truhn at argonst.com (Truhn, Chad) Date: Wed, 31 May 2006 12:58:39 -0400 Subject: Disk Duplication Message-ID: <0CF199B05D5C604DA99E1F97B930DA3FB4D5E0@tethys.argon.local> Gurus, First off let me apologize for what may be a simple question. I am a Solaris admin and have been tasked with some RedHat things. I was tasked to duplicate a RedHat book disk and going back to my Solaris roots, I chose to use the dump and restore commands. This worked well and the data was copied successfully, but the disk doesn't boot. I don't receive any errors (which is strange) it just sits there attempting to access the disk, but nothing happens. I know in the Solaris world there is a command to add a boot block to a disk, and I think that is the issue here. I do not know the conversion of what that command may be on the Linux side. I may even be off in left field here. The boot block may not even be my problem. I just suspect that it is. Does anyone know what the command is, or even a procedure to perform this task? Thanks in advance! Thanks, Chad Truhn System Administrator Argon ST (703) 259-7397 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 1175 bytes Desc: image001.jpg URL: From FChagnon at loyalty.com Wed May 31 17:16:58 2006 From: FChagnon at loyalty.com (Fred Chagnon) Date: Wed, 31 May 2006 13:16:58 -0400 Subject: Disk Duplication Message-ID: While I would assume the effect would be the same as using dump and restore, I might have approached it with the dd command. # write floppy to disk image $ dd if=/dev/fd0 of=bootdisk.img # write disk image to new boot disk $ dd if=bootdisk.img of=/dev/fd0 Hope that helps. Fred | -----Original Message----- | From: redhat-sysadmin-list-bounces at redhat.com | [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf | Of Truhn, Chad | Sent: Wednesday, May 31, 2006 12:59 PM | To: redhat-sysadmin-list at redhat.com | Subject: Disk Duplication | | Gurus, | | | | First off let me apologize for what may be a simple | question. I am a Solaris admin and have been tasked with | some RedHat things. I was tasked to duplicate a RedHat book | disk and going back to my Solaris roots, I chose to use the | dump and restore commands. This worked well and the data | was copied successfully, but the disk doesn't boot. I don't | receive any errors (which is strange) it just sits there | attempting to access the disk, but nothing happens. I know | in the Solaris world there is a command to add a boot block | to a disk, and I think that is the issue here. I do not | know the conversion of what that command may be on the Linux side. | | | | I may even be off in left field here. The boot block may | not even be my problem. I just suspect that it is. | | | | Does anyone know what the command is, or even a procedure to | perform this task? | | | | Thanks in advance! | | | | Thanks, | | Chad Truhn | | System Administrator | | Argon ST | | (703) 259-7397 | | | | | | The information contained in this e-mail message and any attachments may be privileged and confidential. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that any review, dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to this e-mail and delete the message and any attachments from your computer. From Chad.Truhn at argonst.com Wed May 31 17:24:32 2006 From: Chad.Truhn at argonst.com (Truhn, Chad) Date: Wed, 31 May 2006 13:24:32 -0400 Subject: Disk Duplication Message-ID: <0CF199B05D5C604DA99E1F97B930DA3FB4D679@tethys.argon.local> Thanks for the feedback. If I were to follow that process, should the disk just boot right off the bat? -----Original Message----- From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Fred Chagnon Sent: Wednesday, May 31, 2006 1:17 PM To: redhat-sysadmin-list at redhat.com Subject: RE: Disk Duplication While I would assume the effect would be the same as using dump and restore, I might have approached it with the dd command. # write floppy to disk image $ dd if=/dev/fd0 of=bootdisk.img # write disk image to new boot disk $ dd if=bootdisk.img of=/dev/fd0 Hope that helps. Fred | -----Original Message----- | From: redhat-sysadmin-list-bounces at redhat.com | [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf | Of Truhn, Chad | Sent: Wednesday, May 31, 2006 12:59 PM | To: redhat-sysadmin-list at redhat.com | Subject: Disk Duplication | | Gurus, | | | | First off let me apologize for what may be a simple | question. I am a Solaris admin and have been tasked with | some RedHat things. I was tasked to duplicate a RedHat book | disk and going back to my Solaris roots, I chose to use the | dump and restore commands. This worked well and the data | was copied successfully, but the disk doesn't boot. I don't | receive any errors (which is strange) it just sits there | attempting to access the disk, but nothing happens. I know | in the Solaris world there is a command to add a boot block | to a disk, and I think that is the issue here. I do not | know the conversion of what that command may be on the Linux side. | | | | I may even be off in left field here. The boot block may | not even be my problem. I just suspect that it is. | | | | Does anyone know what the command is, or even a procedure to | perform this task? | | | | Thanks in advance! | | | | Thanks, | | Chad Truhn | | System Administrator | | Argon ST | | (703) 259-7397 | | | | | | The information contained in this e-mail message and any attachments may be privileged and confidential. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that any review, dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to this e-mail and delete the message and any attachments from your computer. -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list From FChagnon at loyalty.com Wed May 31 17:29:07 2006 From: FChagnon at loyalty.com (Fred Chagnon) Date: Wed, 31 May 2006 13:29:07 -0400 Subject: Disk Duplication Message-ID: | Thanks for the feedback. If I were to follow that process, | should the disk just boot right off the bat? I believe so, because dd performs a block by block copy of the raw data so your result should be a true image of the disk. Fred The information contained in this e-mail message and any attachments may be privileged and confidential. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that any review, dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to this e-mail and delete the message and any attachments from your computer.