Search Results

Search: Posts Made By: pbhound
9,009
Posted By pbhound
i came to the same conclusion about it being a...
i came to the same conclusion about it being a waste of time. thank you

i did have the useradd and the groupadd in my script so i guess that will have to do.

thank you for your help
9,009
Posted By pbhound
Thank you that is what i was looking for (the...
Thank you that is what i was looking for (the keyboard shortcut). man have i had a long day it was only after you said <shift 6> that i saw the character there on the keyboard when i looked for it...
9,009
Posted By pbhound
Lastly I'd add a check for the user ID at the...
Lastly I'd add a check for the user ID at the beginning of your script.
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
Only people with root access...
9,009
Posted By pbhound
at the moment no it is not being run under a...
at the moment no it is not being run under a different user than me. im not sure what my instructor will have us do to run it.

thanks

---------- Post updated at 05:56 PM ---------- Previous...
9,009
Posted By pbhound
sorry for the confusion. the if statement works...
sorry for the confusion. the if statement works correctly if the directory does exist it says so and if it does not it does attempt to create the directory but i get the error
"mkdir: cannot create...
9,009
Posted By pbhound
in this first section of the code: echo...
in this first section of the code:

echo "What department are you assigned to?"
read department # $department
sleep 2
echo "you are assigned to the: $department"
sleep 7
clear

the...
9,009
Posted By pbhound
Create script to add user and create directory
first off let me introduce myself. My name is Eric and I am new to linux, I am taking an advanced linux administration class and we are tasked with creating a script to add new users that anyone...
846
Posted By pbhound
add user script while looking for directory
sorry didnt see that thread at first

thanks
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 02:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy