07.06.2014 Views

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

talk dgram udp wait nobody.tty /usr/sbin/in.talkd in.talkd<br />

finger stream tcp nowait nobody /usr/sbin/tcpd /usr/sbin/in.fingerd<br />

ident stream tcp nowait nobody /usr/sbin/identd identd -i<br />

Example 9.1<br />

Excerpt from /etc/inetd.conf<br />

The tcpd program is frequently used in the /etc/inetd.conf file. It allows limiting incoming<br />

connections by applying access control rules, documented in the hosts_access(5) manual page,<br />

and which are configured in the /etc/hosts.allow and /etc/hosts.deny files. Once it has<br />

been determined that the connection is authorized, tcpd executes the real server (like /usr/<br />

bin/in.fingerd in our example).<br />

COMMUNITY<br />

Wietse Venema<br />

Wietse Venema, whose expertise in security has made him a renowned programmer,<br />

is the author of the tcpd program. He is also the main creator of<br />

Postfix, the modular e-mail server (SMTP, Simple Mail Transfer Protocol), designed<br />

to be safer and more reliable than sendmail, which features a long<br />

history of security vulnerabilities.<br />

ALTERNATIVE<br />

Other inetd commands<br />

There is no lack of alternatives. In addition to openbsd-inetd and netkit-inetd<br />

already mentioned, there are inetutils-inetd, micro-inetd, rlinetd and xinetd.<br />

This last incarnation of a super-server offers very interesting possibilities.<br />

Most notably, its configuration can be split into several files (stored, of course,<br />

in the /etc/xinetd.d/ directory), which can make an administrator's life easier.<br />

9.7. Scheduling Tasks with cron and atd<br />

cron is the daemon responsible for executing scheduled and recurring commands (every day,<br />

every week, etc.); atd is that which deals with commands to be executed a single time, but at a<br />

specific moment in the future.<br />

In a Unix system, many tasks are scheduled for regular execution:<br />

• rotating the logs;<br />

• updating the database for the locate program;<br />

• back-ups;<br />

• maintenance scripts (such as cleaning out temporary files).<br />

By default, all users can schedule the execution of tasks. Each user has thus their own crontab<br />

in which they can record scheduled commands. It can be edited by running crontab -e (its<br />

content is stored in the /var/spool/cron/crontabs/user file).<br />

204 The Debian Administrator's Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!