Changes

Jump to: navigation, search

OPS235 Lab 1 - CentOS7

4 bytes added, 14:40, 31 March 2015
no edit summary
#!/bin/bash # Forces script to run in the bash shell
# Author: *** INSERT YOUR NAME ***
# Date: *** CURRENT DATE ***
#
# USAGE: ./report.bash
if [ $USER != "root" ] # checks to see if user is root, and exits script if not
then
exit 1
fi
<ol><li value="4">Save your editing session, assign your report.bash file read and execute permissions (at least for the owner) and run by typing: ./report.bash</li><li>Did it run? If not what do you think you need to do in order to run the Bash Shell Script?</li><li>Issue the command su and run the Bash shell again. Did it work?</li></ol>
13,420
edits

Navigation menu