From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,697f03035701b15c X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-04-30 20:02:32 PST Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!uunet!vtserf.cc.vt.edu!csugrad.cs.vt.edu!csugrad.cs.vt.edu!not-for-mail From: jaitken@csugrad.cs.vt.edu (Jeff Aitken) Newsgroups: comp.sys.dec Subject: Re: Bug in 'su' under Ultrix 4.3 Date: 30 Apr 1993 22:29:50 -0400 Organization: Virginia Tech Computer Science Dept, Blacksburg, VA Message-ID: <1rsnau$n03@csugrad.cs.vt.edu> References: <1993Apr28.095535@ceres.rm.fccc.edu> NNTP-Posting-Host: csugrad.cs.vt.edu X-Newsreader: TIN [version 1.1 PL9] Steve Rosen (smrosen@ceres.rm.fccc.edu) wrote: : I found glitch in 'su' running under 4.3 where it accepts the typed : password and then just hangs. There appears to be a permission : problem of some sort, but I can't find anything specific. After : talking with DEC C/S, their fix was to reboot the machine and it goes : away. This is true, but the problem always returns in time. Anybody : know what the permanent fix is for this? I posted about this in comp.unix.admin recently, and got several responses. I t appears that su is trying to write to /dev/console when /dev/console is hung. Therefore, su hangs. The following perl script (sent to me by Greg Thain) supposedly "unhangs" /dev/console, which ought to clear up the problem. --------------------------------------------------------------------- #!/usr/local/bin/perl # Send the TIOCSTART ioctl to the console require "sys/ioctl.ph"; open(CO,"/dev/console") || die("can't open /dev/console:$!"); ioctl(CO,&TIOCSTART,$foo) || die("ioctl failed: $!"); --------------------------------------------------------------------- Someone else suggested that it may be related to the syslog - perhaps your syslog is dead or hung when this happens? I believe su talks to the syslog as well. -- Jeff Aitken | jaitken@csugrad.cs.vt.edu | Everyone is allowed to be stupid. DEC User's Group Vice President | It's just that some people abuse Va. Tech Computer Science Dept. | the privilege.