- (Exam Topic 4)
There were two systems:
system1, main system on which most of the configuration take place
system2, some configuration here
SMTP Configuration.
Configure the SMTP mail service on serverX and desktopX which relay the mail only from local system through station.network0.example.com, all outgoing mail have their sender domain as example.com. Ensure that mail should not store locally.
Verify the mail server is working by sending mail to a natasha user.
Check the mail on both serverX and desktopX with the below URL http://station.network0.example.com/system1 http://station.network0.example.com/system2
Solution:
Does this meet the goal?
Correct Answer:
A
- (Exam Topic 4)
There were two systems:
system1, main system on which most of the configuration take place
system2, some configuration here
Smb multiuser mount
Mount the samba share /opstack permanently beneath /mnt/smbspace on desktopX as a multiuser mount. The samba share should be mounted with the credentials of frankenstein.
Solution:
Does this meet the goal?
Correct Answer:
A
- (Exam Topic 2)
Given the kernel of a permanent kernel parameters: sysctl=1. It can be shown on cmdline after restarting the system. Kernel of /boot/grub/grub.conf should be a34dded finally, as:
Solution:
Does this meet the goal?
Correct Answer:
A
- (Exam Topic 4)
There were two systems:
system1, main system on which most of the configuration take place
system2, some configuration here
Dynamic Webpage Configuration.
Configure website wsgiX.example.com:8961">http://wsgiX.example.com:8961 on system1 with the documentroot /var/www/scripts
Site should execute webapp.wsgi
Page is already provided on classroom.example.com/pub/webapp.wsgi">
http://classroom.example.com/pub/webapp.wsgi
Content of the script should not be modified
Solution:
Verification from Server2:
Does this meet the goal?
Correct Answer:
A
- (Exam Topic 3)
Install the Cron Schedule for jeff user to display "Hello" on daily 5:30.
Solution:
Login as a root user
cat >schedule.txt
30 05 * * * /bin/echo "Hello"
crontab -u jeff schedule.txt
service crond restart
The cron system is essentially a smart alarm clock. When the alarm sounds, Linux runs the commands of your choice automatically. You can set the alarm clock to run at all sorts of regular time intervals. Alternatively, the system allows you to run the command of your choice once, at a specified time in the future.
Red Hat configured the cron daemon, crond. By default, it checks a series of directories for jobs to run, every minute of every hour of every day. The crond checks the /var/spool/cron directory for jobs by user. It also checks for scheduled jobs for the computer under /etc/crontab and in the /etc/cron.d directory. Here is the format of a line in crontab. Each of these columns is explained in more detail:
#minute, hour, day of month, month, day of week, command
* * * * * command
Entries in a crontab Command Line Field Value
Minute 0-59
Hour Based on a 24-hour clock; for example, 23 = 11 p.m. Day of month 1-31
Month 1-12, or jan, feb, mar, etc.
Day of week 0-7; where 0 and 7 are both Sunday; or sun, mon, tue, etc. Command: The command you want to run
Does this meet the goal?
Correct Answer:
A