LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 08-29-2005, 02:38 AM   #1
micha
Member
 
Registered: Sep 2003
Location: Germany
Distribution: Ubuntu 8.04
Posts: 33

Rep: Reputation: 15
Only limited writing access on FAT via NFS


I am trying to connect a windows partition from my linux client via NFS. The partition has been sucessfully exported by the server which is a double-boot-PC. AT the moment I am able to copy files from the FAT to the Linux box and furthermore I can delete files on the FAT and create directories there without problems.

The only difficulty I have is that when I try to copy files from the Linux client onto the FAT. Then I receive "cp: file ,,/mnt/nfs/micha/test/testfile.jpg" cannot be created: Operation not permitted". Nevertheless an empty file has been established and when I try copying again the file is transfered correctly.

Until yet I have played with several exporting options in /etc/exports like "all_squash", "no_root_squash", "rw" etc.

In my fstab I have
192.168.0.2:/home/micha/pix /mnt/nfs nfs rsize=8192,wsize=8192,user,soft,noauto 0 0 and I mount simply with "mount /mnt/nfs"

Is there anybody around who has sucessfully mounted a FAT via NFS with full write access?

Thanks for helping me.
Micha
 
Old 10-30-2005, 05:19 PM   #2
quarry_06
Member
 
Registered: Oct 2004
Posts: 77

Rep: Reputation: 15
Im having exactly the same problem. anyone can help?!
 
Old 10-31-2005, 02:37 AM   #3
micha
Member
 
Registered: Sep 2003
Location: Germany
Distribution: Ubuntu 8.04
Posts: 33

Original Poster
Rep: Reputation: 15
Meanwhile I found a solution:

Establish a new group on the server. This group should use the FAT-Partition. E.g. vfat-user (GID=500).

Insert this GID and a valid UID in your server fstab (e.g. UID=1000 and GID=v-fat-user).

Than export your FAT in /etc/exports with the options "all_squash,rw,async,anonuid=1000,anongid=500". anonuid and anongid should refer to the parameter in your server fstab. They are used for mapping the NFS access.

In your client fstab no especial entrys are necessary. In my I have 192.168.0.1:/home/micha /mnt/nfs nfs rsize=8192,wsize=8192,user,soft,bg,noauto 0 0

With this solution several users can access the server FAT. If you need only one user access you can resign anonuid, anongid and all_squash.

Have fun
micha
 
  


Reply



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
limited internal ip access saugato Linux - Security 3 07-20-2005 08:02 AM
Limited User Access Jakeh2k1 Red Hat 1 06-07-2005 07:03 AM
writing a file to a FAT partition Cman Programming 8 09-21-2004 04:25 PM
Writing to my fat partition fuzzai Linux - General 6 04-20-2004 10:31 AM
ssh limited access macadam Linux - Newbie 7 12-23-2003 01:06 PM

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

All times are GMT -5. The time now is 06:16 AM.

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