PDA

View Full Version : Linux Trouble



Moogie
09-14-2004, 05:59 PM
My server comes up just fine with kernel version 2.6.3 - but I can't connect to /home from a different machine. On the server, /home/ward is there. On an outside machine, based on Xandros 2.5, when using the KDE environment to access /home on the server, I get a "You do not have permission".

I checked the /etc/network/exports file, and it looks OK.

I checked to make sure that NFS and Samba are running, and they are.

What else should I check?

Moogie
09-15-2004, 09:31 AM
Ok..let me try to reword this to see if I can get some answers. I was hoping with all the Linux guru's out here you could at least point me in the right direction?

I can connect locally at the server console.

When I try to log on to the server's/home/(user) I get "access denied".

For testing purposes, I have set the UID/password on both machines to be identical.

The exports file appears to be ok.

It has been suggested to me that perhaps ftpd and/or exports is somehow munged.

I just tried connecting via ftpd and it told me that my connection was refused.

Any and all suggestions greatly appreciated.

TIA

Bok
09-15-2004, 10:45 PM
Moogie,

been a while since I used NFS, in fact probably 6 years or so and that was solaris. I'll take a look in my old sysadmin books at work tomorrow and see what kind of diagnostics there are.

Any reason you aren't just using samba instead though ?

Bok

PCZ
09-16-2004, 03:55 AM
Moogie

Check hosts.allow and hosts.deny, they should be in/etc.
If you find them more than likely they will contain a default deny.

For testing purposes you can alter hosts.allow to let all hosts have access and if this fixes the problem tighten it down to just allow your network.



#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
ALL: ALL


Note:
The above config is not secure or recommended, it is just for troubleshooting.

Moogie
09-16-2004, 10:24 AM
For BOK: In Samba, I get the same sort of message: "You do not have
permission to open the folder"

For PCZ: I found the /etc/hosts.allow and /etc/hosts.deny. Hosts.deny
doesn't have anything set to be denied. I altered hosts.allow to ALL:
ALL and /home just disappeared from the NFS mountpoint! So I tried ALL:
192.168, and started getting the access denied again. Any other ideas?

Chinasaur
09-16-2004, 12:21 PM
Have you tried explicitly stating the IP of the server vs 192.168?

Darkness Productions
09-16-2004, 01:44 PM
Moogie: what's the contents of /etc/exports?

Moogie
09-16-2004, 03:33 PM
Originally posted by Darkness Productions
Moogie: what's the contents of /etc/exports?

Exports contains one line:

/home *(rw,sync,root_squash)

Darkness Productions
09-17-2004, 08:21 AM
On the machine you're trying to access this directory from, run 'mount', and paste the output here.

Moogie
09-17-2004, 09:15 AM
Here it is. "Snowbell" is our main machine.

snowbell:/home/ward# mount
/dev/ide/host0/bus0/target0/lun0/part2 on / type reiserfs (rw)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
usbdevfs on /proc/bus/usb type usbdevfs (rw,devmode=0666)
automount(pid992) on /var/autofs/floppy.1 type autofs
(rw,fd=4,pgrp=992,minproto=2,maxproto=9)
automount(pid1000) on /var/autofs/cdrom.1 type autofs
(rw,fd=4,pgrp=1000,minproto=2,maxproto=9)
snowbell:/home/ward#

Darkness Productions
09-17-2004, 01:45 PM
Two things:

1) I don't see anything there with a mount from <server>... is it being automounted?

2) You state at the top that you're on 2.6.3... was this a custom build, or a packaged kernel?

No matter your answer to 2, make sure that you have NFS and SMBFS compiled into the kernel, otherwise, you won't be able to mount said server from the client...

Moogie
09-17-2004, 04:21 PM
1. No, it's not being automounted. I tried mounting both NFS and SMB
from within KDE with no luck - the server just says I don't have the
necessary permissions.

2. I checked on the server - NFS and Samba are running.

One "odd" thing - when I did an ls -l at the root on the server, owner
is root, and group is "staff", whatever group that is. I did the same
thing on my Xandros box, and found the same thing.

For experimental purposes, I think my next step is going to be creating
another directory off of the root, call it "shared", with owner root and
group users, then put it in the exports file and see what happens. Does
that sound like a reasonable step?