Chapter 4. Questions and Answers

4.1. How can I send messages with KSalup from the command line ?
4.2. In pre-compiled packages available on the internet, like RPMs, KSalup is installed with root privileges. Is this correct and why ?
4.1.

How can I send messages with KSalup from the command line ?

This option is available since version 1.0.2. See the previous chapter for more details.

4.2.

In pre-compiled packages available on the internet, like RPMs, KSalup is installed with root privileges. Is this correct and why ?

The communication protocol used by KSalup is a NetBios protocol which uses the system port 138 to send messages. The system ports (ports numbered from 0 to 1023) are only accessible by privileged users. Therefore, KSalup has the suid bit set in RPM packages. Once the system port 138 is opened, the root privileges are dropped and the application is loaded with the privileges of the user which started it. If you cannot or if you do not want to use the root privileges, KSalup will only work by sending and receiving messages over Samba; for this, you have to activate the TCP protocol. To know more about the network protocols used by KSalup, please refer to appendix B.