Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash: no job control in this shell



SL Baur continues to help me.  Unfortunately I still don't know the
meanings, except for one fact.  Since I did an "su", naturally my login
process (parent of su) is still open on my pty.

> > [root@example.com ndiamond]# ls -l /proc/self/fd
> > 合計 0
> > lrwx------    1 root     root           64  8月  8 15:03 0 -> /dev/pts/0
> > lrwx------    1 root     root           64  8月  8 15:03 1 -> /dev/pts/0
> > lrwx------    1 root     root           64  8月  8 15:03 2 -> /dev/pts/0
> > lr-x------    1 root     root           64  8月  8 15:03 3 -> /proc/1261/fd
>
> That's correct.  Two more questions:
> What are the permissions on /dev/pts/0?  `ls -l /dev/pts/0'.
> What other processes have that device open?  '/sbin/fuser /dev/pts/0'
> Then, for all the numbers listed in the fuser command, do `oldps <number>'
> to see what they are.

Since this is a new su, one process number is different.

[ndiamond@example.com ndiamond]$ su
Password:
bash: no job control in this shell
[root@example.com ndiamond]# ls -l /proc/self/fd
合計 0
lrwx------    1 root     root           64  8月  8 15:22 0 -> /dev/pts/0
lrwx------    1 root     root           64  8月  8 15:22 1 -> /dev/pts/0
lrwx------    1 root     root           64  8月  8 15:22 2 -> /dev/pts/0
lr-x------    1 root     root           64  8月  8 15:22 3 -> /proc/1274/fd
[root@example.com ndiamond]# ls -l /dev/pts/0
crw--w----    1 ndiamond tty      136,   0  8月  8 15:22 /dev/pts/0
[root@example.com ndiamond]# /sbin/fuser /dev/pts/0
/dev/pts/0:           1020  1021  1262  1263  1276
[root@example.com ndiamond]# oldps 1020
  PID TTY STAT TIME COMMAND
 1020   ? SW   0:00 login -- ndiamond
[root@example.com ndiamond]# oldps 1021
  PID TTY STAT TIME COMMAND
 1021   ? S    0:00 -bash
[root@example.com ndiamond]# oldps 1262
  PID TTY STAT TIME COMMAND
 1262   ? S    0:00 su
[root@example.com ndiamond]# oldps 1263
  PID TTY STAT TIME COMMAND
 1263   ? S    0:00 bash
[root@example.com ndiamond]# oldps 1276
  PID TTY STAT TIME COMMAND
No processes available.
[root@example.com ndiamond]#

Sincerely,
Norman Diamond

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links