LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-27-2004, 02:05 AM   #1
anamika123
Member
 
Registered: Jun 2002
Location: India
Posts: 39

Rep: Reputation: 15
nfs problem server: Permission denied


I am trying to mount the nfs server but its saying permission denied. I first tried to do it by autofs it was not mounting then I tried the mount command as :

#mount cu4:/4u1/ cl1

The response it gave is

mount: cu4:/4u1/ failed, reason given by server: Permission denied

I am not able to find out the problem. I found related thread on the net saying to export the name of the machine and I changed the /etc/exports. Name of the comp and the name in /etc/exporst are same now. But still the problem remains.

Please help
 
Old 04-27-2004, 06:00 AM   #2
chris78
LQ Newbie
 
Registered: Mar 2004
Location: germany
Distribution: Slackware & RedHat
Posts: 28

Rep: Reputation: 15
Can you post the relevant line from your /etc/exports ?
 
Old 04-29-2004, 07:13 AM   #3
anamika123
Member
 
Registered: Jun 2002
Location: India
Posts: 39

Original Poster
Rep: Reputation: 15
I am able to mount the nfs files system now using mount command, but not abe to do it with autofs.
 
Old 04-29-2004, 12:38 PM   #4
coolamit78
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546

Rep: Reputation: 31
Why dont you put those entries in /etc/fstab ...Your nfs directory will be automatically mounted at the time of system startup...

--amit
 
Old 04-29-2004, 02:02 PM   #5
anamika123
Member
 
Registered: Jun 2002
Location: India
Posts: 39

Original Poster
Rep: Reputation: 15
I want to use autofs since using it is more cleaner than using /etc/fstab perhaps, as I found on some site (I may be wrong) . My /etc/auto.matser has following line

/misc /etc/auto.misc --timeout=60

and /etc/auto.misc has following

4u1 -rw,soft,intr cu4:/4u1
#kernel -ro,soft,intr ftp.kernel.org:/pub/linux
#cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom

# the following entries are samples to pique your imagination
#boot -fstype=ext2 :/dev/hda1
#floppy -fstype=auto :/dev/fd0
#floppy -fstype=ext2 :/dev/fd0
#e2floppy -fstype=ext2 :/dev/fd0
#jaz -fstype=ext2 :/dev/sdc1
#removable -fstype=ext2 :/dev/hdd
cdrom -fstype=iso9660,ro :/dev/cdrom
 
Old 04-30-2004, 02:56 AM   #6
coolamit78
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546

Rep: Reputation: 31
I havent come across any such thing that could prove that using autofs is cleaner than using /etc/fstab..

Anyways, u can try the following

/etc/auto.master

/misc /etc/auto.misc --timeout=60

and in /etc/auto.misc, add another line at the end

* --fstype=ext3 <ip-address or hostname of nfs server>:/shared/folder &

After that

chkconfig autofs on

service autofs start

Regarding error at the time of manual mounting, do the following to troubleshoot...

1. Ping your nfs server from the client machine to check network.
2. Try stopping the iptables firewall to see if that is the reason.
3. Check if the 'portmap ' service is running on the server..
service portmap status

I hope that helps..

--amit
 
  


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
Permission denied on client when running install script residing on NFS server dstotz Linux - Newbie 2 12-11-2004 03:10 PM
nfs server permission denied lackluster Linux - Networking 3 08-21-2004 11:47 AM
PLEASE help, NFS (permission denied) Nappa Slackware 15 01-13-2004 08:17 PM
NFS Problem mounting 2 systems:Permission Denied by server meng_en Linux - General 3 09-24-2002 12:24 AM
Permission Denied NFS graystarr Linux - Networking 9 07-08-2002 06:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:29 AM.

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
Open Source Consulting | Domain Registration