LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-05-2003, 05:36 PM   #1
15788
LQ Newbie
 
Registered: Apr 2003
Distribution: SuSE 8.1
Posts: 5

Rep: Reputation: 0
NFS - Permission Denied...


Hi,
I've got a "strange" problem... I've NFSd running and mounted /bla/ on /mnt. So I checked if its really mounted and cd into /mnt and dir'ed everything was well. Now I started my Client which musst mount the /bla/ Directory to boot. Unfortunately it says "Permission Denied" ...

So my problem is that the server can mount /bla/ but client cant...

[ ]

tHx,
cYa aLL
 
Old 04-05-2003, 05:40 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
Do you have a firewall running on the server? I think NFS uses port 2049 - you will need to allow connections to that port.
 
Old 04-05-2003, 05:42 PM   #3
15788
LQ Newbie
 
Registered: Apr 2003
Distribution: SuSE 8.1
Posts: 5

Original Poster
Rep: Reputation: 0
No, no Firewall running... It would appear an error like "Connection refused" or something like this...
 
Old 04-05-2003, 05:56 PM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
What are the permissions on the directory?
 
Old 04-05-2003, 06:00 PM   #5
15788
LQ Newbie
 
Registered: Apr 2003
Distribution: SuSE 8.1
Posts: 5

Original Poster
Rep: Reputation: 0
Hmm, all set to 777...
musst I configure hosts.allow/deny ?!?

Last edited by 15788; 04-05-2003 at 06:01 PM.
 
Old 04-05-2003, 06:23 PM   #6
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
What do those files look like?
 
Old 04-05-2003, 07:31 PM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 262Reputation: 262Reputation: 262
Post your /etc/exports (server) file and if you added an entry to /etc/fstab (client) post it here as well.

Also, did you add your machines to each server and clients /etc/hosts file?

You don't need to necessarily do anything to hosts.deny or hosts.allow

Also are you making sure that all the proper daemons are running on both the server and client? And after adding the exports on the server to allow the particular permissions to the client for the share, did you restart the NFS server?

Give me lots of details and we'll fix this for ya, I'm a NFS nerd..
 
Old 04-06-2003, 04:47 AM   #8
15788
LQ Newbie
 
Registered: Apr 2003
Distribution: SuSE 8.1
Posts: 5

Original Poster
Rep: Reputation: 0
OoOoOpS ! Perhaps I should have mentioned that I want to cofigure LTSP... But I think theres no diffrence...

/etc/hosts:
## LTS-begin ##
#
# The lines between the 'LTS-begin' and the 'LTS-end' were added
# on: Fri Apr 4 18:21:14 CEST 2003 by the ltsp installation script.
# For more information, visit the ltsp homepage
# at http://www.ltsp.org
#
/opt/ltsp/i386 192.168.0.0/255.255.255.0(ro,no_root_squash)
/var/opt/ltsp/swapfiles 192.168.0.0/255.255.255.0(rw,no_root_squash)
#
# The following entries need to be uncommented if you want
# Local App support in ltsp
#
#/home 192.168.0.0/255.255.255.0(rw,no_root_squash)
#
## LTS-end ##
# See the exports(5) manpage for a description of the syntax of this file.
# This file contains a list of all directories that are to be exported to
# other computers via NFS (Network File System).
# This file used by rpc.nfsd and rpc.mountd. See their manpages for details
# on how make changes in this file effective.
------------------------------------------------------
/etc/hosts:
#
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server.
# Syntax:
#
# IP-Address Full-Qualified-Hostname Short-Hostname
#

127.0.0.1 localhost <--- Me, LOL
192.168.0.30 <--- Client
# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback

fe00::0 ipv6-localnet

ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
---------------------------------------------------------
/etc/dhcpd.conf:
#
# configuration file for ISCD dhcpd
#
# dhcpd.conf for K12 LTSP
#

default-lease-time 21600;
max-lease-time 21600;

allow booting;
allow bootp;

# only for DHCPD V. 3
ddns-update-style none;
option option-128 code 128 = string;
option option-129 code 129 = text;

option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.5;
#option domain-name-servers 192.168.0.5;
option domain-name "ltsp";
option root-path "192.168.0.5:/opt/ltsp/i386";

shared-network WORKSTATIONS {


# dynamische Adressvergabe an Clients mit deren Hardware auto-detect funktioniert
# (PCI Netzwerk-Karte und PCI oder AGP Grafikkarte, ausser S3 Graphikkarten)
#
subnet 192.168.0.0 netmask 255.255.255.0 {
range dynamic-bootp 192.168.0.6 192.168.0.30;
use-host-decl-names on;
option log-servers 192.168.0.5;

# trick from Peter Rundle <peter.rundle@au.interpath.net>
# MH: needs DHCPd Version 3
if substring (option vendor-class-identifier, 0, 9) = "PXEClient"
{
filename "/tftpboot/lts/pxelinux.0";
# NOTE: kernels are specified in /tftpboot/lts/pxe/pxelinux.cfg/
}
else
{
filename "/lts/vmlinuz-2.4.19-ltsp-1";
}

}
}

# statische Vergabe von IP Adressen anhand der Hardware-MAC-Adressen
# der Clients
#
group {
use-host-decl-names on;
option log-servers 192.168.0.5;

host ws001 {
hardware ethernet 00:80:AD:1A:CD:AF;
fixed-address 192.168.0.31;
filename "/tftpboot/lts/vmlinuz-2.4.19-ltsp-1";
option option-128 e4:45:74:68:00:00;
option option-129 "NIC=ne IO=0x280";
}

# Workstation 486er
host ws006 {
hardware ethernet 00:80:AD:1A8A;
fixed-address 192.168.0.32;
filename "/tftpboot/lts/vmlinuz-2.4.19-ltsp-1";
# option option-128 e4:45:74:68:00:00;
# option option-129 "NIC=ne IO=0x280";
}


# DELL-Rechner Nr 20
host pc_20 {
hardware ethernet 00:30:84:2C:F34;
fixed-address 192.168.0.33;
filename "/tftpboot/lts/vmlinuz-2.4.9-ltsp-1";
}


# DELL-Rechner Nr 21
host pc_21 {
hardware ethernet 00:50:BF:12:71:1A;
fixed-address 192.168.0.34;
filename "/lts/vmlinuz-2.4.9-ltsp-5";
}


# DELL-Rechner Nr 22
host pc_22 {
hardware ethernet 00:50:BF:12:68:F4;
fixed-address 192.168.0.35;
filename "/lts/vmlinuz-2.4.9-ltsp-5";
}

# DELL-Rechner Nr 23
# host pc_23 {
# hardware ethernet 00:50:FC:A3:911;
# fixed-address 192.168.0.36;
# filename "/lts/vmlinuz-2.4.9-ltsp-5";
# }


# DELL-Rechner Nr 24
host pc_24 {
hardware ethernet 00:50:FC:A3:E4:58;
fixed-address 192.168.0.37;
filename "/lts/vmlinuz-2.4.9-ltsp-5";
}


# DELL-Rechner Nr 25
host pc_25 {
hardware ethernet 00:50:FC:70:50:54;
fixed-address 192.168.0.38;
filename "/lts/vmlinuz-2.4.9-ltsp-5";
}

# DELL-Rechner Nr 26
host pc_26 {
hardware ethernet 00:50:FC:A3:E4:5C;
fixed-address 192.168.0.39;
filename "/lts/vmlinuz-2.4.9-ltsp-5";
}

# DELL-Rechner Nr 27 - fehlende Blende ---
host pc_27 {
hardware ethernet 00:50:FC:A3:70:FA;
fixed-address 192.168.0.39;
filename "/lts/vmlinuz-2.4.9-ltsp-5";
}

# rechner 09 Aufenthaltsraum (PCI-Karte)
host ws003 {
hardware ethernet 00:30:84:28:07:F1;
fixed-address 192.168.0.44;
filename "/lts/vmlinuz-2.4.9-ltsp-5";
# option option-128 e4:45:74:68:00:00;
# option option-129 "NIC=ne IO=0x300";
}


# Rechner 04 Aufenthaltsraum
host ws004 {
hardware ethernet 00:80:AD:1A0:2E;
fixed-address 192.168.0.45;
filename "/lts/vmlinuz-2.4.9-ltsp-5";
option option-128 e4:45:74:68:00:00;
option option-129 "NIC=ne IO=0x300";

}

# Rechner 12 Aufenthaltsraum
host ws012 {
hardware ethernet 00:50:FC:A3:C44;
fixed-address 192.168.0.46;
filename "/lts/vmlinuz-2.4.9-ltsp-5";

}
}
--------------------------------------------------------------------------------
Perhaps u'll need it =8)
--------------------------------------------------------------------------------
Ok, services on Server are all running well, but the clients boots from a ROM and I dont know if theres all running well, but I think so...

Of course I restarted the NSF - Server...

Oh ! It also says "mount program didn't pass remote adress!"

Last edited by 15788; 04-06-2003 at 05:07 AM.
 
Old 04-06-2003, 09:24 AM   #9
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
I hope you don't mind me asking but why do you want to use NFS to mount a drive locally when 99% of the processing is done on the ltsp server.
 
Old 04-06-2003, 10:43 AM   #10
15788
LQ Newbie
 
Registered: Apr 2003
Distribution: SuSE 8.1
Posts: 5

Original Poster
Rep: Reputation: 0
I dont want to mount the drive locally ...
Listen : (First DHCP...) The LTSP - Client fetches the Linux Kernel etc. from the TFTP - Server, then it mounts the rootpath (via NFS)(/opt/ltsp/i386/ for normal) to /mnt and then X...

So LTSP needs NFS ! LTSP is only something like a "configuration-script" for the servers ! But unfortunately it didn't configure my system correctly...

I had to configure DHCPd, TFTPd and NFSd manually DHCPd and TFTPd are working fine, but NFS does not. So plz help me !

Last edited by 15788; 04-06-2003 at 10:44 AM.
 
  


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
nfs 'permission denied' friendly_guy Slackware 7 01-02-2005 08:24 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 permission denied somesh Linux - Software 2 07-22-2003 03:42 PM
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:11 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