Re: Problem setting up NFS on Ubuntu



In message <b6454edc4d.Alan.Adams@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Alan Adams <alan.adams@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Following up my own post... (I know, but I think it might help)

> I am attempting to set up an NFS server on Ubuntu. I have installed Ubuntu
> from a recently downloaded ISO. Package manager lists
> linux-image-2.6.12-10-386
>
> I used System - Administration - Synaptic Package Manager to include NFS
> nfs-kernel-server 1:1.0.7-3ubuntul, which included various other bits.
>
> I edited /etc/exports.
>
> (How are you supposed to do this? I enabled the password on root, used su
> from a terminal, and dragged up some recollections of vi from my previous
> Unix experience, all of it over 5 years old, and mostly SunOS 1.4, with some
> Motorola.) Should I be using the GUI, and if so, how do I do that as root,
> or with sufficient access to edit root-owned files?)
>
> The remote system can now mount the disc, but it all appears to be
> write-protected. (It was readonly, but I changed that in /etc/exports. Now I
> seem to be hitting "file owned by root, nobody else gets write".)
>
> The relevant bit of /etc/exports currently says
> /media/hdb1 rpc(rw,sync,all_squash,anonuid=1000,anongid=1000)
>
> /media/hdb1 is a FAT32 disc, with linux installed only on hda
> 1000,1000 is the only user, apart from root, on the system.
>
> /etc/fstab has
> /dev/hdb1 /media/hdb1 vfat defaults 0 0
>
> I tried using chmod 777 <any directory>, which doesn't issue an error
> message, and doesn't change the permissions displayed by ls -l

I suspect NFS is working correctly, and my problem is simple file
permissions. User 1000,1000 (Alan) cannot modify these files on Linux
either. The ownership is root, the permissions owner:rwe, group:re,
other:re. I'm missing something basic - how do I get control of these files.
Bearing in mind that this is a FAT32 filesystem, so presumably doesn't have
permissions until it's mounted on Unix. Where do those default permissions
come from? Or am I (probably) misunderstanding something basic?


> The client software has the options of anonymous connection or specifying a
> uid/gid pair. I tried both. The client is Sunfish, on a Risc PC if that
> helps.
>
>
>

--
Alan Adams, from Northamptonshire
alan.adams@xxxxxxxxxxxxxxxxxxxxxxxxxxx
http://www.nckc.org.uk/
.



Relevant Pages

  • Change Permissions on a new hard drive to allow write...Problem Solved
    ... Then I right clicked on the drive, selected "Properties" then "Permissions" and simply checked the boxes for "write" for Owner, Group, and Others. ... I really don't understand why so many people think that logging in as root when needed is such a bad thing, although I can certainly see a better way to accomplish what I needed to do. ... See my other post "Vote for new Ubuntu Feature---Let's try it again". ...
    (Ubuntu)
  • Re: Change Permissions on a new hard drive to allow
    ... new drive works fine from XP, but in Ubuntu I can only read. ... How do I change the permissions for a hard drive? ... sudo chmod -R a+rw * ... I'd advise changing the group to something other than "root". ...
    (Ubuntu)
  • Re: Change Permissions on a new hard drive to allow
    ... new drive works fine from XP, but in Ubuntu I can only read. ... How do I change the permissions for a hard drive? ... sudo chmod -R a+rw * ... I'd advise changing the group to something other than "root". ...
    (Ubuntu)
  • Re: [RFC] FUSE permission modell (Was: fuse review bits)
    ... >> root is denied all access. ... and the kernel checks the permission. ... The userspace can't enforce the permissions. ...
    (Linux-Kernel)
  • RE: Setting up NFS shares
    ... A client can be either a host or a client group. ... the appropriate permissions. ... Share Windows Folders by Using Server for NFS ... Click the NFS Sharing tab, and then click Share this folder. ...
    (microsoft.public.windows.file_system)