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

Re: [Sheflug] Process locking



Hello Chris and everyone.

Thanks for the offer of further help.

Here is more information, some of which may not be relevent. Just in
case, I am including it.

One amateur radio packet program works OK, so I assume that my AX25 is set up
correctly. This program is only for sending and receiving packet; it does not
monitor the traffic when not connected. It uses a separate program for
monitoring, which doesn't work, but gives me an error message: ax25spyd not
found on port 14090. I can't find anything obvious and have no idea what port
14090 is.

Yet another monitoring program called "Listen", works when run in ROOT, but
when run logged in as myself doesn't work but gives the error "socket:
Operation not permitted". I have looked at the "Listen" permissions and they
seem OK. Doing a LOCATE shows many sockets and I don't know which to look at
for possible wrong permissions.

A third packet program which sends, receives and monitors, works in
ROOT, but nothing when logged in as myself. Again I get the error message about
socket operation not permitted.

Finally, the TNT program. When run as ROOT from the KDE shell (which is the
only way I have found of starting it), I get a screen full of text about the
program. This screen just says up and the only way I can get rid of it is by exiting 
the shell and typing "tnt" again. This then gives the
"Device /dev/ttyS0 is locked by process 822. (Different numbers each time)

Doing a lsof /dev/ttyS0 gives the following:

COMMAND  PID   USER  FD  TYPE  DEVICE  SIZE       NODE NAME
  tnt             822    root    3u    CHR   4,64      736729      /dev/ttyS0

I kill the PID and type tnt. This time, no text screen, just the process error
giving a different number.

When run logged in as myself, the text screen has the line added "No root 
permissions: SHELL command disabled." Then the error messages as before.
lsof similar with me as the user. If it should be started from a shell, I can't
find it, and the manual doesn't mention it.

The PS2 mouse works OK. I have no scanner and the parallel printer is only
switched on if I am going to use it during the session. No digital camera.
Minicom is installed but has not been used or configured yet. My
internet modem is on serial port 1 and the packet TNC on serial port 2.

I am running SuSE7 with KDE 1 desktop.

Sorry this is so long, everyone, but there was a lot to explain.


On Sun, 14 Jan 2001, you wrote:
> > Booting up (to clear the system), logging on as root, and running lsof
> > /dev/ttyS0 gives a blank.
> > 
> > Then trying to start tnt gives the "Device locked by process" error, with a
> > different process number each time I try it.
> > 
> > Running lsof /dev/ttyS0 again, gives the pid as the process number. I then
> > kill it and trying to run the program again just gives the error message with
> > another number. It's the same if I use ps auwx | grep (followed by the process
> > number).
> > 
> 
> What is the process? Have you an example you can post here? It could be a 
> mis-config of the mouse port for GPM or X, or maybe something thinks your 
> modem is on /dev/ttyS0 ... digital camera app, lego mindstorms, minicom, a 
> whole host :) Another possibility is a stale lock file it's finding that 
> hasn't been deleted.
> 
> Plonk the output of lsof here and we should be able to point out where to 
> look to disable the offender.
> 
> Chris...
 

Any more advice very gratefully received, as I am getting fed up with error
messages.

Cheers

Keith

---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.