Telstra has revealed the addition of almost one million new mobile services in the six months to December 2011, but Sensis revenues plummeted 24 percent in 12 months.
read more
David M Williams
Monday, 20 August 2007 21:18
The daemon is intended for use with a front-end client system such as an intranet page. However, it can be called – and thus tested – directly from a command-line based telnet program.
Simply use telnet to connect to the port the daemon is running on, such as with a command like
The daemon will give no helpful output. You must first enter the secret password before useful tasks can be performed. The date and time will be repeatedly outputted, giving up to three opportunities to enter the password before the calling client is disconnected.
The secret password is found in the dwserv.h file. Note that you must stop the daemon and re-execute make anytime you change the source code. If a front-end program connects to the daemon then it must be modified to use the correct secret password.
The following commands are available -
ALIA - return aliases for a given username
GROU - return groups for a given username
MAKE - make a new user account
STRT - start a process
VERS - return the program version
QUIT - disconnect from the server
STAT - inspect the number of connections
Here’s another sample session. This time we enter the correct secret password, and you will see we get meaningful output from the VERS and STAT commands, before choosing to disconnect.
The log file
If logging is enabled, the log file will report on each connection that is made to the server. You will find information detailing the computer that connected and the commands that were executed. This permits you to monitor any accounts that have been created or processes executed.
The log file is only ever appended to, even if the daemon is restarted. It is not overwritten. This means you will not lose information, but it does mean the log file must be rotated periodically to avoid running out of disk space.
Final comments
You now have the complete code to produce your own Linux network service. In this case, it allows you to make accounts and some other useful tasks. This gives power to control your network from an intranet or through some other means.

|
Microsoft Office 365Try an easy-to-use set of web-enabled tools for business-class productivity services. Office 365 provides anywhere-access to email, important documents, contacts, and calendars on almost any device. |