LinuxQuestions.org
Help answer threads with 0 replies.
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 03-12-2014, 06:35 PM   #1
markosjal
LQ Newbie
 
Registered: Feb 2009
Posts: 6

Rep: Reputation: 0
NFS permissions issue, client user to server as root


Hello, I have been running Crystalbuntu (slimmed down ubuntu 12.04 for Apple TV 1 with XBMC) . Since xbmc runs as "root" user , files written by xbmc have owner root. I want to be able to maintain similar permissions whether files were written across network or local via xbmc. When I write files from a raspberry Pi , no matter what I try to do I can not seem to write files with owner "root" acroos network fron Raspberry Pi.

I have tried various options on client and server side and I can not seem to get it right

I want to force files written by user pi on client to write as root on server so all files folders and permissions are consistent

how must I do this?

my current server export
Code:
/home/atv/  *(rw,async,no_root_squash,no_subtree_check)
have tried also
Code:
/home/atv/  *(rw,async,no_root_squash,no_subtree_check,anonuid=0)


My client /etc/fstab has (maybe I need to remove user option?)
Code:
192.168.1.2:/home/atv/.xbmc/addons                /home/pi/.xbmc/addons               nfs     _netdev,defaults,user,auto,noatime,intr   0 0
192.168.1.2:/home/atv/.xbmc/userdata/addon_data   /home/pi/.xbmc/userdata/addon_data  nfs     _netdev,defaults,user,auto,noatime,intr   0 0
192.168.1.2:/home/atv/Documents                   /home/pi/Documents                  nfs     _netdev,defaults,user,auto,noatime,intr   0 0
192.168.1.2:/home/atv/Downloads                   /home/pi/Downloads                  nfs     _netdev,defaults,user,auto,noatime,intr   0 0
192.168.1.2:/home/atv/Databases                   /home/pi/Databases                  nfs     _netdev,defaults,user,auto,noatime,intr   0 0
192.168.1.2:/home/atv/Videos                      /home/pi/Videos                     nfs     _netdev,defaults,user,auto,noatime,intr   0 0
192.168.1.2:/home/atv/Pictures                    /home/pi/Pictures                   nfs     _netdev,defaults,user,auto,noatime,intr   0 0
192.168.1.2:/home/atv/Music                       /home/pi/Music                      nfs     _netdev,defaults,user,auto,noatime,intr   0 0
192.168.1.2:/home/atv/.xbmc/userdata              /home/pi/.xbmc/shareduserdata       nfs     _netdev,defaults,user,auto,noatime,intr   0 0
 
Old 03-17-2014, 04:59 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,893

Rep: Reputation: 163Reputation: 163
Do you try following option?
*(rw,all_squash,sync,no_subtree_check).
 
  


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
Not able to open display of remote server if client is user and server is root unclesamcrazy Linux - Newbie 16 07-22-2013 02:08 PM
USB hplip scanner - user permissions issue - only root can scan djeeke Linux - General 21 05-30-2011 04:00 AM
[SOLVED] NFS mount fails (times out): NFS server is in DMZ, NFS client is in intranet Hiroshi Linux - Networking 2 05-24-2010 11:22 AM
NFS Client Permissions whammack Linux - Networking 0 02-25-2007 07:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:30 PM.

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