hi, thanks for the replies. what are these devices? are the permissions ok? crw-rw---- 1 root disk 96, 0 Apr 30 1999 pt0 crw-rw---- 1 root disk 96, 1 Apr 30 1999 pt1 crw-rw---- 1 root disk 96, 2 Apr 30 1999 pt2 crw-rw---- 1 root disk 96, 3 Apr 30 1999 pt3 is it related to my "only root can run xterm" problem? thanks, -alexm
On Mon, 14 Feb 2000, alex medvedev wrote:
what are these devices?
Take a look at /usr/src/linux/Documentation/Changes.
are the permissions ok? crw-rw---- 1 root disk 96, 0 Apr 30 1999 pt0 crw-rw---- 1 root disk 96, 1 Apr 30 1999 pt1 crw-rw---- 1 root disk 96, 2 Apr 30 1999 pt2 crw-rw---- 1 root disk 96, 3 Apr 30 1999 pt3 is it related to my "only root can run xterm" problem?
Excuse me, not pt[0-9] but the contents of /dev/pts is important. In my case it looks like this: ls -al /dev/pts /dev/pty* total 31 drwxr-xr-x 2 root root 0 Jan 31 11:32 . drwxr-xr-x 6 root root 30720 Feb 11 14:51 .. crw--w---- 1 peter tty 136, 0 Feb 14 16:33 0 . . . crw-rw-rw- 1 root tty 2, 176 Dec 6 23:26 /dev/ptya0 . . . I hope, this helps. Cheers, Peter -- Peter Münster **** Brittany **** France URL: http://gmv.spm.univ-rennes1.fr/~peter/
hi, thanks for the hint, peter, i checked all my /dev/pts and /dev/pty* settings and everything is ok. so: why can i do "ls", "mkdir", "xterm", ... as root, but not as a normal user? more strange things: "ps", "w", "less" and even "top" work ok, "cat" (!) crashes. "finger" runs perfectly, "who" crashes. alex: for you it's only xterm showing this behaviour? no other commands? regards, michael balzer -- b&b computersysteme * kämperheide 10 * 58285 gevelsberg * germany fon +49 2333 913924 * fax +49 2333 913925 * http://www.bbcomp.de
[...]
so: why can i do "ls", "mkdir", "xterm", ... as root, but not as a normal user?
more strange things: "ps", "w", "less" and even "top" work ok, "cat" (!) crashes. "finger" runs perfectly, "who" crashes.
This is really bizarre... uhm, could it be one of the more important libraries that is linked to some binaries?!? Well, it can't be libc (everything would crash ;-)), but maybe libm, libstdc++ or whatever. Have you checked this? The ldd command (given that THIS works ;-)) should give you a list of linked libraries for a binary. So you can check ps, w, cat and so on and compare the lists of libraries. Regards, Jan Hildebrandt -- jan.hildebrandt@mathema.de MATHEMA Software GmbH (http://www.mathema.de) Nägelsbachstraße 25a D-91052 Erlangen, Germany Tel: (+49)9131/8903-0 Fax: (+49)9131/8903-55
On Tue, 15 Feb 2000, Michael Balzer wrote:
hi,
thanks for the hint, peter, i checked all my /dev/pts and /dev/pty* settings and everything is ok.
so: why can i do "ls", "mkdir", "xterm", ... as root, but not as a normal user?
It might be that they are requesting service that only root can access. You might check some md5sums of individual files to see that they are ok, and not replaced by trojans or something. -Pete
more strange things: "ps", "w", "less" and even "top" work ok, "cat" (!) crashes. "finger" runs perfectly, "who" crashes.
alex: for you it's only xterm showing this behaviour? no other commands?
regards, michael balzer -- b&b computersysteme * kämperheide 10 * 58285 gevelsberg * germany fon +49 2333 913924 * fax +49 2333 913925 * http://www.bbcomp.de
--------------------------------------------------------------------- To unsubscribe, e-mail: suse-security-unsubscribe@suse.com For additional commands, e-mail: suse-security-help@suse.com
Michael,
so: why can i do "ls", "mkdir", "xterm", ... as root, but not as a normal user?
more strange things: "ps", "w", "less" and even "top" work ok, "cat" (!) crashes. "finger" runs perfectly, "who" crashes.
This sounds like a library problem to me. Check permissions in /lib, /usr/lib as well as all directories listed in /etc/ld.so.conf (both directory and file permissions), make sure that _everything_ is mode 755 and execute ldconfig. Did you have a full root filesystem upon reboot? In this case, /etc/ld.so.cache might not have been created correctly by ldconfig. If these hints don't lead to a result, please send me an strace of cat /dev/null mkdir who finger ls -la /dev/null personally, not to the list. It seems that the only common library used by those executables is /lib/libc.so.6 (since this one is the only one used by cat). Send an md5sum and ls -la of it, too, as with /lib/ld-linux.so.2. Regards, Roman. -- _ _ | Roman Drahtmüller "Freedom means that you can choose | CC University of Freiburg what you want to learn at a given | email: draht@uni-freiburg.de time." A. Becker, 1999 | - - People often find it easier to be a result of the past than a cause of the future.
hi community, hi roman, i've found something concerning my...
so: why can i do "ls", "mkdir", "xterm", ... as root, but not as a normal user?
more strange things: "ps", "w", "less" and even "top" work ok, "cat" (!) crashes. "finger" runs perfectly, "who" crashes.
...problem: thanks to roman's "strace" hint, i could track this down to some problem with the locale. the strace showed that the basic difference between root / normal user runs of the above commands was that normal user runs tried to load a locale (suppose de_DE). after renaming "/usr/share/locale/locale.alias" (thus disabling the locale loader) now every command is perfectly functional again, from root as well as from normal accounts. i am not yet able to tell which part of the locale causes the problem, but maybe this information can help others as well. regards, michael balzer -- b&b computersysteme * kämperheide 10 * 58285 gevelsberg * germany fon +49 2333 913924 * fax +49 2333 913925 * http://www.bbcomp.de
participants (6)
-
alex medvedev
-
Jan Hildebrandt
-
Michael Balzer
-
Peter Münster
-
Petri Sirkkala.
-
Roman Drahtmueller