cron-log

22
RH133 Red Hat Enterprise Linux System Administration Welcome!

Upload: vibhor-sharma

Post on 20-Jul-2016

4 views

Category:

Documents


2 download

DESCRIPTION

linux

TRANSCRIPT

Page 1: cron-log

RH133

Red Hat Enterprise Linux System Administration

Welcome!

Page 2: cron-log

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

3

Printing and Administration Tools

Page 4: cron-log

4

Understanding Printer

Page 5: cron-log

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

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

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

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

9

Using Scheduling [ cron ]

Page 10: cron-log

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

11

Using Crontab File

• Fields in a crontab file can be separated by any number of tabs or spaces

Page 12: cron-log

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

13

System Logging

Page 14: cron-log

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

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

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

17

X Windows System

Page 18: cron-log

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

19

Page 20: cron-log

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

21

Configuration Utilities system-config-displaysystem-config-display mouseconfigmouseconfig switchdeskswitchdesk

Page 22: cron-log

?Questions