How to give root permission to dynamic mounting printer port.? [closed] - c

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
How can i give user permission to dynamically mounting printer port "/dev/usb/lp0" to the normal user in fedora os.
This port will be mounted when i connect the usb printer.As a normal user how do i open this port in read_write mode.
Thanks in advance

As mentioned, a udev rule should solve this for you:
In your user udev rule directory (e.g. /etc/udev/rules.d) create a file called "10-local.rules" and add the following lines:
KERNEL=="lp0", SUBSYSTEM=="usb", MODE="0666"
then udev system should change the permissions to give every read and write access to the device.

Related

I get permission denied when I try to compile and run my program in c. What could be the problem? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
Message
Cannot open output file F:\programming\simpletrialexpression.exe: permission denied
[Error] Id returned 1 exist status
The output file already exists and ld is not allowed to write to it. Possibly because it is already running somewhere in the background.
Another possibility is that some anti virus software blocks access to .exe files, in order to prevent infection. Try to disable that software, or place the ld.exe on the whitelist.

How to implement a simple telnet client in C to send command to server [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I want to use telnet to send shell command or execute shell scripts on server automatically,
any one have done such problem? can you share your experience?
It's all about socket communication. You need to know how socket works. Then, implement Telnet protocol by yourself.
If you don't want to implement your own telnet libraries. You might download putty source and see if you could leverage from it.

Unable to create socket: Operation not permitted - Mac [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm trying to run portscaner as part of my work at school. When I run the code it shows an error msg "Operation not permitted". This msg is printed directly after the OS fails to create a socket.
Notes:
1. my system is Mac OS X 10.6.8
2. in this project I'm using row socket.
3. I've written a code before the creates TCP socket and runs perfectly.
I assume this error appear because row sockets require some kind of higher privilege that my system currently has. Does anyone know how to change the privilege in my system?
Any helps is highly appreciated :)
Thanks
The process has to have root privileges to open a raw socket.
Some time another socket is running under the same port

Getting RDP Access what ports to use/open up? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I am currently attempting to get remote desktop server access to a different server, and that server admin was asking me what ports I was using. I was unsure to what he meant, and how I could find out this info ?
Thanks
If it's Windows remote desktop, then TCP port 3389 is what you need to tell him, although I'd like to think the admin should know that information!
If you are using the default configuration it will be port 3389 that the server is listening on. For non-standard configurations it can be anything, only the server administrator will be able to tell you.
http://en.wikipedia.org/wiki/Remote_Desktop_Protocol

How to make WMP to locate my custom codec? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Hieverybody,
I'm writing a custom codec for my encrypted mp3 file.(I know it sounds weird)
The problem is making WMP locate and install my custom codec when it sees my encrypted file.
There was WMPlugins.com once, but it is retired now.
You can't, only a select few were allowed to be downloaded on request.
The reason for that is that Microsoft can't be responsible for every code it is requested to host and the inspection process is to hard (both legal and melware wise).
The only thing you can do is to preinstall the codec.

Resources