[HPADM] RE: SUMMARY: rw as part of hostname for NFS export

From: Jeff Lightner (jlightner_at_water.com)
Date: 03/22/05

  • Next message: Yoho, Cindy: "[HPADM] Copying cds"
    Date: Tue, 22 Mar 2005 08:42:43 -0500
    To: "Jeff Lightner" <jlightner@water.com>, <hpux-admin@dutchworks.nl>
    
    

    It appears there is no solution for this one although there are
    workarounds.

     

    Based on the responses I reread my original question. Although the
    detail below it was a little clearer I see that the initial question was
    phrased badly. It should have been:

     

    Is there a way to export a CD filesystem to a host that has "rw" in its
    name (e.g. HOST: norw01) and not have exportfs think it is the
    read-write option?

     

    It appears many people thought I was asking about a filesystem named
    norw01 as opposed to a hostname of norw01. (Despite this I suspect the
    issue would be the same either way had it been a filesystem.)

     

    In any event no one had an answer. Basically the man page for exports
    makes it clear you can't have the ro and rw options on the same line.
    Unfortunately it appears that whoever wrote the checking routine for
    that simply looked for "rw" anywhere on the line (embedded or not)
    rather than checking to see if it was the "rw" option itself.

     

    Also there was some discussion about why I would have the hostname in
    the line since it isn't required for a CD mount. The reason for this
    was that the CD had a file with read/execute permissions for root but no
    group or world permissions. This meant I HAD to export it with the
    "root=hostname" option or the target host couldn't execute the file on
    the CD as it wouldn't have had root access to the mount.

     

    Workarounds for this would be:

    1) Use the IP address (root=x.x.x.x) and insure that the IP address
    can't be resolved into the real name.

    2) Put the CD into the drive of the host with the offending name
    (norw01) and mount it locally.

    3) Craig Johnson suggested using netgroups might work but I didn't try
    this.

     

    Thanks to those who responded:

    Craig E. Johnson

    James Bankston

    Kevin O'Donovan

     

     

    ________________________________

    From: hpux-admin-owner@DutchWorks.nl
    [mailto:hpux-admin-owner@DutchWorks.nl] On Behalf Of Jeff Lightner
    Sent: Monday, March 21, 2005 11:32 AM
    To: hpux-admin@dutchworks.nl
    Subject: [HPADM] rw as part of hostname for NFS export

     

    All,

     

    Is there a way to export a CD filesystem that has "rw" embedded in its
    name (e.g. norw01) and not have exportfs think it is the read-write
    option?

     

    On attempting to export a CD with root access to these hosts it
    complains because it says you can't have "ro" (read only) and "rw"
    (read-write) on the same line. Except for the embedded name "rw" does
    NOT appear on the line. Since it is a CD it is forcing me to specify
    "ro" so deleting that doesn't work. I've attempted backslash escape,
    single quote and double quote all to no avail. Changing the order of
    the options hasn't helped either.

     

    I did come up with a work around which was to export the root access
    using IP rather than host name. Even then I had to insure the exporting
    host couldn't resolve the IP into a name.

     

    Just wondering if anyone knows of a way I could do this using the
    hostname by some clever quoting/escaping mechanism rather than doing the
    work around.

     

    Jeffrey C. Lightner

    Unix Systems Administrator

    DS Waters of North America

    678-486-3516

     

    --
                 ---> Please post QUESTIONS and SUMMARIES only!! <---
            To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
           Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
     
     Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
                http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)
    

  • Next message: Yoho, Cindy: "[HPADM] Copying cds"

    Relevant Pages

    • Re: hostnames and interfaces
      ... Apache documentation on doing virtual hosts and maybe do some ... A fully Qualified Host Name consists of two main parts. ... During installation, when it asks for hostname, it wants a Fully ... service what DNS server will be providing DNS service for that domain. ...
      (freebsd-questions)
    • RE: apache not starting: FreeBSd 5.4
      ... Assigning a Host name to your FBSD system. ... statement hostname= to /etc/rc.conf. ... registered domain name on the public Internet (unless of course it's ...
      (freebsd-questions)
    • Re: Disabling "Status of lp request" mails
      ... >>hostname incorrectly, or the host submitting the print jobs ... >>is providing the wrong hostname info. ... >print servers to blackhole attempted replies from lpsched to print jobs ... or on the mail servers that receive the messages from the print server, ...
      (comp.unix.solaris)
    • Re: mail confusion
      ... On Sun, 2005-10-30 at 12:06 -0500, Derek Martin wrote: ... > - change the hostname of your machine to something in a real domain ... This host has a dynamic IP. ... Evolution is configured to use sendmail on this ...
      (Fedora)
    • 5.3-BETA7 rc.conf: ntpdate vs. named clash?
      ... The hostnames of ntpdate list are not resolved. ... hostname nor servname provided, ... Looking for host time.kriss.re.kr and service ntp ...
      (freebsd-current)