* Bug in 'su' under Ultrix 4.3
@ 1993-04-28 13:57 Steve Rosen
1993-04-28 18:41 ` Robert J. Granvin
` (5 more replies)
0 siblings, 6 replies; 15+ messages in thread
From: Steve Rosen @ 1993-04-28 13:57 UTC (permalink / raw)
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?
--
___________________________________________________________
/ \
/ Steve Rosen Fox Chase Cancer Center /
/ 7701 Burholme Ave. /
/ Internet: sm_rosen@fccc.edu Philadelphia, PA 19111 /
/ Phone: (215) 728-3665 /
\___________________________________________________________/
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Bug in 'su' under Ultrix 4.3
1993-04-28 13:57 Bug in 'su' under Ultrix 4.3 Steve Rosen
@ 1993-04-28 18:41 ` Robert J. Granvin
1993-04-28 22:36 ` Ron Natalie
1993-04-28 18:47 ` Mitch Collinsworth
` (4 subsequent siblings)
5 siblings, 1 reply; 15+ messages in thread
From: Robert J. Granvin @ 1993-04-28 18:41 UTC (permalink / raw)
In article <1993Apr28.095535@ceres.rm.fccc.edu>, smrosen@ceres.rm.fccc.edu (Steve Rosen) writes:
|> 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?
This also occurs in Ultrix 4.2[A..whatever]
Same solution.
--
\\ Robert J. Granvin User Services Specialist
// School of Statistics - University of Minnesota rjg@stat.umn.edu
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Bug in 'su' under Ultrix 4.3
1993-04-28 13:57 Bug in 'su' under Ultrix 4.3 Steve Rosen
1993-04-28 18:41 ` Robert J. Granvin
@ 1993-04-28 18:47 ` Mitch Collinsworth
1993-04-28 23:02 ` Max Maklin
` (3 subsequent siblings)
5 siblings, 0 replies; 15+ messages in thread
From: Mitch Collinsworth @ 1993-04-28 18:47 UTC (permalink / raw)
In <1993Apr28.095535@ceres.rm.fccc.edu> smrosen@ceres.rm.fccc.edu (Steve Rosen) writes:
>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?
Yeah, so how does one reboot the machine if su breaks? Is this an
intermittent glitch (sometimes hangs, sometimes works), or is it that once
it hangs su is gone for good? I wouldn't call power-cycling a fix, or even
an acceptable work-around. I'd request they flag the problem as
"critical" until a patch is received.
I have seen sources for an alternative su program go by on the net
before, but never bothered checking them out. Perhaps it's time. But
then if it's a permission problem, the same thing could still happen.
-Mitch Collinsworth
mitch@graphics.cornell.edu
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Bug in 'su' under Ultrix 4.3
1993-04-28 18:41 ` Robert J. Granvin
@ 1993-04-28 22:36 ` Ron Natalie
1993-04-29 13:57 ` Mike Iglesias
` (2 more replies)
0 siblings, 3 replies; 15+ messages in thread
From: Ron Natalie @ 1993-04-28 22:36 UTC (permalink / raw)
My bitch is that on my machine (Alpha) running su seems to do a gratuitous
cd /.
I got to figure out how to restore osfboot and vmunix from the CDROM
as a result of...
$ pwd
/usr/somewhere
$ rm *
foo: permission denied
$ su
Password:
# rm *
-Ron
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Bug in 'su' under Ultrix 4.3
1993-04-28 13:57 Bug in 'su' under Ultrix 4.3 Steve Rosen
1993-04-28 18:41 ` Robert J. Granvin
1993-04-28 18:47 ` Mitch Collinsworth
@ 1993-04-28 23:02 ` Max Maklin
1993-04-29 10:55 ` Sebastian Meyer
` (2 subsequent siblings)
5 siblings, 0 replies; 15+ messages in thread
From: Max Maklin @ 1993-04-28 23:02 UTC (permalink / raw)
In article <1993Apr28.095535@ceres.rm.fccc.edu> smrosen@oberon.rm.fccc.edu writes:
:^() 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?
:^()
This is usually more indicative of a mangled {b,u,w}tmp file.
I have seen the same sort of symptoms on SunOS as well.
--
Max Maklin P.O. Box 9707
Technical Analyst 3755 Riverside Drive
Cognos Incorporated Ottawa, Ontario CANADA
Internet: maklinm@cognos.COM UUNet: maklinm@cognos.UUCP
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Bug in 'su' under Ultrix 4.3
1993-04-28 13:57 Bug in 'su' under Ultrix 4.3 Steve Rosen
` (2 preceding siblings ...)
1993-04-28 23:02 ` Max Maklin
@ 1993-04-29 10:55 ` Sebastian Meyer
1993-04-29 17:46 ` Wuxu Peng
1993-05-03 22:41 ` Eric Bushnell
1993-04-29 16:35 ` Magnus Harlander
1993-05-01 2:29 ` Jeff Aitken
5 siblings, 2 replies; 15+ messages in thread
From: Sebastian Meyer @ 1993-04-29 10:55 UTC (permalink / raw)
In comp.sys.dec smrosen@ceres.rm.fccc.edu (Steve Rosen) writes:
>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?
Two possible reasons I know of: su tries to log to /dev/console and to
syslog.
- Every now and then /dev/console just vanishes elsewhere (after
kill -9 <pid of dxsession> for instance). Any process trying
to write to /dev/console will hang.
Killing the X Server usually helps, if not: reboot.
- If your /var filesystem is full syslog will have problems...
My workaround: Keeping a suid-to-root program handy which forks your
favourite shell avoids su. Be careful about it's permissions and don't
forget the root password after getting used to this.... ;-)
sebastian
--
__o Sebastian Meyer Tel: 030/838-5181| FU Berlin, Physik
_ \<,_ meyer@risc4.physik.fu-berlin.de | Arnimallee 14 [Raum 1.3.35]
(_)/ (_) bastel@zaphod.physik.fu-berlin.de | D-1000 Berlin 33
~~~~~~~~~~ "To err is human, to really foul things up requires a computer"
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Bug in 'su' under Ultrix 4.3
1993-04-28 22:36 ` Ron Natalie
@ 1993-04-29 13:57 ` Mike Iglesias
1993-04-29 17:29 ` Stephen Carpenter
1993-04-30 5:44 ` John Dodson
2 siblings, 0 replies; 15+ messages in thread
From: Mike Iglesias @ 1993-04-29 13:57 UTC (permalink / raw)
In article <1rn0u2INN2k3@topaz.bds.com> ron@topaz.bds.com (Ron Natalie) writes:
>My bitch is that on my machine (Alpha) running su seems to do a gratuitous
>cd /.
If you set the shell for root to /bin/csh, you'll still be in whatever
directory you were in when you su'd.
Mike Iglesias Internet: iglesias@draco.acs.uci.edu
University of California, Irvine BITNET: iglesias@uci
Office of Academic Computing uucp: ...!ucbvax!ucivax!iglesias
Distributed Computing Support phone: (714) 856-6926
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Bug in 'su' under Ultrix 4.3
1993-04-28 13:57 Bug in 'su' under Ultrix 4.3 Steve Rosen
` (3 preceding siblings ...)
1993-04-29 10:55 ` Sebastian Meyer
@ 1993-04-29 16:35 ` Magnus Harlander
1993-05-01 2:29 ` Jeff Aitken
5 siblings, 0 replies; 15+ messages in thread
From: Magnus Harlander @ 1993-04-29 16:35 UTC (permalink / raw)
smrosen@ceres.rm.fccc.edu (Steve Rosen) writes:
>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
....
Use FSF's gsu. This doesn't bother about /dev/console. Actually I
think it's not /dev/console but elcsd ....
\Magnus
--
Magnus V. Harlander harlan@physik.tu-muenchen.de
GeNUA mbH and Physics Dep. TUM Tel: +49 (89) 714 3083
D-8000 Munich +49 (89) 3209-2192
-----> Happy hacking with OPERATOR Beer. <-----
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Bug in 'su' under Ultrix 4.3
1993-04-28 22:36 ` Ron Natalie
1993-04-29 13:57 ` Mike Iglesias
@ 1993-04-29 17:29 ` Stephen Carpenter
1993-04-30 5:44 ` John Dodson
2 siblings, 0 replies; 15+ messages in thread
From: Stephen Carpenter @ 1993-04-29 17:29 UTC (permalink / raw)
In article <1rn0u2INN2k3@topaz.bds.com>, ron@topaz.bds.com (Ron Natalie)
writes:
|>From: ron@topaz.bds.com (Ron Natalie)
|>Newsgroups: comp.sys.dec
|>Subject: Re: Bug in 'su' under Ultrix 4.3
|>
|>My bitch is that on my machine (Alpha) running su seems to do a
|>gratuitous
|>cd /.
|>
You must be running the field test version of DEC OSF/1 V1.2. The su bug
was fixed in the SSB kit.
Stephen.
--
_____________________________________________________________________
// \\
// Stephen Carpenter "One inode short of a file system" \\
// \\
(( UNIX Support Specialist sac@uvo.dec.com ))
\\ Digital Equipment Corporation //
\\ Basingstoke, England //
\\_____________________________________________________________________//
+++++ My employers views do not taint my opinions +++++
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Bug in 'su' under Ultrix 4.3
1993-04-29 10:55 ` Sebastian Meyer
@ 1993-04-29 17:46 ` Wuxu Peng
1993-04-30 16:33 ` Peter Churchyard
1993-05-03 22:41 ` Eric Bushnell
1 sibling, 1 reply; 15+ messages in thread
From: Wuxu Peng @ 1993-04-29 17:46 UTC (permalink / raw)
The same thing happened here at least three times
about four months ago. I haven't thought it from
that time since "su" works ok most of the time.
--
--wuxu peng (peng@pirates.cs.swt.edu)
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Bug in 'su' under Ultrix 4.3
1993-04-28 22:36 ` Ron Natalie
1993-04-29 13:57 ` Mike Iglesias
1993-04-29 17:29 ` Stephen Carpenter
@ 1993-04-30 5:44 ` John Dodson
2 siblings, 0 replies; 15+ messages in thread
From: John Dodson @ 1993-04-30 5:44 UTC (permalink / raw)
In <1rn0u2INN2k3@topaz.bds.com> ron@topaz.bds.com (Ron Natalie) writes:
>My bitch is that on my machine (Alpha) running su seems to do a gratuitous
>cd /.
That particular one has been there since Berzerkely, it got me when I went
from a V7 Unix (where su left you in the current directory) to BSD (around
1986 ? - in which an su took you to the home directory of the user su'd to ;-)
>I got to figure out how to restore osfboot and vmunix from the CDROM
>as a result of...
> $ pwd
> /usr/somewhere
> $ rm *
> foo: permission denied
> $ su
> Password:
> # rm *
After su'ing to root I did...
chown -R johnd *
It took a few seconds before I thought " mmm this is taking a while" & killed
it. It had chown'd /bin /etc /lib & half of /dev :-( but luckily no mounted
filesystems, it took a while to restore all the right ownerships, especially
the suid one's.
johnd@physiol.su.oz.au
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Bug in 'su' under Ultrix 4.3
1993-04-29 17:46 ` Wuxu Peng
@ 1993-04-30 16:33 ` Peter Churchyard
0 siblings, 0 replies; 15+ messages in thread
From: Peter Churchyard @ 1993-04-30 16:33 UTC (permalink / raw)
Did they run /bin/su or just type su?
If the latter then I expect it was a spoof su command that was there
just to grab the su password..
Pete.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Bug in 'su' under Ultrix 4.3
1993-04-28 13:57 Bug in 'su' under Ultrix 4.3 Steve Rosen
` (4 preceding siblings ...)
1993-04-29 16:35 ` Magnus Harlander
@ 1993-05-01 2:29 ` Jeff Aitken
5 siblings, 0 replies; 15+ messages in thread
From: Jeff Aitken @ 1993-05-01 2:29 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Bug in 'su' under Ultrix 4.3
1993-04-28 20:49 Achille Hui, the Day Dreamer
@ 1993-05-03 3:10 ` David Burren [Athos]
0 siblings, 0 replies; 15+ messages in thread
From: David Burren [Athos] @ 1993-05-03 3:10 UTC (permalink / raw)
In <eillihca.9304281349452160@drizzle.Stanford.EDU> eillihca@drizzle.StanFord.EDU ( Achille Hui, the Day Dreamer ) writes:
>>In <1993Apr28.095535@ceres.rm.fccc.edu> smrosen@ceres.rm.fccc.edu (Steve ...
>>>I found glitch in 'su' running under 4.3 where it accepts the typed pass...
>>>then just hangs. There appears to be a permission problem of some sort,...
My experience with 4.2 and 4.2A indicates that this is due to a program
reading /dev/xcons to redirect console I/O and not reading it fast enough,
triggering a deadlock. The DEC session manager reads xcons, but it seems
to use an ioctl (which one I can't recall) to avoid the deadlock.
__
David Burren Systems Manager
davidb@otto.bf.rmit.oz.au (guest acct) Network Representation Systems
+61-3-6343635 ITG, Telecom Australia
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Bug in 'su' under Ultrix 4.3
1993-04-29 10:55 ` Sebastian Meyer
1993-04-29 17:46 ` Wuxu Peng
@ 1993-05-03 22:41 ` Eric Bushnell
1 sibling, 0 replies; 15+ messages in thread
From: Eric Bushnell @ 1993-05-03 22:41 UTC (permalink / raw)
Sebastian Meyer (meyer@risc4.physik.fu-berlin.de) wrote:
: In comp.sys.dec smrosen@ceres.rm.fccc.edu (Steve Rosen) writes:
:
: >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?
:
: Two possible reasons I know of: su tries to log to /dev/console and to
: syslog.
: - Every now and then /dev/console just vanishes elsewhere (after
: kill -9 <pid of dxsession> for instance). Any process trying
: to write to /dev/console will hang.
: Killing the X Server usually helps, if not: reboot.
: - If your /var filesystem is full syslog will have problems...
The last time this happened here, I was able to fix it by disabling
Xprompter in /etc/ttys and signaling init to get a plain old getty at the
console, then enabling Xprompter in /etc/ttys and signaling init again.
Somewhere along the line the apparent deadlock on /dev/console cleared and
life continued.
Of course, your mileage may vary.
Eric Bushnell Medical College of Wisconsin
Network System Manager Information Technology Systems
bushnell@its.mcw.edu 8701 Watertown Plank Road
(414) 257-8488 (or 8700) Milwaukee WI 53226
--
Eric Bushnell Medical College of Wisconsin
Network System Manager Information Technology Systems
bushnell@its.mcw.edu 8701 Watertown Plank Road
(414) 257-8488 (or 8700) Milwaukee WI 53226
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~1993-05-03 22:41 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-04-28 13:57 Bug in 'su' under Ultrix 4.3 Steve Rosen
1993-04-28 18:41 ` Robert J. Granvin
1993-04-28 22:36 ` Ron Natalie
1993-04-29 13:57 ` Mike Iglesias
1993-04-29 17:29 ` Stephen Carpenter
1993-04-30 5:44 ` John Dodson
1993-04-28 18:47 ` Mitch Collinsworth
1993-04-28 23:02 ` Max Maklin
1993-04-29 10:55 ` Sebastian Meyer
1993-04-29 17:46 ` Wuxu Peng
1993-04-30 16:33 ` Peter Churchyard
1993-05-03 22:41 ` Eric Bushnell
1993-04-29 16:35 ` Magnus Harlander
1993-05-01 2:29 ` Jeff Aitken
-- strict thread matches above, loose matches on Subject: below --
1993-04-28 20:49 Achille Hui, the Day Dreamer
1993-05-03 3:10 ` David Burren [Athos]
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox