Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-27-2004, 02:05 AM
|
#1
|
Member
Registered: Jun 2002
Location: India
Posts: 39
Rep:
|
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
|
|
|
04-27-2004, 06:00 AM
|
#2
|
LQ Newbie
Registered: Mar 2004
Location: germany
Distribution: Slackware & RedHat
Posts: 28
Rep:
|
Can you post the relevant line from your /etc/exports ?
|
|
|
04-29-2004, 07:13 AM
|
#3
|
Member
Registered: Jun 2002
Location: India
Posts: 39
Original Poster
Rep:
|
I am able to mount the nfs files system now using mount command, but not abe to do it with autofs.
|
|
|
04-29-2004, 12:38 PM
|
#4
|
Member
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546
Rep:
|
Why dont you put those entries in /etc/fstab ...Your nfs directory will be automatically mounted at the time of system startup...
--amit
|
|
|
04-29-2004, 02:02 PM
|
#5
|
Member
Registered: Jun 2002
Location: India
Posts: 39
Original Poster
Rep:
|
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
|
|
|
04-30-2004, 02:56 AM
|
#6
|
Member
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 05:29 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|