Score:0

cups unix domain socket localhost (socat)

hm flag

I tried to run cups service using uds (unix domain socket) via tcp port forwarder (socat) after commenting Listen 631 into /etc/cups/cupsd.conf and restarted the cups server. I also ran this command:

$ sudo socat TCP:localhost:631,fork,reuseaddr UNIX-CONNECT:/var/run/cups/cups.sock

I got:

2023/03/25 11:34:40 socat[344011] E connect(5, AF=2 127.0.0.1:631, 16): Connection refused

How can i make above command work?

Below command works, but the problem it is listening on 0.0.0.0 and its accesible outside my computer, security issue...

$ sudo socat tcp4-listen:631,fork,reuseaddr unix-connect:/var/run/cups/cups.sock

Score:0
hm flag

this command worked for me:

$ sudo socat UNIX-CONNECT:/var/run/cups/cups.sock TCP4-LISTEN:631,bind=localhost,fork,reuseaddr &

I opened the browser and typed url: localhost:631 hit enter and cups web interface started/forward unix domain socket communication.

The only thing is still not working is logging cups service web interface to change configuration, add printer, etc ...

Any idea?

Thx

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.