cron-log
DESCRIPTION
linuxTRANSCRIPT
![Page 1: cron-log](https://reader031.vdocument.in/reader031/viewer/2022011720/577cc73c1a28aba711a06123/html5/thumbnails/1.jpg)
RH133
Red Hat Enterprise Linux System Administration
Welcome!
![Page 2: cron-log](https://reader031.vdocument.in/reader031/viewer/2022011720/577cc73c1a28aba711a06123/html5/thumbnails/2.jpg)
2
Objectives
Printing and Administration Tools Understanding Printer Installing and Managing Printer Server and Client Using Scheduling [ cron ] System Logging
X Windows System Understanding Server and Client Managing X Server Using Remote Desktop Configuration Utilities
![Page 3: cron-log](https://reader031.vdocument.in/reader031/viewer/2022011720/577cc73c1a28aba711a06123/html5/thumbnails/3.jpg)
3
Printing and Administration Tools
![Page 4: cron-log](https://reader031.vdocument.in/reader031/viewer/2022011720/577cc73c1a28aba711a06123/html5/thumbnails/4.jpg)
4
Understanding Printer
![Page 5: cron-log](https://reader031.vdocument.in/reader031/viewer/2022011720/577cc73c1a28aba711a06123/html5/thumbnails/5.jpg)
5
Printer TERMSPrinter TERMS Printer Print Device Print Driver Print Server Print Client Network Printer Local Printer Print Queue Print Job
![Page 6: cron-log](https://reader031.vdocument.in/reader031/viewer/2022011720/577cc73c1a28aba711a06123/html5/thumbnails/6.jpg)
6
Common UNIX Printing Service [ CUPS ]
CUPS, the common printing system, is the primary printing system under Red Hat Enterprise Linux. CUPS supports a new Internet Printing Protocol, IPP, based on HTTP.
![Page 7: cron-log](https://reader031.vdocument.in/reader031/viewer/2022011720/577cc73c1a28aba711a06123/html5/thumbnails/7.jpg)
7
Installing and Managing Printer Server and Client
CUPS Configuration Files
/etc/cups/cupsd.conf/etc/cups/cupsd.conf cupsd server configuration file
/etc/cups/printers.conf/etc/cups/printers.conf Print queue configuration file
![Page 8: cron-log](https://reader031.vdocument.in/reader031/viewer/2022011720/577cc73c1a28aba711a06123/html5/thumbnails/8.jpg)
8
Printing Commands system-config-printersystem-config-printer : Utility to install and manage print devices lprlpr : command to send print jobs to print device lpqlpq : command to view print queues lprmlprm : command to remove print jobs lpadminlpadmin : command line tool for printer administration
![Page 9: cron-log](https://reader031.vdocument.in/reader031/viewer/2022011720/577cc73c1a28aba711a06123/html5/thumbnails/9.jpg)
9
Using Scheduling [ cron ]
![Page 10: cron-log](https://reader031.vdocument.in/reader031/viewer/2022011720/577cc73c1a28aba711a06123/html5/thumbnails/10.jpg)
10
cron Used to schedule recurring events Use crontab to edit, install and view job schedules Command Examples Crontab OPTIONS
-l -l list crontablist crontab -r-r removes crontabremoves crontab -e-e edits crontabedits crontab
![Page 11: cron-log](https://reader031.vdocument.in/reader031/viewer/2022011720/577cc73c1a28aba711a06123/html5/thumbnails/11.jpg)
11
Using Crontab File
• Fields in a crontab file can be separated by any number of tabs or spaces
![Page 12: cron-log](https://reader031.vdocument.in/reader031/viewer/2022011720/577cc73c1a28aba711a06123/html5/thumbnails/12.jpg)
12
Controlling Cron
Restrict / allow user access to cron /etc/cron.allow/etc/cron.allow /etc/cron.deny/etc/cron.deny
Contains usernames to allow / deny access
Disable “email” notifications:
If email notification is not required then put the following command at the end
of the cron job line:
>/dev/null 2>&1
Crontab “LOG FILE” generation:
30 18 * * * somecommand > /somelocation/logfilename.log
![Page 13: cron-log](https://reader031.vdocument.in/reader031/viewer/2022011720/577cc73c1a28aba711a06123/html5/thumbnails/13.jpg)
13
System Logging
![Page 14: cron-log](https://reader031.vdocument.in/reader031/viewer/2022011720/577cc73c1a28aba711a06123/html5/thumbnails/14.jpg)
14
What is System Logging ?
An important part of maintaining a secure system is keeping track of the activities that take place on the system. If you know what usually happens, such as understanding when users log into your system, you can use log files to spot unusual activity
Two main logging daemonsTwo main logging daemons
klogdklogd :The kernel log daemon service logs kernel messages
and events
syslogdsyslogd :The syslog daemon logs all other process activity. You
can use the log files that syslogd generates to track activities on your
system
![Page 15: cron-log](https://reader031.vdocument.in/reader031/viewer/2022011720/577cc73c1a28aba711a06123/html5/thumbnails/15.jpg)
15
Log Files /var/log/dmesg/var/log/dmesg : Kernel log messages /var/log/messages/var/log/messages : Standard system error messages /var/log/maillog/var/log/maillog : Mail System messages /var/log/secure/var/log/secure : Security, authentication, and xinetd messages
utmpdump /var/log/wtmp
used for monitoring login activity.
![Page 16: cron-log](https://reader031.vdocument.in/reader031/viewer/2022011720/577cc73c1a28aba711a06123/html5/thumbnails/16.jpg)
16
Configuring Central Log Server Server Side – Allow “syslogd” to accept remote message
vi /etc/sysconfig/syslog SYSLOGD_OPTIONS=”-r -m 0”
Restart the “syslogd” service syslog restart
Client Side – Instruct client to send log to Central Server
vi /etc/syslog.conf user.* @192.168.0.253
Restart “syslogd” service syslog restart
Test – On client
logger -i -t username “this is to be sent to remote server”
![Page 17: cron-log](https://reader031.vdocument.in/reader031/viewer/2022011720/577cc73c1a28aba711a06123/html5/thumbnails/17.jpg)
17
X Windows System
![Page 18: cron-log](https://reader031.vdocument.in/reader031/viewer/2022011720/577cc73c1a28aba711a06123/html5/thumbnails/18.jpg)
18
What is X Windows
The X Windows System is the foundation of the Linux graphical user interface (GUI). The X Windows System is maintained by X Consortium at http://www.X.org
The X Window System is designed as a flexible and powerful
client/server-based system
![Page 19: cron-log](https://reader031.vdocument.in/reader031/viewer/2022011720/577cc73c1a28aba711a06123/html5/thumbnails/19.jpg)
19
![Page 20: cron-log](https://reader031.vdocument.in/reader031/viewer/2022011720/577cc73c1a28aba711a06123/html5/thumbnails/20.jpg)
20
Methods to establish X environment Two methods to establish the environment /usr/X11R6/bin/xinit/usr/X11R6/bin/xinit /usr/X11R6/bin/startx/usr/X11R6/bin/startx
![Page 21: cron-log](https://reader031.vdocument.in/reader031/viewer/2022011720/577cc73c1a28aba711a06123/html5/thumbnails/21.jpg)
21
Configuration Utilities system-config-displaysystem-config-display mouseconfigmouseconfig switchdeskswitchdesk
![Page 22: cron-log](https://reader031.vdocument.in/reader031/viewer/2022011720/577cc73c1a28aba711a06123/html5/thumbnails/22.jpg)
?Questions