Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by robert3975

  1. robert3975

    sending a variable to the host file

    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
  2. robert3975

    sending a variable to the host file

    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?
  3. robert3975

    Help?!! Nearly there shell variable stuck

    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!
  4. robert3975

    too many arguments

    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...
  5. robert3975

    Help?!! Nearly there shell variable stuck

    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...
  6. robert3975

    Help?!! Nearly there shell variable stuck

    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}'`...
  7. robert3975

    Help?!! Nearly there shell variable stuck

    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...
  8. robert3975

    Log to TXT File

    Yes sudo I'm stupid!!
  9. robert3975

    Log to TXT File

    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?
  10. robert3975

    root files been deleted!!

    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...
  11. robert3975

    Give a user root privliages RBAC

    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?
  12. robert3975

    VMSTAT

    Yes I'm stupid thanks ray but what I meant to say was what is considered to be an unacceptable level and how would you go about fixing it?
  13. robert3975

    VMSTAT

    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...
  14. robert3975

    Give a user root privliages RBAC

    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...
  15. robert3975

    Give a user root privliages RBAC

    PLEASE PLEASE can someone help me .......... Ive fallen and can't get up! Seriously can help on this or pointers would be great!!!

Part and Inventory Search

Back
Top