[gentoo-user] confused about suid
I am trying to create a script so users can execute a certain command as root without entering a password. I thought suid was the way to do this, but I am not having any success. The command I want to execute as root is echo -n mem /sys/power/status. I created a bash script (/usr/local/bin/suspendtoram) like so: #!/bin/bash echo -n mem /sys/power/status then set owner and group to root:root and made the script suid. However this doesn't work. The error message goes: /usr/local/bin/suspendtoram: line 2: /sys/power/state: Permission denied I am still having to sudo echo -n mem /sys/power/status and then to enter a password. What am I doing wrong? thanks Robert -- Robert Persson Conspiracy Bears: Once upon a time there were lots of conspiracy bears... -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] /usr/bin/test doesn't seem to do anything
On Friday 27 January 2006 09:43 pm, Robert Persson wrote: On Thursday 26 January 2006 16:22 Richard Fish was like: test doesn't output anything...it indicates success/failure with the exit code. ... As others have said though, watch out for the 'test' command built-in to many shells, as the behavior there is defined by the shell. Generally though, /usr/bin/test and bash test should work the same It turns out that I was mistaken and the script was in fact invoking the bash built-in test (the /usr/bin/test stuff was my overactive imagination). /usr/bin/test is still weird, as Eric Bliss said, because it doesn't print help and version info the way the manpage says it should. A difference between the two tests is that, for /usr/bin/test, a non-zero exit status means false, whereas bash test resolves to a non-zero value when true. Not true. Both exit with $? == 0 on success. Try this script: #!/bin/sh test -d /etc echo test -d /etc : $? /usr/bin/test -d /etc echo /usr/bin/test -d /etc : $? test -d /etcx echo test -d /etcx : $? /usr/bin/test -d /etcx echo /usr/bin/test -d /etcx : $? which outputs: test -d /etc : 0 /usr/bin/test -d /etc : 0 test -d /etcx : 1 /usr/bin/test -d /etcx : 1 Haven't had time to take another look at the bash script I was wrestling with. So still not sure whether bash test is being weird as well. -- Robert Persson Conspiracy Bears: Once upon a time there were lots of conspiracy bears... -- Aloha = Beau; -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Wrong time on reboot. Not a CMOS battery problem.
On 28 January 2006 06:14, Abhay Kedia wrote: Is TZ set in your environment? If so, unset it and let /etc/localtime do the job. How can I know what is the TZ in my environment? Just curious. env | grep TZ Uwe -- Unix is sexy: who | grep -i blonde | date cd ~; unzip; touch; strip; finger mount; gasp; yes; uptime; umount sleep -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Browser not launching.
Nagatoro wrote: Hi, I have a very annoying problem. I can't open web links by clicking them. If I set the default (Control-Center-KDE Components-Component Chooser and File Associations) and it works from pure KDE applications but from others (eg thunderbird and xchat) it doesn't work. This behavior seems to have developed when I made the change to ~x86. Just to document the solution. Emerge gnome(-light?) and set the default browser there. -- Naga -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] confused about suid
On 28 January 2006 09:55, Robert Persson wrote: I am trying to create a script so users can execute a certain command as root without entering a password. I thought suid was the way to do this, but I am not having any success. The command I want to execute as root is echo -n mem /sys/power/status. I created a bash script (/usr/local/bin/suspendtoram) like so: #!/bin/bash echo -n mem /sys/power/status then set owner and group to root:root and made the script suid. However this doesn't work. The error message goes: /usr/local/bin/suspendtoram: line 2: /sys/power/state: Permission denied Your script is suid root but neither the shell executing it nor the external command /bin/echo is. Uwe -- Unix is sexy: who | grep -i blonde | date cd ~; unzip; touch; strip; finger mount; gasp; yes; uptime; umount sleep -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] confused about suid
Robert Persson [EMAIL PROTECTED] writes: I am trying to create a script so users can execute a certain command as root without entering a password. I thought suid was the way to do this, but I am not having any success. The command I want to execute as root is echo -n mem /sys/power/status. I created a bash script (/usr/local/bin/suspendtoram) like so: #!/bin/bash echo -n mem /sys/power/status then set owner and group to root:root and made the script suid. However this doesn't work. The error message goes: /usr/local/bin/suspendtoram: line 2: /sys/power/state: Permission denied I am still having to sudo echo -n mem /sys/power/status and then to enter a password. What am I doing wrong? suid shell-scripts are not allowed, for security reasons. -- Hilsen Harald. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] dead USB card?
It looks like you have a USB 1.0 hub connected to USB 1.1 controller, if it's true, your scanner probably does not like it because of insuficient power and/or speed. -- Petr -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Can't browse WinXP shares from gentoo
Can you login to the share using smbclient ? smbclient //pc_name/share To mount the share I just use mount -t smbfs -o username=user,password=pass //robin/share /mnt/smb And my PC is Windows XP SP2. One think that maybe causing a problem is the Windows Firewall It will give you strange errors when trying to connect to shares. Also I am not sure but consider looking at the docs if you hav enot already: http://us5.samba.org/samba/docs/using_samba/toc.html Hope some of this helps. Robin On 1/21/06, Ben Blount [EMAIL PROTECTED] wrote: Go onto your roommates box and turn administrative tools on the start menu. Then go to Administrative tools, Local Security Policy. From there go to Local Policy - Security Options. In the right view, find Network Access: Sharing and Security for Local Accounts, then change that setting to Classic - local users authenticate as themselves. Also note the above setting where it shows which shares can be accessed anonymously. On 1/21/06, Brett I. Holcomb [EMAIL PROTECTED] wrote: You might want to uncheck simple file sharing in the file options and see if that works. On Saturday January 21 2006 19:36, [EMAIL PROTECTED] wrote: On Sat, Jan 21, 2006 at 11:45:38PM +0200, Ryan Viljoen wrote: I can access my Windows XP Pro's shares with out user name or password quite successfully. Using both xsmbrowser and mounting them in the terminal. Are you sure that the other XP machines on the network dont also require a password to access the shares? Did you have to do anything special to enable that kind of sharing? This is the only Windows box on the network (it's my local home LAN), so I don't have anything else to use as a comparison or reference. shrug Matt -- Matt Garman email at: http://raw-sewage.net/index.php?file=email -- Brett I. Holcomb -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] dead USB card?
On Sat, 28 Jan 2006, Petr Kocmid wrote: It looks like you have a USB 1.0 hub connected to USB 1.1 controller, if it's true, your scanner probably does not like it because of insuficient power and/or speed. I didn't connect any hub, the controller is in a PCI card and the scanner is connected to the card. The strange output of lspci is the same whether the scanner is connected or not. -- Jorge Almeida -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Connection blocking
Are you sure the Socket Server is actually listening on the port? The app actually not running is the only real problem I can think of. On 1/22/06, Mikhail Yarmish [EMAIL PROTECTED] wrote: Some time ago, when I was making socket server with python I could connect to it via another computer from my network. Now I can't but I haven't emerged anything like iptables. I haven't make emerge --sync, also. So the question is - what can block any connects from the another computers in the same network? -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list
[gentoo-user] ... fails to open device '/dev/hda2' after update
Dear list, I haven't used my Gentoo for more than half a year or so (it was well updated then) so the other night I made an update emerge --update system and all appeared to go well (lots of updates) but when I rebooted i got * checking root filesystem ... Failed to open the device '/dev/hda2': No such file or directory * Filesystem couldn't be fixed: (Give root password for maintenance (or Control D to continue):_ --- Well I changed to root and tried --- df Filesystem1K-blockusedAvailableUse%Mount on 35152904 8113240 2703966424%/ --- and --- fsck -t resierfs /dev/hda2 (Confirmed with Yes) Failed to open the device '/dev/hda2': No such file or directory --- The file system is there as I can use nano and navigate in the directory hierarchy and visit files. I have, in Win XP, tested the partitions with 'Acronis Disk Director Suite' and they look OK and don't have any errors. Please, how should this be fixed? Best wishes from a somewhat desperate Fredrik -- gentoo-user@gentoo.org mailing list
[gentoo-user] clamav klamav
I've just emerged clamav klamav. Everything seems to have gone fine. I did /etc/init.d/clamd restart. I went through the klamav setup, again fine. But when I try to update the database it claims it can't connect to the network. The network is up and running so its not the problem. I've looked at the clamd.conf in /etc but there is nothing obvious, to me, in there to do with connecting to the network. The klamav and clamav wikis were no help. I'm probably being thick, but but can anybody suggest what I'm missing? Matt -- %%% Dr. Matthew R. Lee. CASEB ECIM Departamento de Ecologia, P. Universidad Catolica de Chile, Alameda 340, Santiago, CP 6513677 CHILE. [EMAIL PROTECTED] [EMAIL PROTECTED] %%% -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] ... fails to open device '/dev/hda2' after update
On 1/28/06, Fredrik Lundgren [EMAIL PROTECTED] wrote: and all appeared to go well (lots of updates) but when I rebooted i got * checking root filesystem ... Failed to open the device '/dev/hda2': No such file or directory * Filesystem couldn't be fixed: (Give root password for maintenance (or Control D to continue):_ Did you update the kernel version? Are you still using devfs? If so, devfs has been removed from current kernels and you need to migrate to udev. Also, be sure to run etc-update, and fixup your configuration files in /etc/conf.d. Lots of stuff moved from /etc/rc.conf to /etc/conf.d/ files in the last 6 months, so you may have some issue there. Particularly there were changes in baselayout that decide whether to startup devfs or udev. -Richard -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] dead USB card?
On 1/27/06, Jorge Almeida [EMAIL PROTECTED] wrote: I have a USB PCI card which stopped working, meaning my scanner stopped being detected. The problem remains also under KNOPPIX. Can I assume the card is dead? (But it is recognized, sort of...) Partial output of lspci -vvv (as root): 02:0c.0 USB Controller: ALi Corporation USB 1.1 Controller (rev 03) (prog-if 10 [OHCI]) ehci_hcd: block sizes: qh 128 qtd 96 itd 192 sitd 96 PCI: setting IRQ 11 as level-triggered PCI: Assigned IRQ 11 for device :02:0c.3 ehci_hcd :02:0c.3: controller already in use ehci_hcd :02:0c.3: init :02:0c.3 fail, -16 ehci_hcd: probe of :02:0c.3 failed with error -16 ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI) ohci_hcd: block sizes: ed 64 td 64 PCI: setting IRQ 5 as level-triggered PCI: Assigned IRQ 5 for device :02:0c.0 ohci_hcd :02:0c.0: controller already in use ohci_hcd :02:0c.0: init :02:0c.0 fail, -16 ohci_hcd: probe of :02:0c.0 failed with error -16 PCI: Assigned IRQ 11 for device :02:0c.1 ohci_hcd :02:0c.1: controller already in use ohci_hcd :02:0c.1: init :02:0c.1 fail, -16 ohci_hcd: probe of :02:0c.1 failed with error -16 It looks like the ohci and ehci drivers are fighting over the card. You don't need both, so I would disable ohci in your kernel configuration and see if that works. -Richard -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] ... fails to open device '/dev/hda2' after update
Thanks for the advice, To the best of my knoledge Kernel 2.6.15.1 was downloaded and installed. I haven't made any change with respect to devfs or udev. How should i make the migration? And I haven't used etc-update. What should I start with? Again thanks from Fredrik - Original Message - From: Richard Fish [EMAIL PROTECTED] To: gentoo-user@lists.gentoo.org Sent: Saturday, January 28, 2006 2:50 PM Subject: Re: [gentoo-user] ... fails to open device '/dev/hda2' after update On 1/28/06, Fredrik Lundgren [EMAIL PROTECTED] wrote: and all appeared to go well (lots of updates) but when I rebooted i got * checking root filesystem ... Failed to open the device '/dev/hda2': No such file or directory * Filesystem couldn't be fixed: (Give root password for maintenance (or Control D to continue):_ Did you update the kernel version? Are you still using devfs? If so, devfs has been removed from current kernels and you need to migrate to udev. Also, be sure to run etc-update, and fixup your configuration files in /etc/conf.d. Lots of stuff moved from /etc/rc.conf to /etc/conf.d/ files in the last 6 months, so you may have some issue there. Particularly there were changes in baselayout that decide whether to startup devfs or udev. -Richard -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] ... fails to open device '/dev/hda2' after update
On Saturday 28 January 2006 09:15, a tiny voice compelled Fredrik Lundgren to write: Thanks for the advice, To the best of my knoledge Kernel 2.6.15.1 was downloaded and installed. I haven't made any change with respect to devfs or udev. How should i make the migration? And I haven't used etc-update. What should I start with? d'loading and emerging a new kernel version is not installing a new kernel. You would have had to compile the kernel with genkernel or # make menuconfig Find your running kernel version with: $ uname -a Did you run etc-update after your updates? Again thanks from Fredrik - Original Message - From: Richard Fish [EMAIL PROTECTED] To: gentoo-user@lists.gentoo.org Sent: Saturday, January 28, 2006 2:50 PM Subject: Re: [gentoo-user] ... fails to open device '/dev/hda2' after update On 1/28/06, Fredrik Lundgren [EMAIL PROTECTED] wrote: and all appeared to go well (lots of updates) but when I rebooted i got * checking root filesystem ... Failed to open the device '/dev/hda2': No such file or directory * Filesystem couldn't be fixed: (Give root password for maintenance (or Control D to continue):_ Did you update the kernel version? Are you still using devfs? If so, devfs has been removed from current kernels and you need to migrate to udev. Also, be sure to run etc-update, and fixup your configuration files in /etc/conf.d. Lots of stuff moved from /etc/rc.conf to /etc/conf.d/ files in the last 6 months, so you may have some issue there. Particularly there were changes in baselayout that decide whether to startup devfs or udev. -Richard -- gentoo-user@gentoo.org mailing list -- Regards, Ernie -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] ... fails to open device '/dev/hda2' after update
Sorry for my misstake, --- uname -a Linux(none) 2.6.10-gentoo-r6 #8 Thu Feb 17 13:15:44 CET 2005 i686 Intel(R) Pentium(R) M processor 1.70 Ghz Centurion Intel GNU/Linux etc-update mkdir: cannot create directory '/var/tmp/1162': Read only file system --- That must be my old Kernel which worked OK before my update No I didn't run etc-update after my update when the system was up and working Any way to mend the file system? Fredrik - Original Message - From: Ernie Schroder [EMAIL PROTECTED] To: gentoo-user@lists.gentoo.org Sent: Saturday, January 28, 2006 3:34 PM Subject: Re: [gentoo-user] ... fails to open device '/dev/hda2' after update On Saturday 28 January 2006 09:15, a tiny voice compelled Fredrik Lundgren to write: Thanks for the advice, To the best of my knoledge Kernel 2.6.15.1 was downloaded and installed. I haven't made any change with respect to devfs or udev. How should i make the migration? And I haven't used etc-update. What should I start with? d'loading and emerging a new kernel version is not installing a new kernel. You would have had to compile the kernel with genkernel or # make menuconfig Find your running kernel version with: $ uname -a Did you run etc-update after your updates? Again thanks from Fredrik - Original Message - From: Richard Fish [EMAIL PROTECTED] To: gentoo-user@lists.gentoo.org Sent: Saturday, January 28, 2006 2:50 PM Subject: Re: [gentoo-user] ... fails to open device '/dev/hda2' after update On 1/28/06, Fredrik Lundgren [EMAIL PROTECTED] wrote: and all appeared to go well (lots of updates) but when I rebooted i got * checking root filesystem ... Failed to open the device '/dev/hda2': No such file or directory * Filesystem couldn't be fixed: (Give root password for maintenance (or Control D to continue):_ Did you update the kernel version? Are you still using devfs? If so, devfs has been removed from current kernels and you need to migrate to udev. Also, be sure to run etc-update, and fixup your configuration files in /etc/conf.d. Lots of stuff moved from /etc/rc.conf to /etc/conf.d/ files in the last 6 months, so you may have some issue there. Particularly there were changes in baselayout that decide whether to startup devfs or udev. -Richard -- gentoo-user@gentoo.org mailing list -- Regards, Ernie -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list
[gentoo-user] uname -a question
Where does uname find kernel version? For my last 2 new kernels, uname -a returns some off the wall kernel version. It seems to be picking up extra info from God know where. $ uname -a Linux MRK 2.6.15-gentoo-r12.6.14-r-4_new #1 Fri Jan 27 12:38:49 EST 2006 i686 AMD Athlon(tm) XP 2400+ AuthenticAMD GNU/Linux running kernel lines from grub.conf: title Gentoo-2.6.15 root (hd0,0) kernel /bzImage-2.6.15-r1 root=/dev/hda5 cat /proc/version Linux version 2.6.15-gentoo-r12.6.14-r-4_new ([EMAIL PROTECTED]) (gcc version 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)) #1 Fri Jan 27 12:38:49 EST 2006 /lib/modules for the new kernels is affected too: $ locate r12.6.14-r-4_new /lib/modules/2.6.15-gentoo-r12.6.14-r-4_new snip Everything is working just fine, but this is annoying me to no end. -- Regards, Ernie -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Wrong time on reboot. Not a CMOS battery problem.
Abhay Kedia wrote: On Saturday 28 January 2006 02:55, Benno Schulenberg wrote: the /etc/adjtime file. Throw it away, as it might be the adjusting feature that thinks your clock is drifting a full hour per hour (that is: ticks away two hours in one). That was it!!! That was the file causing all the pain. I moved it away and now there are no problems. Any ideas why it was doing it. A possibility is that you've set the hwclock twice, first with a wrong time, then say ten minutes later you realize your watch is five minutes fast, and you set the clock again, with the correct time. Now the adjust feature thinks your CMOS clock is ticking away ten minutes in just five minutes, and every time you boot your computer it will adjust the CMOS clock for this drift and then read it to set the system time. This drift correction feature is useful, but one should be aware of it when setting the hardware clock manually: remove the /etc/adjtime file after 'hwclock --set' has been used with a wrong time. The file is obviously there for some reason See man hwclock, the section on The Adjust Function. Benno -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] ... fails to open device '/dev/hda2' after update
On 1/28/06, Fredrik Lundgren [EMAIL PROTECTED] wrote: Sorry for my misstake, --- uname -a Linux(none) 2.6.10-gentoo-r6 #8 Thu Feb 17 13:15:44 CET 2005 i686 Intel(R) Pentium(R) M processor 1.70 Ghz Centurion Intel GNU/Linux etc-update mkdir: cannot create directory '/var/tmp/1162': Read only file system Try (assuming you don't have a separate /var filesystem): mount / -o remount,noatime,rw etc-update Once you have worked through that, edit /etc/conf.d/rc, which contains many of the things that were once in /etc/rc.conf, including RC_DEVICES. Since you are still on 2.6.10, a udev migration is not /necessary/ to fix your system, but I would still recommend it when you have some time. The basic steps are going to be: emerge udev coldplug hotplug edit /etc/conf.d/rc to set RC_DEVICES=udev remove any udev/devfs options from the kernel command line in /boot/grub/grub.conf remove /dev/.devfs if it exists reboot You can find a lot more information on udev here: http://www.gentoo.org/doc/en/udev-guide.xml -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] uname -a question
On 1/28/06, Ernie Schroder [EMAIL PROTECTED] wrote: Where does uname find kernel version? For my last 2 new kernels, uname -a returns some off the wall kernel version. It seems to be picking up extra info from God know where. It comes from the version embedded in the kernel, returned via the uname system call (man 2 uname). carcharias rjf # strace -v -e uname uname uname({sysname=Linux, nodename=carcharias, release=2.6.15-suspend2-r3, version=#3 PREEMPT Sat Jan 21 10:00:05 MST 2006, machine=i686}) = 0 uname({sysname=Linux, nodename=carcharias, release=2.6.15-suspend2-r3, version=#3 PREEMPT Sat Jan 21 10:00:05 MST 2006, machine=i686}) = 0 $ uname -a Linux MRK 2.6.15-gentoo-r12.6.14-r-4_new #1 Fri Jan 27 12:38:49 EST 2006 i686 AMD Athlon(tm) XP 2400+ AuthenticAMD GNU/Linux There are various ways these versions can be set, including EXTRAVERSION and LOCALVERSION. What are using to build these kernels? -Richard -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] ... fails to open device '/dev/hda2' after update
On 28 January 2006 16:15, Fredrik Lundgren wrote: Thanks for the advice, To the best of my knoledge Kernel 2.6.15.1 was downloaded and installed. I haven't made any change with respect to devfs or udev. How should i make the migration? And I haven't used etc-update. What should I start with? Kernels don't get compiled and installed automatically. I bet you still run your old kernel which was configured for devfs. Your update probably unmerged devfsd or whatever the daemon was called. Now, how to plumb the hole? Boot from a liveCD, Mount your partitions the way your fstab would do it, chroot into your system that's on the harddrive, compile the kernel with udev, update /boot/grub/grub.conf) run etc-update and finally reboot with a bottle of cheap (Lundgren's your name?) aquavit at hand. ;-) I have probably forgotten some steps but guess you get the picture. ;-) Uwe -- Unix is sexy: who | grep -i blonde | date cd ~; unzip; touch; strip; finger mount; gasp; yes; uptime; umount sleep -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Wrong time on reboot. Not a CMOS battery problem.
On Saturday 28 January 2006 20:38, Benno Schulenberg wrote: See man hwclock, the section on The Adjust Function. Thanks for the explanation and the tip. It certainly makes sense now :-) Also, should I enable RTC in my kernel? I disabled it recently when I was trying to get to the root of this problem. I am also using HPET in my kernel. Can I use both these features? Do they clash with each other? -- Regards, Abhay pgplGFmnbKyrp.pgp Description: PGP signature
Re: [gentoo-user] uname -a question
On Saturday 28 January 2006 10:31, a tiny voice compelled Richard Fish to write: On 1/28/06, Ernie Schroder [EMAIL PROTECTED] wrote: Where does uname find kernel version? For my last 2 new kernels, uname -a returns some off the wall kernel version. It seems to be picking up extra info from God know where. It comes from the version embedded in the kernel, returned via the uname system call (man 2 uname). carcharias rjf # strace -v -e uname uname uname({sysname=Linux, nodename=carcharias, release=2.6.15-suspend2-r3, version=#3 PREEMPT Sat Jan 21 10:00:05 MST 2006, machine=i686}) = 0 uname({sysname=Linux, nodename=carcharias, release=2.6.15-suspend2-r3, version=#3 PREEMPT Sat Jan 21 10:00:05 MST 2006, machine=i686}) = 0 $ uname -a Linux MRK 2.6.15-gentoo-r12.6.14-r-4_new #1 Fri Jan 27 12:38:49 EST 2006 i686 AMD Athlon(tm) XP 2400+ AuthenticAMD GNU/Linux There are various ways these versions can be set, including EXTRAVERSION and LOCALVERSION. What are using to build these kernels? -Richard using the typical change symlink copy over .config, make oldconfig make make modules_installcp arch etc. Obviously, I made a typo last upgrade but I can't figure out how to fix it now. -- Regards, Ernie -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] ... fails to open device '/dev/hda2' after update
Thanks again, --- mount / -o remount, noatime,rw --- gave no protests --- etc-update --- Worked this time and I updated all and moved to my home directory and were able to change a file there looked at /etc/conf.d/rc but made no chages rebooted and ended up at the same place as before * checking root filesystem ... Failed to open the device '/dev/hda2': No such file or directory * Filesystem couldn't be fixed: (Give root password for maintenance (or Control D to continue):_ --- Either this wasn't the problem or I mixed up the correction somehow. It appears as if the bootprocess sets the filesystem to be inaccesible? Fredrik --- - Original Message - From: Richard Fish [EMAIL PROTECTED] To: gentoo-user@lists.gentoo.org Sent: Saturday, January 28, 2006 4:27 PM Subject: Re: [gentoo-user] ... fails to open device '/dev/hda2' after update On 1/28/06, Fredrik Lundgren [EMAIL PROTECTED] wrote: Sorry for my misstake, --- uname -a Linux(none) 2.6.10-gentoo-r6 #8 Thu Feb 17 13:15:44 CET 2005 i686 Intel(R) Pentium(R) M processor 1.70 Ghz Centurion Intel GNU/Linux etc-update mkdir: cannot create directory '/var/tmp/1162': Read only file system Try (assuming you don't have a separate /var filesystem): mount / -o remount,noatime,rw etc-update Once you have worked through that, edit /etc/conf.d/rc, which contains many of the things that were once in /etc/rc.conf, including RC_DEVICES. Since you are still on 2.6.10, a udev migration is not /necessary/ to fix your system, but I would still recommend it when you have some time. The basic steps are going to be: emerge udev coldplug hotplug edit /etc/conf.d/rc to set RC_DEVICES=udev remove any udev/devfs options from the kernel command line in /boot/grub/grub.conf remove /dev/.devfs if it exists reboot You can find a lot more information on udev here: http://www.gentoo.org/doc/en/udev-guide.xml -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] clamav klamav
There is a decent Gentoo Wiki article on configuring Clamav. Take a look, that what I used for a guideline. Unfortunately the wiki is down now so I can't give you a link. Just do a search when it comes back online. Robin On 1/28/06, Matthew R. Lee [EMAIL PROTECTED] wrote: I've just emerged clamav klamav. Everything seems to have gone fine. I did /etc/init.d/clamd restart. I went through the klamav setup, again fine. But when I try to update the database it claims it can't connect to the network. The network is up and running so its not the problem. I've looked at the clamd.conf in /etc but there is nothing obvious, to me, in there to do with connecting to the network. The klamav and clamav wikis were no help. I'm probably being thick, but but can anybody suggest what I'm missing? Matt -- %%% Dr. Matthew R. Lee. CASEB ECIM Departamento de Ecologia, P. Universidad Catolica de Chile, Alameda 340, Santiago, CP 6513677 CHILE. [EMAIL PROTECTED] [EMAIL PROTECTED] %%% -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list
[gentoo-user] sys-libs/glibc-2.3.6-r2 build error and locales
Hi, My problem is with flphoto and fluxbox, which doesnt have text in menus, so I decided it would be nice to add us_gb locales my make.conf has: mar martins # cat /etc/make.conf | grep LINGUAS LINGUAS=lv en and locales.build now has: en_US en_US/ISO-8859-1 en_US.UTF-8/UTF-8 en_GB en_GB/ISO-8859-1 en_GB.UTF-8/UTF-8 lv_LV lv_LV/ISO-8859-13 lv_LV.UTF-8/UTF-8 is there all correct? now when i try rebuild glibc: mar martins # emerge -pv glibc These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] sys-libs/glibc-2.3.6-r2 USE=nls userlocales -build -erandom -glibc-compat20 -glibc-omitfp -hardened -linuxthreads-tls -nptl -nptlonly -pic -profile 0 kB Total size of downloads: 0 k rebuild ends with error: /var/tmp/portage/glibc-2.3.6-r2/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads/dlfcn/libdl_pic.a(dlsym.os): In function `__dlsym': dlsym.c:(.text+0x42): undefined reference to `_rtld_global' /var/tmp/portage/glibc-2.3.6-r2/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads/dlfcn/libdl_pic.a(dlvsym.os): In function `__dlvsym': dlvsym.c:(.text+0x42): undefined reference to `_rtld_global' /var/tmp/portage/glibc-2.3.6-r2/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads/dlfcn/libdl_pic.a(dlerror.os): In function `_dlerror_run': dlerror.c:(.text+0x2bb): undefined reference to `_rtld_global_ro' /var/tmp/portage/glibc-2.3.6-r2/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads/dlfcn/libdl_pic.a(dlinfo.os): In function `dlinfo_doit': dlinfo.c:(.text+0x23): undefined reference to `_rtld_global_ro' dlinfo.c:(.text+0x6c): undefined reference to `_dl_rtld_di_serinfo' /var/tmp/portage/glibc-2.3.6-r2/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads/dlfcn/libdl_pic.a(dlmopen.os): In function `dlmopen_doit': dlmopen.c:(.text+0x37): undefined reference to `_rtld_global_ro' collect2: ld returned 1 exit status make[2]: *** [/var/tmp/portage/glibc-2.3.6-r2/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads/dlfcn/libdl.so] Error 1 make[2]: *** Waiting for unfinished jobs make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r2/work/glibc-2.3.6/malloc' make[1]: *** [malloc/others] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r2/work/glibc-2.3.6' make: *** [all] Error 2 !!! ERROR: sys-libs/glibc-2.3.6-r2 failed. Call stack: ebuild.sh, line 1894: Called dyn_compile ebuild.sh, line 941: Called src_compile glibc-2.3.6-r2.ebuild, line 1231: Called src_compile glibc-2.3.6-r2.ebuild, line 1242: Called toolchain-glibc_src_compile !!! (no error message) !!! If you need support, post the topmost build error, and the call stack if relevant. Any suggestions what to do next? martins -- Linux 2.6.15-ck2 AMD Athlon(tm) 64 Processor 3200+ 20:18:58 up 14:09, 5 users, load average: 1.14, 0.94, 1.27 pgptqYKhak4iY.pgp Description: PGP signature
[gentoo-user] Re: vim USE flag: vim-with-x
* Walter Dnes [EMAIL PROTECTED] [27/01/06 10:18]: On Sun, Jan 22, 2006 at 06:13:24AM +, Ciaran McCreesh wrote + and * , but only if you USE=vim-with-x. Did that, and it doesn't seem to help. Here's my status... [m3000][root][~] emerge --pretend --verbose vim These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] app-editors/vim-6.4 -acl -bash-completion -cscope -gpm -minimal -nls -perl -python -ruby +vim-with-x 0 kB Let me re-iterate what I'm trying to do... - In X, highlight a text string (e.g. a URL) in Firefox - hit {CTRL}{ALT}{F1}, taking me to a *REAL TEXT CONSOLE* running mutt or slrn, with vim as the editor - paste the complex URL directly into a message I'm composing with vim Did you set DISPLAY before running mutt/slrn? Moshe -- Walter Dnes [EMAIL PROTECTED] In linux /sbin/init is Job #1 My musings on technology and security at http://tech_sec.blog.ca -- gentoo-user@gentoo.org mailing list -- I love deadlines. I like the whooshing sound they make as they fly by. -- Douglas Adams Moshe Kaminsky [EMAIL PROTECTED] Home: 08-9456841 pgp3biyvAhVZC.pgp Description: PGP signature
Re: [gentoo-user] Sound problem
Problem solved! i compiled all the required drivers as modules and then ran alsaconf, now my sound is finally working. Thanks to you all Rafa -- gentoo-user@gentoo.org mailing list
[gentoo-user] emerge strace fails
emerge strace fails with the following errors: (updating a couple of packages since I first got these errors was successful) resource.c:478: error: `Q_SETUSE' undeclared here (not in a function) resource.c:478: error: initializer element is not constant resource.c:478: error: (near initialization for `quotacmds[4].val') resource.c:478: error: initializer element is not constant resource.c:478: error: (near initialization for `quotacmds[4]') resource.c:479: error: initializer element is not constant resource.c:479: error: (near initialization for `quotacmds[5]') resource.c:480: error: `Q_SETQLIM' undeclared here (not in a function) resource.c:480: error: initializer element is not constant resource.c:480: error: (near initialization for `quotacmds[6].val') resource.c:480: error: initializer element is not constant resource.c:480: error: (near initialization for `quotacmds[6]') resource.c:481: error: `Q_GETSTATS' undeclared here (not in a function) resource.c:481: error: initializer element is not constant resource.c:481: error: (near initialization for `quotacmds[7].val') resource.c:481: error: initializer element is not constant resource.c:481: error: (near initialization for `quotacmds[7]') resource.c:482: error: `Q_RSQUASH' undeclared here (not in a function) resource.c:482: error: initializer element is not constant resource.c:482: error: (near initialization for `quotacmds[8].val') resource.c:482: error: initializer element is not constant resource.c:482: error: (near initialization for `quotacmds[8]') resource.c:483: error: initializer element is not constant resource.c:483: error: (near initialization for `quotacmds[9]') resource.c:484: error: initializer element is not constant resource.c:484: error: (near initialization for `quotacmds[10]') resource.c:485: error: initializer element is not constant resource.c:485: error: (near initialization for `quotacmds[11]') resource.c:486: error: initializer element is not constant resource.c:486: error: (near initialization for `quotacmds[12]') resource.c:487: error: initializer element is not constant resource.c:487: error: (near initialization for `quotacmds[13]') resource.c:488: error: initializer element is not constant resource.c:488: error: (near initialization for `quotacmds[14]') resource.c:489: error: initializer element is not constant resource.c:489: error: (near initialization for `quotacmds[15]') resource.c:490: error: initializer element is not constant resource.c:490: error: (near initialization for `quotacmds[16]') resource.c:491: error: initializer element is not constant resource.c:491: error: (near initialization for `quotacmds[17]') resource.c:492: error: initializer element is not constant resource.c:492: error: (near initialization for `quotacmds[18]') resource.c:493: error: initializer element is not constant resource.c:493: error: (near initialization for `quotacmds[19]') resource.c:494: error: initializer element is not constant resource.c:494: error: (near initialization for `quotacmds[20]') resource.c:495: error: initializer element is not constant resource.c:495: error: (near initialization for `quotacmds[21]') resource.c:496: error: initializer element is not constant resource.c:496: error: (near initialization for `quotacmds[22]') resource.c:497: error: initializer element is not constant resource.c:497: error: (near initialization for `quotacmds[23]') resource.c: In function `sys_quotactl': resource.c:538: warning: unsigned int format, different type arg (arg 2) resource.c:539: warning: unsigned int format, different type arg (arg 2) resource.c:540: error: structure has no member named `dqb_curblocks' resource.c:541: warning: unsigned int format, different type arg (arg 2) resource.c:542: warning: unsigned int format, different type arg (arg 2) resource.c:543: warning: unsigned int format, different type arg (arg 2) resource.c:544: warning: long unsigned int format, different type arg (arg 2) resource.c:545: warning: long unsigned int format, different type arg (arg 2) make[1]: *** [resource.o] Error 1 make[1]: *** Waiting for unfinished jobs make[1]: Leaving directory `/var/tmp/portage/strace-4.5.11/work/strace-4.5.11' make: *** [all] Error 2 !!! ERROR: dev-util/strace-4.5.11 failed. !!! Function src_compile, Line 566, Exitcode 2 !!! emake failed !!! If you need support, post the topmost build error, NOT this status message. emerge --info Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.6-r2, 2.6.15-gentoo-r12.6.14-r-4_new i686) = System uname: 2.6.15-gentoo-r12.6.14-r-4_new i686 AMD Athlon(tm) XP 2400+ Gentoo Base System version 1.6.14 dev-lang/python: 2.4.2 sys-apps/sandbox:1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS=x86 AUTOCLEAN=yes CBUILD=i686-pc-linux-gnu
[gentoo-user] Re: revdep-rebuild never seems to work
What I don't understand is why doesn't it just do this: emerge app-admin/gnome-system-tools app-editors/gedit app-text/evince gnome-base/control-center gnome-base/gdm because there are slotted packages - and revdep-rebuild would have to take the newest version within the same slot. That is a task, that is not very simple - well, actually portage (emerge itself) has a major bug for slotted packages: emerge only noticed updates within the latest slot (so portage will not notice any update to gcc 3.3 if you've got gcc 3.4 installed, for example) In other words, why does it try to force the = and the version? More often than not, if I take those off (like the second line), then shit just works. yes, it does because you're lucky and don't have slotted packages in that line. I've tried the flag --package-names, but it doesn't seem to do anything different. Am I being retarded? I remember, that it once worked for me! really! You have to remove ~/.rev* and then run revdep-rebuild --package-names again. signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] clamav klamav [solved]
Very simple, just needed to add my user to the clamav group. Problem sorted :-) Matt On Saturday 28 January 2006 13:58, Robin wrote: There is a decent Gentoo Wiki article on configuring Clamav. Take a look, that what I used for a guideline. Unfortunately the wiki is down now so I can't give you a link. Just do a search when it comes back online. Robin On 1/28/06, Matthew R. Lee [EMAIL PROTECTED] wrote: I've just emerged clamav klamav. Everything seems to have gone fine. I did /etc/init.d/clamd restart. I went through the klamav setup, again fine. But when I try to update the database it claims it can't connect to the network. The network is up and running so its not the problem. I've looked at the clamd.conf in /etc but there is nothing obvious, to me, in there to do with connecting to the network. The klamav and clamav wikis were no help. I'm probably being thick, but but can anybody suggest what I'm missing? Matt -- %%% Dr. Matthew R. Lee. CASEB ECIM Departamento de Ecologia, P. Universidad Catolica de Chile, Alameda 340, Santiago, CP 6513677 CHILE. [EMAIL PROTECTED] [EMAIL PROTECTED] %%% -- gentoo-user@gentoo.org mailing list
[gentoo-user] 3.5 hours!
I haven't seen any new posts in 3 and a half hours. That must be a new record. -- Regards, Ernie -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] 3.5 hours!
On Saturday 28 January 2006 12:52 pm, Ernie Schroder wrote: I haven't seen any new posts in 3 and a half hours. That must be a new record. -- Regards, Ernie post, post, post, ... :) -- Aloha = Beau; -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] 3.5 hours!
Ernie Schroder wrote: I haven't seen any new posts in 3 and a half hours. That must be a new record. Oh yeah? I guess this is a good time to post my problem then and break that (other than this message). -- gentoo-user@gentoo.org mailing list
[gentoo-user] DHCP Timeouts
I am having problems with dhcp on my wireless interface. Which is confusing, it worked fine before. It just times out. If I assign everything manually, there are no issues. Some ask if it's because association with the AP is taking too long, but I know it is not that, because I am manually starting wpa_supplicant (which fails in gentoo init scripts for some reason, looks like it's being called wrong). And that takes care of the association. So confused... -- gentoo-user@gentoo.org mailing list
[gentoo-user] SOLVED: DHCP Timeouts
fire-eyes wrote: I am having problems with dhcp on my wireless interface. Which is confusing, it worked fine before. It just times out. If I assign everything manually, there are no issues. Some ask if it's because association with the AP is taking too long, but I know it is not that, because I am manually starting wpa_supplicant (which fails in gentoo init scripts for some reason, looks like it's being called wrong). And that takes care of the association. So confused... Looks like I got it... Further investigation showed that dhcpcd was requesting 192.168.1.103 , when it had 1.100 before. I force it to request .100 and it immediately worked... Anyone know what that was all about? -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Installing KDE...Again.... (Now at howto install kde)
Hey again!Im having issues.I saw on the gentoo forums that kdelibs-3.5.1 isn't on the servers yet, but I cant seem to get it to go down to 3.5.0. In order for me to get 3.5 anything I needed to unmask all of the packages im building in package.keywords. So I get:#USE=-arts alsa emerge -p kicker kdesktop konqueror kcontrol kdesu kcalc kmplot kontact kopete kwifimanager konsole digikam kdevelop kdm These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] kde-base/kdelibs-3.5.1 [ebuild N ] kde-base/libkonq-3.5.1 [ebuild N ] kde-base/kdebase-data-3.5.1 [ebuild N ] kde-base/kicker-3.5.1 [ebuild N ] kde-base/kcheckpass-3.5.0 [ebuild N ] kde-base/kdialog-3.5.0 [ebuild N ] kde-base/kcminit-3.5.0 [ebuild N ] kde-base/khotkeys-3.5.1 [ebuild N ] kde-base/kdesu-3.5.0 [ebuild N ] kde-base/khelpcenter-3.5.1 [ebuild N ] kde-base/kcontrol-3.5.1 [ebuild N ] kde-base/kdm-3.5.1 [ebuild N ] kde-base/kdesktop-3.5.1 [ebuild N ] kde-base/kdebase-kioslaves-3.5.1 [ebuild N ] kde-base/konqueror-3.5.1 [ebuild N ] kde-base/kcalc-3.5.1 [ebuild N ] kde-base/kmplot-3.5.1 [ebuild N ] kde-base/ktnef-3.5.1 [ebuild N ] kde-base/libkcal-3.5.1 [ebuild N ] kde-base/libkdepim-3.5.1 [ebuild N ] kde-base/libkpgp-3.5.0 [ebuild N ] kde-base/libkdenetwork-3.5.0 [ebuild N ] kde-base/certmanager-3.5.1 [ebuild N ] kde-base/libkpimidentities-3.5.1 [ebuild N ] kde-base/kontact-3.5.1 [ebuild N ] kde-base/kopete-3.5.1 [ebuild N ] kde-base/kwifimanager-3.5.1 [ebuild N ] kde-base/konsole-3.5.1 [ebuild U ] media-gfx/digikam-0.7.4-r1 [0.7.1] [ebuild N ] kde-base/cervisia-3.5.1 [ebuild U ] dev-util/kdevelop-3.2.1-r1 [3.1.2] How do I only get 3.5.0?Thanks!!!On 1/27/06, Ian [EMAIL PROTECTED] wrote: LOL, I use webmail, and I forgot about konq.Thanks!On 1/27/06, Benno Schulenberg [EMAIL PROTECTED] wrote:Ian wrote: What is the bare minimum? Its emerge kicker kdesktop konsole kcontrol right?No, leave out the kdesktop, it will get pulled in automatically, atleast here it did.Also, you won't need kcontrol if you don't wantto adjust anything.But don't you want kmail and konqueror? Benno--gentoo-user@gentoo.org mailing list -- Cheers,Ian -- Cheers,Ian
[gentoo-user] getting the right answer from `hostname --long'
Just trashed the mobo on my gentoo machine and reinstalled on a different machine entirely. (sendmail-8.13.4) I'm setting up sendmail... something I've done many times but each time it has been a right pain in the butt. No exception this time... I'm not running a mailserver, just a stand alone machine that retrieves and sends my personal mail. I've used sendmail successfully for 8-9 yrs and have no interest in changing MTA's unless there is a very good reason. In previous installs I haven't had this particular problem. Sendmail and other apps complain of not finding a qualified host name. I've always used a home-made host name (for 8-9 yrs now)... in this case: chub.local.net0 I've setup these files: hosts - resolv.conf - /etc/conf.d/hostname - /etc/conf.d/domainname I'm not running bind or anything involving /etc/nsswitch Putting the right stuff in these has always done the trick but not this time. I may be forgetting something: hosts: 127.0.0.1 localhost chub ## 192.168.x.xx chub.local.net0 chub # gentoo [...] Resolv.conf: nameserver 192.168.0.20 # Its a gateway router that queries # IPS nameservers domain local.net0 /etc/conf.d/hostname: # Set to the hostname of this machine HOSTNAME=chub /etc/conf.d/domainname: # /etc/conf.d/domainname # When setting up resolv.conf, what should take precedence? # If you wish to always override DHCP/whatever, set this to 1. OVERRIDE=1 # To have a proper FQDN, you need to setup /etc/hosts and /etc/resolv.conf # properly (domain entry in /etc/resolv.conf, and FQDN in /etc/hosts). # DNSDOMAIN=local.net0 # This only set what /bin/hostname returns. If you need to setup NIS, meaning # what /bin/domainname returns, please see: # # http://www.linux-nis.org/nis-howto/HOWTO/ # # NISDOMAIN= With all this set the `hostname' command returns: hostname chub hostname --long localhost I want to see `local.net0' not `localhost'... so does sendmail and squid I think. Can anyone spot what I've forgotten or messed up? -- gentoo-user@gentoo.org mailing list