I was trying to be a little clever I was wanting to insert what has been key in to a log file
so
eg I put
home-1 123.123
read path and put that into log
ex command
I think its echo $path > /opt/bin/tst.log
Was wondering if I could send a variable keyed by a user to the /etc/host file. I know that you can do it in vi but can this be scripted ?
eg
echo key in a Printer and Path!
home-01 123.123.....
read path
then what?
I tell you my head hurts!!!! Cheers I'd be here for the next month trying to figure it out.
just tried it Spot on!! I can now change the rest of my little programs would ask about log/audit trail but we'll leave that till next time!
Hi chaps As much as I would like to have an argument and kill this machine
Ive now hit a brick wall and really need some help!!
below is my script it doesn't seem to like if [ $display -eq 102 ] I think just I only want gid 102 to be changed and nothing else. If any one can help and point...
Sorry mike I starting to feel stupid!!
when I type the name
Please enter the username that you are wanting to change. Remember that
you must set the password to 123456
dochertr
./pass1.sh: [: too many arguments
You do not have access to change this password. Please press ENTER to
exit...
Thanks Mike
comes to the first part eg put a name in then exits out!!! the shell is bin/sh I think!
echo "Please enter the username that you are wanting to change. Remember that
you must set the password to 123456"
read username
display='grep $username /etc/passwd | awk -F: '{print $4}'`...
Below is my script but I only want GID 102 to have password chagned but I'm unsure how makre the shell script a variable
echo "Please enter the username that you are wanting to change. Remember that
you must set the password to 123456"
read username
*****more /etc/passwd |grep $username |awk...
Hi Chaps
Having a little problem Ive witten a helpdesk menu for my helpdesk people so they can perform basic functions. I was wondering is there any way of track changes/ usage of pseudo?
Any one who can give me some poniters gets a gold star!!
Yesterday around lunch time started to have quite a few users phone to say they could get access, however others where still on the machine.
I thought it may be a Cron run or even worse I had been hacked!! It sure its not the second as...
Cheers Mike I'll give this a bash!! hmm never thought of deleting root! but my helpdesk team are pretty good as them can create /delete or chge pwd on our dg/ux box I think I should be ok.
However if I use sudo will this stop them deleting root?
HI guys
just doing a good check around my box is when I done a vmstat
procs memory page disk faults cpu
r b w swap free re mf pi po fr de sr m0 m1 m2 m3 in sy cs us sy id
0 0 0 4954160 966440 0 0 0 0 0 0 0 0 0 0 0 4294967196 0 0...
dear Chandra, Mike
I would really love to use sudo but can't in this Solaris version.
The reason is that it doesn't exist!! if you do a man on sudo it doesn't like it, also in Unix the sudo file usually hangs around the /etc/ and I can happliy tell you it is not there!!
So if canyone know...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.