Solaris gurus here? Question

Discussion in 'OT Technology' started by darkphetus, Apr 14, 2009.

  1. darkphetus

    darkphetus OT Supporter

    Joined:
    Jul 1, 2005
    Messages:
    3,776
    Likes Received:
    0
    Location:
    Atlanta, GA
    Does the /etc/inet/hosts file NEED to stay root:sys to function on Solaris10?

    # ls -la /etc/inet/h*
    -r--r--r-- 1 root sys 33780 Apr 3 11:04 /etc/inet/hosts
    -rw-r--r-- 1 root root 171 Mar 27 13:39 /etc/inet/hosts.saved
    #


    I'm trying to overwrite the file with a copy located on one of my windows servers as changes are made to that box, but in doing so I have to scp or ftp the file up, which changes the owner of the file.

    I *could* run a cron to change the owner but I'd like to avoid doing that as I'd want the changes to the box to be effective immediately when the file is overwritten.

    Any thoughts?
     
  2. DouggieJ

    DouggieJ OT Supporter

    Joined:
    Nov 1, 2007
    Messages:
    8,126
    Likes Received:
    0
    Location:
    New York, NY USA
    I'm not sure if it needs to be, but it should! You don't want anyone logged in to be able to change that file, that would create a major security hole.

    Can't you just set the suid bit on the script that ftps it?
     
  3. crontab

    crontab (uid = 0)

    Joined:
    Nov 14, 2000
    Messages:
    23,448
    Likes Received:
    12
    i honestly don't believe it makes a difference. if the file stays readable by ugo.

    one thing i would worry about is the file format, are you striping out the ^M from the file before you upload it to the solaris machine? that may have a more detrimental effect than ownership.
     

Share This Page