You are not logged in.

#1 2012-06-26 08:17:09

geekinthesticks
Member
From: England
Registered: 2011-09-21
Posts: 143
Website

nfs/autofs Can't Write to Folder.

This is probably something very simple, but I can't seem to find the problem. I have an Ubuntu server, which shares several folders via nfs. I can access and write to a folder OK from several computers running Arch using autofs. However, on one computer I keep getting "Permission denied" when I try to write to a folder. As far as I can see config. files on computers which work are the same as the one that doesn't. Here are the relevant config files from the computer where I get the error:

auto.master:

# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(5).

#/media /etc/autofs/auto.media

/net -hosts --timeout=60

/media/net -hosts --timeout=60

idmapd.conf

[General]

Verbosity = 0
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
Domain = bantercat.co.uk

[Mapping]

Nobody-User = ian
Nobody-Group = users

[Translation]

Method = nsswitch

and permissions from the folder I am trying to write to:

ian@salt:/etc% ls -l /media/net/shorewall.bantercat.co.uk/mnt/md3/   
total 4
drwxr-xr-x 4 ian users 4096 Jun 26 08:09 webcam

Offline

#2 2012-06-26 16:16:16

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: nfs/autofs Can't Write to Folder.

is your domain set correctly in the idmapd.conf on the server and the client machine? I also normally don't set the user name and user group and just use the default that it comes with.

Also, where are your nfs shares exported from the server?

Also did you read this from the wiki

autofs wiki wrote:

Each host name needs to be resolveable, e.g. the name an IP address in /etc/hosts or via DNS and please make sure you have at least nfs-common installed and working.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB