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

Re: dev pts mystery



On Tue, 04 Sep 2012, songbird wrote:
> Henrique de Moraes Holschuh wrote:
> > On Mon, 03 Sep 2012, songbird wrote:
> >>   somehow (i can't say what happened or i'd
> >> have the answer), now it looks like:
> >> crw--w---- 1 me   tty  136, 0 Sep  3 20:05 0
> >> crw--w---- 1 me   tty  136, 1 Sep  3 20:10 1
> >> crw--w---- 1 root tty  136, 2 Sep  4  2012 2
> >> crw--w---- 1 me   tty  136, 3 Sep  3 20:05 3
> >> crw--w---- 1 me   tty  136, 4 Sep  3 20:05 4
> >> c--------- 1 root root   5, 2 Sep  3 14:53 ptmx
> >
> > "ps auxwww | grep pts/2"  could tell you more about whatever has pts/2 open.
> 
> root@ant(1)~# ps auxwww | grep pts/2
> root      7407  0.0  0.1   3460   768 pts/1    S+   16:08   0:00 grep pts/2
> 
>   no luck, this is after a reboot, no terminals 
> open other than this one.

Try "lsof | grep pts" or "fuser /dev/pts/2" (assuming pts/2 is the one with
root permissions).  If neither command show any process with the relevant
pts open, the weird permissions are left-over from a previous use.

Maybe you have an open text console without any process attached to it?

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh


Reply to: