LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-13-2016, 10:03 PM   #1
ahse0w
LQ Newbie
 
Registered: Jan 2016
Posts: 2

Rep: Reputation: Disabled
trying to mount a new directory but got access denied.


I have a server running and i have some printers that are using the server to mount.
recently, i have setup a rsync script to sync data from another server so that all my data resides on my own server.
but i have problem mounting to the new folder i have created to store the sync data, it keeps saying permission denied when i try to mount.

excerpt from my fstab:

16.155.12.10:/sync/data /data nfs nfsvers=2,rsize=8192,timeo=15,intr

16.155.12.10:/gate /gate nfs nfsvers=2,rsize=8192,timeo=15,intr

the first line gives the permission denied error.
the 2nd line works fine.
i have done chmod -R 777 on /sync already but it doesnt help.

any advice? thanks!
 
Old 01-13-2016, 11:32 PM   #2
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora, Alpine, Cirros, OpenSuse/SLES
Posts: 3,270

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
What's the distro you are using on the NFS client?
Why are you using NFS version 2 instead of the current 4 (this question is probably not relevant to your problem, but I am curious ?

Can you run the following manually, as root:
Code:
mount -t nfs -o nfsvers=2,rsize=8192,timeo=15,intr 16.155.12.10:/sync/data /data
and report the result?

Also check what the server exports to you:
Code:
showmount -e 16.155.12.10
And if you can, on the server:
Code:
showmount -e
cat /etc/exports
Finally, could the error be related to the local mount point /data?

Last edited by berndbausch; 01-13-2016 at 11:33 PM.
 
Old 01-14-2016, 03:22 AM   #3
ahse0w
LQ Newbie
 
Registered: Jan 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
i found the solution after searching the web. i didn't edit the /etc/exports list after i created the folder for mounting.
after i added in the line in the export list, i can mount with no issues.

Code:
/sync *(async,rw,no_root_squash)
i am not sure what distro the client is using, but it seems to be Wind River Linux?
as for why it is using NFS version 2 i have no idea as well. The client is not an usual computer, but it is a plotter. So i guess it can accept only version 2...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can't mount share -- access denied. jim.thornton Linux - Networking 9 09-11-2013 12:59 AM
root denied access to a directory dllahr Linux - Software 7 08-17-2006 10:09 AM
'permission denied' trying to mount a directory leupi Linux - Networking 19 12-04-2005 06:50 PM
Access denied on mount in rc.local Ook Slackware 3 07-10-2005 04:09 PM
Access denied to 'Home' directory aviceda Linux - Newbie 2 11-07-2003 01:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration