Unix System Administration Assignment
Part I -
Create a script called setup.sh on the jump server. Make sure the script accepts one argument via the command line and perform the following:
install syslog-ng on the remote server passed via the command line argument
configure the firewall to allow syslog traffic
configure syslog using the following information
log destination = /syslog/spring2017/
filter = students pantherid // i.e 1234567
start and enable syslog-ng ( n/a )
Create a script called run.sh on the jump server. Make sure the script accepts 4 argument via the command line and perform the following:
Transfer the script to the server passed via the command line argument.
Part II -
run.sh must script accept 5 argument via the command line and perform the following:
Argument 1: Search for users that match a particular criteria from the logs and perform the following
// add the current date as a comment
i.euseradd roary001 -c " added Mon Feb 6 19:32:54 EST 2017 "
Argument 2: Extract the x number of lines from the top of the logs to perform the following x
// add groups on the server based company name
// all groups id must start at 5000
Argument 3: Create a basic report based on the search criteria and store the file in the /root folder under assignment3.report
// i.e female
$ cat assignment3.report
female 120
not female 40
total 160
Argument 4/5: Create an account using argument 4 as its username. Set up the account with SSH keys. argument 5 is the IP of the other syslog server. Remote into argument 5 and configure the public SSH key for the user to connect.
Attachment:- Assignment.rar