Re: [rtl] root id
Thanks every buddies, I have upgraded my glibc (glibc-2.2.2-1.i686.rpm) and my problem seem to be solved. Fred Frederic Cazenave wrote: The both files /etc/passwd and /etc/group the id of root is 0 !!! Fred Ludwig fele wrote: Hello Frederic! I think, I had a similar problem after an update of Linux Kernel (without RT). Your effective user id is 4294967295 which corresponds to -1 if you look at it in 64-Bit-Terms. There seems to be a change of semantics (-1 changed to 4294967295) in the system and now the rights of user and the rights of files do not match any more. I can't explain it any better, but maybe this gives you an advice. I think, I fixed it by changing the id -1 in the groups or passwd file to something more sensful ( (unsigned int32)(-1) = 65535 ?). Have luck! Ludwig fele, Humantec Industriesysteme Frederic Cazenave wrote: Last week I have posted a question concerning the lost of my root privilege after installing rtlinux modules. I can summary all my mail with hofrat ( Der Herr Hofrat [EMAIL PROTECTED] ), thanks to him, as following : I have installed this files : 521612 -rw-r--r--1 root root 19090206 Feb 14 20:56 linux-2.2.18.tar.gz 521622 -rw-r--r--1 root root 450860 Feb 16 15:10 rtlinux-3.0.tar.gz then patch linux with kernel_patch-2.2 and build the new rtlinux image when I reboot my machine and logged as root my id is [root@xport /root]# id uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) After installing all the modules of rtlinux my effective id changes : uid=0(root) gid=0(root) euid=4294967295 groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) (here there is no possibility to bring down the system propely !!) If I remove all the rt modules my id goes back to the original uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) Rigth now I didn't find any solution Fred Cazenave -- _ | | | Frederic CAZENAVE | |_/\_ /^= McGill Radar | | \_/\//Box 198, MacDonald College | | | /-\ | Ste Anne de Bellevue | | || || Quebec, Canada H9X 3V9 | | Tel (514) 398 7733 fax (514) 398 7755 | | mailto:[EMAIL PROTECTED] | | http://www.mpl.orstom.fr/hydrologie/catch/ | |__| -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/ -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/ -- _ | | | Frederic CAZENAVE | |_/\_ /^= McGill Radar | | \_/\//Box 198, MacDonald College | | | /-\ | Ste Anne de Bellevue | | || || Quebec, Canada H9X 3V9 | | Tel (514) 398 7733 fax (514) 398 7755 | | mailto:[EMAIL PROTECTED] | | http://www.mpl.orstom.fr/hydrologie/catch/ | |__| -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
Re: [rtl] root id
Hello Frederic! That's clear. I think, root always has id 0. You have to search for the "-1" and patch it (replace it) with the "4294967295". For sure I will give no garantee, that this will not crash your system, but you should try it (do not log out, you might not be able to login as root again). regards Ludwig fele, Humantec Frederic Cazenave wrote: The both files /etc/passwd and /etc/group the id of root is 0 !!! Fred Ludwig fele wrote: Hello Frederic! I think, I had a similar problem after an update of Linux Kernel (without RT). Your effective user id is 4294967295 which corresponds to -1 if you look at it in 64-Bit-Terms. There seems to be a change of semantics (-1 changed to 4294967295) in the system and now the rights of user and the rights of files do not match any more. I can't explain it any better, but maybe this gives you an advice. I think, I fixed it by changing the id -1 in the groups or passwd file to something more sensful ( (unsigned int32)(-1) = 65535 ?). Have luck! Ludwig fele, Humantec Industriesysteme Frederic Cazenave wrote: Last week I have posted a question concerning the lost of my root privilege after installing rtlinux modules. I can summary all my mail with hofrat ( Der Herr Hofrat [EMAIL PROTECTED] ), thanks to him, as following : I have installed this files : 521612 -rw-r--r--1 root root 19090206 Feb 14 20:56 linux-2.2.18.tar.gz 521622 -rw-r--r--1 root root 450860 Feb 16 15:10 rtlinux-3.0.tar.gz then patch linux with kernel_patch-2.2 and build the new rtlinux image when I reboot my machine and logged as root my id is [root@xport /root]# id uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) After installing all the modules of rtlinux my effective id changes : uid=0(root) gid=0(root) euid=4294967295 groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) (here there is no possibility to bring down the system propely !!) If I remove all the rt modules my id goes back to the original uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) Rigth now I didn't find any solution Fred Cazenave -- _ | | | Frederic CAZENAVE | |_/\_ /^= McGill Radar | | \_/\//Box 198, MacDonald College | | | /-\ | Ste Anne de Bellevue | | || || Quebec, Canada H9X 3V9 | | Tel (514) 398 7733 fax (514) 398 7755 | | mailto:[EMAIL PROTECTED] | | http://www.mpl.orstom.fr/hydrologie/catch/ | |__| -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/ -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
Re: [rtl] root id
I have installed this files : 521612 -rw-r--r--1 root root 19090206 Feb 14 20:56 linux-2.2.18.tar.gz 521622 -rw-r--r--1 root root 450860 Feb 16 15:10 rtlinux-3.0.tar.gz what ever is going on here I don't think it realy is rtlinux related, with the current rtlinux-3.0.tar.gz and 2.2.18 from kernel.org I can't reproduce this problem on any of my boxes. could you specify what compiler-releas you are using ? also did you log in as root or did you su ? hofrat -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
Re: [rtl] root id
Der Herr Hofrat wrote: I have installed this files : 521612 -rw-r--r--1 root root 19090206 Feb 14 20:56 linux-2.2.18.tar.gz 521622 -rw-r--r--1 root root 450860 Feb 16 15:10 rtlinux-3.0.tar.gz what ever is going on here I don't think it realy is rtlinux related, with the current rtlinux-3.0.tar.gz and 2.2.18 from kernel.org I can't reproduce this problem on any of my boxes. could you specify what compiler-releas you are using ? also did you log in as root or did you su ? hofrat My gcc is gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs gcc version 2.96 2731 (Red Hat Linux 7.0) and I'm logged as root Fred -- _ | | | Frederic CAZENAVE | |_/\_ /^= McGill Radar | | \_/\//Box 198, MacDonald College | | | /-\ | Ste Anne de Bellevue | | || || Quebec, Canada H9X 3V9 | | Tel (514) 398 7733 fax (514) 398 7755 | | mailto:[EMAIL PROTECTED] | | http://www.mpl.orstom.fr/hydrologie/catch/ | |__| -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
Re: [rtl] root id
Hello Frederic! I think, I had a similar problem after an update of Linux Kernel (without RT). Your effective user id is 4294967295 which corresponds to -1 if you look at it in 64-Bit-Terms. There seems to be a change of semantics (-1 changed to 4294967295) in the system and now the rights of user and the rights of files do not match any more. I can't explain it any better, but maybe this gives you an advice. I think, I fixed it by changing the id -1 in the groups or passwd file to something more sensful ( (unsigned int32)(-1) = 65535 ?). Have luck! Ludwig fele, Humantec Industriesysteme Frederic Cazenave wrote: Last week I have posted a question concerning the lost of my root privilege after installing rtlinux modules. I can summary all my mail with hofrat ( Der Herr Hofrat [EMAIL PROTECTED] ), thanks to him, as following : I have installed this files : 521612 -rw-r--r--1 root root 19090206 Feb 14 20:56 linux-2.2.18.tar.gz 521622 -rw-r--r--1 root root 450860 Feb 16 15:10 rtlinux-3.0.tar.gz then patch linux with kernel_patch-2.2 and build the new rtlinux image when I reboot my machine and logged as root my id is [root@xport /root]# id uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) After installing all the modules of rtlinux my effective id changes : uid=0(root) gid=0(root) euid=4294967295 groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) (here there is no possibility to bring down the system propely !!) If I remove all the rt modules my id goes back to the original uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) Rigth now I didn't find any solution Fred Cazenave -- _ | | | Frederic CAZENAVE | |_/\_ /^= McGill Radar | | \_/\//Box 198, MacDonald College | | | /-\ | Ste Anne de Bellevue | | || || Quebec, Canada H9X 3V9 | | Tel (514) 398 7733 fax (514) 398 7755 | | mailto:[EMAIL PROTECTED] | | http://www.mpl.orstom.fr/hydrologie/catch/ | |__| -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/ -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
Re: [rtl] root id
In message [EMAIL PROTECTED] Frederic Cazenave wrote: I have installed this files : 521612 -rw-r--r--1 root root 19090206 Feb 14 20:56 linux-2.2.18.tar.gz 521622 -rw-r--r--1 root root 450860 Feb 16 15:10 rtlinux-3.0.tar.gz ... gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs gcc version 2.96 2731 (Red Hat Linux 7.0) GCC as shipped with RH 7.0 is, ummm..., broken. Let's call it broken. You cannot use it to compile Linux kernel code. RedHat includes another (older, working) version of GCC for kernel code; it's called "kgcc": - gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs gcc version 2.96 2731 (Red Hat Linux 7.0) - kgcc -v Reading specs from /usr/lib/gcc-lib/i386-glibc21-linux/egcs-2.91.66/specs gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) You will find something like that in RedHat's kernel Makefiles: CC := $(shell if which $(CROSS_COMPILE)kgcc /dev/null 21; \ then echo $(CROSS_COMPILE) kgcc; else echo $(CROSS_COMPILE)gcc; fi) \ -D__KERNEL__ -I$(HPATH) Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [EMAIL PROTECTED] A direct quote from the Boss: "We passed over a lot of good people to get the ones we hired." -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
Re: [rtl] root id
The both files /etc/passwd and /etc/group the id of root is 0 !!! Fred Ludwig fele wrote: Hello Frederic! I think, I had a similar problem after an update of Linux Kernel (without RT). Your effective user id is 4294967295 which corresponds to -1 if you look at it in 64-Bit-Terms. There seems to be a change of semantics (-1 changed to 4294967295) in the system and now the rights of user and the rights of files do not match any more. I can't explain it any better, but maybe this gives you an advice. I think, I fixed it by changing the id -1 in the groups or passwd file to something more sensful ( (unsigned int32)(-1) = 65535 ?). Have luck! Ludwig fele, Humantec Industriesysteme Frederic Cazenave wrote: Last week I have posted a question concerning the lost of my root privilege after installing rtlinux modules. I can summary all my mail with hofrat ( Der Herr Hofrat [EMAIL PROTECTED] ), thanks to him, as following : I have installed this files : 521612 -rw-r--r--1 root root 19090206 Feb 14 20:56 linux-2.2.18.tar.gz 521622 -rw-r--r--1 root root 450860 Feb 16 15:10 rtlinux-3.0.tar.gz then patch linux with kernel_patch-2.2 and build the new rtlinux image when I reboot my machine and logged as root my id is [root@xport /root]# id uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) After installing all the modules of rtlinux my effective id changes : uid=0(root) gid=0(root) euid=4294967295 groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) (here there is no possibility to bring down the system propely !!) If I remove all the rt modules my id goes back to the original uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) Rigth now I didn't find any solution Fred Cazenave -- _ | | | Frederic CAZENAVE | |_/\_ /^= McGill Radar | | \_/\//Box 198, MacDonald College | | | /-\ | Ste Anne de Bellevue | | || || Quebec, Canada H9X 3V9 | | Tel (514) 398 7733 fax (514) 398 7755 | | mailto:[EMAIL PROTECTED] | | http://www.mpl.orstom.fr/hydrologie/catch/ | |__| -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/ -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
Re: [rtl] root id
On Wed, Feb 21, 2001 at 05:56:40PM -0500, Frederic Cazenave wrote: snip gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs gcc version 2.96 2731 (Red Hat Linux 7.0) snip Erk . . . um, there have been known problems compiling the kernel with RedHat's "stable" distribution because they decided to put a cutting edge compiler in it. I don't know if that version of the compiler (2.96) miscompiles RTLinux, but I wouldn't rule that out. Have you tried getting the updates for RedHat or using a different version of the compiler (2.7.2.x comes to mind right away)? -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
Re: [rtl] root id
} I think the bigger question here is: Why did this happen in the first place? } } Cort, } } Is there anyone at FSM Labs know why this occurred? The problem was with the psc module. Well, actually it wasn't the psc module it was bad user-land programs. The PSC module grabs a free syscall when it's loaded. With older kernels we were getting a free syscall that happens to correspond with a syscall added to later kernels to set/check privilege levels. Some user-programs would make a direct call to syscall #201 (not through glibc) and assume it was the correct one. On kernels that didn't support this syscall the user-program would get an error. When psc grabbed that syscall the user-program would end up calling a syscall it didn't intend rather than the privilege syscall. We've changed the syscall hook code in psc so that it searches top-down rather than bottom up. That fixes the problem. In short, if you have doubts just don't load psc. It's not needed unless you're using the user-level realtime features of RTLinux. -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
[rtl] root id
Last week I have posted a question concerning the lost of my root privilege after installing rtlinux modules. I can summary all my mail with hofrat ( Der Herr Hofrat [EMAIL PROTECTED] ), thanks to him, as following : I have installed this files : 521612 -rw-r--r--1 root root 19090206 Feb 14 20:56 linux-2.2.18.tar.gz 521622 -rw-r--r--1 root root 450860 Feb 16 15:10 rtlinux-3.0.tar.gz then patch linux with kernel_patch-2.2 and build the new rtlinux image when I reboot my machine and logged as root my id is [root@xport /root]# id uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) After installing all the modules of rtlinux my effective id changes : uid=0(root) gid=0(root) euid=4294967295 groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) (here there is no possibility to bring down the system propely !!) If I remove all the rt modules my id goes back to the original uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) Rigth now I didn't find any solution Fred Cazenave -- _ | | | Frederic CAZENAVE | |_/\_ /^= McGill Radar | | \_/\//Box 198, MacDonald College | | | /-\ | Ste Anne de Bellevue | | || || Quebec, Canada H9X 3V9 | | Tel (514) 398 7733 fax (514) 398 7755 | | mailto:[EMAIL PROTECTED] | | http://www.mpl.orstom.fr/hydrologie/catch/ | |__| -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/