You are not logged in.

#1 2016-02-07 11:56:40

uhuu
Member
From: Estonia
Registered: 2010-11-22
Posts: 23

nfs all_squash not working locally

I have a server that shares a nfs share to the LAN and for its own services.

my /etc/exports

/media/asjad   10.0.0.*(all_squash,anonuid=99,anongid=99,rw,sync)  127.0.0.1(rw,sync,all_squash,anonuid=99,anongid=99)

cat passwd:

nobody:x:99:99:nobody:/:/usr/bin/nologin

cat group:

nobody:x:99:

fstab:

/mnt/andmeladu/asjad                                    /media/asjad    none            bind,defaults,nofail,x-systemd.requires=zfs-mount.service       0 0

When i'm trying to create a file locally in the server under mu normal user, i get "Permission denied" error. Creating the files with root permissions I get files with root ownership.  But doing so remotely from my laptob under mounted nfs share all files are created correctly with nobody:nobody ownership.

Any ideas?

Last edited by uhuu (2016-02-07 15:10:47)


Windows is not a virus, virus does something...

Offline

Board footer

Powered by FluxBB