How can I set access rights for a com (serial) port

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello
I am trying to set rights so that specific users can use the com1 port.
I have found no UI for this task and the api call GetFileSecurity fails wit
LastError=5 (Access Denied) although the CreateFile call seems to wor
excelent with the specific com port

any help appreciated
Agis Andreou
 
Mike said:
Try Devicelock from www.devicelock.com. It allows you to set permissions to
COM (serial) ports. You can also set permissions to LPT, USB and FireWire
ports.

Thank you,
very insteresting piece of software and works great.
However it does not sutisfy exactly my rather peculiar needs.
I am using TCP/Com to create a virtual serial port on system A
and connect it (by stadard tcp) to a real serial port on system B.
The scheme works great if administrator is logged in both systems.
However in the lab you can't give users with admin rights,
and using runas is out of the question because (correct me if i'm
wrong) I should either go from pc to pc giving the admin password
or store the password in a clear text format and start the program
by command line.

thank you again,
any (more) help appreciated,
aagis.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top