[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bash freeze when doing `suspend' without `su']
From: |
Michael Carmack |
Subject: |
Re: [bash freeze when doing `suspend' without `su'] |
Date: |
Fri, 22 Nov 2002 14:20:11 +0000 |
User-agent: |
Mutt/1.3.24i |
On Fri, Nov 22, 2002 at 02:41:41PM +0100, arosaci@Enition.COM wrote:
>
> usually i run BASH in xterm, as non-root user. When i need root
> privileges, i use "su root" command, and after that, i use the
> "suspend" command to retrieve non-root privileges.
>
> Having used "suspend" by mistake without doing "su root", my bash
> was completly freezed.
>
> Repeat-By:
> [Describe the sequence of events that causes the problem
> to occur.]
>
> bash in xterm uid != 0
>
> % tty
> /dev/ttyp0
> % id
> uid=1003 .......
> % su root
> Password:
> # id
> uid=0(root) ......
> # suspend
> % id
> uid=1003 .......
> % suspend (HERE IS THE MISTAKE, RESULTING TO A BASH FREEZE)
The 'su' doesn't really make a difference here; the same thing will
happen just by opening an xterm and typing 'suspend'.
You can escape from suspension by sending SIGCONT to the process.
For example, once you are hung, use 'ps' to find the pid of the
suspended bash shell, then use 'kill -s SIGCONT <pid>' to restore
the terminal.
m.