Find the answer to your Linux question:
Results 1 to 4 of 4
I have a folder on the server and now want to mount it on the client. On the server i have in root folder the following folder drwxrwxrwx 3 root ...
  1. #1
    Just Joined!
    Join Date
    Aug 2011
    Posts
    39

    mount: x.x.x.x:/usr2 failed, reason given by server: Permission denied

    I have a folder on the server and now want to mount it on the client.

    On the server i have in root folder the following folder
    drwxrwxrwx 3 root nice 4096 2012-01-05 20:33 usr2

    Im getting the following error on the client

    [root@localhost /]# mount /usr2
    mount: 172.19.186.10:/usr2 failed, reason given by server: Permission denied

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    You are doing several things incorrectly.

    1. You need a mount point on the client
    2. You need to know how the server is exporting the file system - is it Samba, or is it NFS?
    3. You need to change your mount arguments and options.

    So, if you want to mount the remote /usr2 on your own /usr2 (assuming you don't have such on the client with data in it), create the /usr2 directory (as root) on the client. Then, assuming the server has exported /usr2 as an NFS share, do this:
    Code:
    mount -t nfs -o <options> server-name-or-ip-address:/usr2 /usr2
    If the server is using nfs4, then change the "-t nfs" to "-t nfs4". The options are things like enabling read-only mounts and forcing user/group ownership to specific users. If the default options are ok for you, then leave the -o <options> out of the command.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Aug 2011
    Posts
    39
    Even after running the above command

    mount -t nfs -o <options> server-name-or-ip-address:/usr2 /usr2


    I still get the same error.
    mount: 172.19.186.10:/usr2 failed, reason given by server: Permission denied

    Rubberman: yes I have usr2 folder both on the client and server,m it looks like the server is denying the client from mounting usr2 onb the server.
    were can the problem be? Im using root to mount as well. wat problem is on the server?

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Show us the contents of the /etc/exports file from the server. The contents of the server's /etc/nfsmount.conf would be good as well.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...