unix mount

I have unix server ABC.corp.com

I enabled "NFS for Client" under control panel and mounted the NFS on s:

mount -o fileaccess=777  \\ABC.corp.emc.com\dir1\dir2  s:

I can go to s: and access the files but I cannot modify it. looks like they are read only files after mounting it. How can I have write access
learningunixAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

WolfhereCommented:
load the smbclient. Check out the man page. You will be able to authenticate to the windows machine, otherwise, you only get read rights.
0
learningunixAuthor Commented:
what do you mean by load smbclient?
0
learningunixAuthor Commented:
here's what I get

'smbclient' is not recognized as an internal or external command,
operable program or batch file.
0
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

David Johnson, CD, MVPOwnerCommented:
Vista can only do anonymous login to NFS shares (XP and 2003 are not like limited).
so if you want to connect to a NFS share not using anonymous login there is a registry tweak that you can modify to tweak Vista NFS client to use a pair of UNIX UID and GID while mounting and accessing NFS shares.

Here's how you can do it -

Start Registry Editor
Locate HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default
Create two DWORD values namely AnonymousUid and AnonymousGid
Set these values to the UID and GID you would like this NFS client to use
Restart your Client for NFS service using the Microsoft Services for NFS MMC snap-in.

found this for ws2008r2 which works the same as windows 7
    C:\Users\tmt>nfsadmin
    Invalid option argument.
    Usage : nfsadmin [server | client | mapping ] [\\host]

    For detailed help type nfsadmin [server|client|mapping] /?

    C:\Users\tmt>nfsadmin client /?

    Usage: nfsadmin client [computer name] [common_options] start | stop | config config_options

    common_options are:
        -u user              Identity of the user whose credentials are to be used
        -p password          Password of the user


    config_options are:
        protocol = TCP|UDP|TCP+UDP Set the preferred transport protocol.
        mtype = hard|soft       Specify the type of mount.
        casesensitive = yes|no  Specify the default case sensitivity of mounted file shares.
        retry = <number>        Set the number of retries for a soft mount.
        timeout = <duration>    Set the timeout (in seconds) for an RPC call.
        perf = default          Reset performance parameters to default values.
        UseReservedPorts = yes|no Use ports less than 1024
        rsize = <size>          Set the read buffer size (in KB).
        wsize = <size>          Set the write buffer size (in KB).
        fileaccess = <mode>     Specify the permission mode of the file.
                                These are used for new files created on NFS
                                servers. Specified using UNIX style mode bits.
        SecFlavors = [+|-]sys [+|-]krb5 [+|-]krb5i
                                Specify permitted security flavors.

    C:\Users\tmt>net help use
    The syntax of this command is:

    NET USE
    [devicename | *] [\\computername\sharename[\volume] [password | *]]
            [/USER:[domainname\]username]
            [/USER:[dotted domain name\]username]
            [/USER:[username@dotted domain name]
            [/SMARTCARD]
            [/SAVECRED]
            [[/DELETE] | [/PERSISTENT:{YES | NO}]]

    NET USE {devicename | *} [password | *] /HOME

    NET USE [/PERSISTENT:{YES | NO}]

    NET USE connects a computer to a shared resource or disconnects a
    computer from a shared resource. When used without options, it lists
    the computer's connections.

    devicename       Assigns a name to connect to the resource or specifies
                     the device to be disconnected. There are two kinds of
                     devicenames: disk drives (D: through Z:) and printers
                     (LPT1: through LPT3:). Type an asterisk instead of a
                     specific devicename to assign the next available
                     devicename.
    \\computername   Is the name of the computer controlling the shared
                     resource. If the computername contains blank characters,
                     enclose the double backslash (\\) and the computername
                     in quotation marks (" "). The computername may be from
                     1 to 15 characters long.
    \sharename       Is the network name of the shared resource.
    \volume          Specifies a NetWare volume on the server. You must have
                     Client Services for Netware (Windows Workstations)
                     or Gateway Service for Netware (Windows Server)
                     installed and running to connect to NetWare servers.
    password         Is the password needed to access the shared resource.
    *                Produces a prompt for the password. The password is
                     not displayed when you type it at the password prompt.
    /USER            Specifies a different username with which the connection
                     is made.
    domainname       Specifies another domain. If domain is omitted,
                     the current logged on domain is used.
    username         Specifies the username with which to logon.
    /SMARTCARD       Specifies that the connection is to use credentials on
                     a smart card.
    /SAVECRED        Specifies that the username and password are to be saved.
                     This switch is ignored unless the command prompts for username
                     and password.
    /HOME            Connects a user to their home directory.
    /DELETE          Cancels a network connection and removes the connection
                     from the list of persistent connections.
    /PERSISTENT      Controls the use of persistent network connections.
                     The default is the setting used last.
    YES              Saves connections as they are made, and restores
                     them at next logon.
    NO               Does not save the connection being made or subsequent
                     connections; existing connections will be restored at
                     next logon. Use the /DELETE switch to remove
                     persistent connections.

    NET HELP command | MORE displays Help one screen at a time.


    C:\Users\tmt>net use f: 192.168.0.100:/Public /persistent:yes
    The command completed successfully.


    C:\Users\tmt>dir f:
    Volume in drive F has no label.
    Volume Serial Number is 91D9-ED67

    Directory of F:\

    02/28/2010  11:30 PM    <DIR>          ...
                  11 File(s)  2,215,804,300 bytes
                   6 Dir(s)  599,986,257,920 bytes free


    C:\Users\tmt>net use
    New connections will be remembered.


    Status       Local     Remote                    Network

    -------------------------------------------------------------------------------
                 f:        \\192.168.0.100\Public    NFS Network

    The command completed successfully.


    C:\Users\tmt>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dfkeCommented:
You need to make sure that the location is exported with read write access for your client's hostname on the unix server side.
0
learningunixAuthor Commented:
Thx
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 7

From novice to tech pro — start learning today.