I installed Debian Lenny from scratch following the tutorial of Mario Pascucci.
I had to tune the system to compile propely both tools and binaries (i.e: using a specific version of GCC 3.4). Then when I compiled the kernel I configure it to include NFS support built-in (both server and client). After compile sucessfully I copied to MBWE and boot and logged in by SSH. I configured repositories and runned
mybook# apt-get install nfs-kernel-server nfs-common
then I created a directory /shares
mybook# mkdir /shares mybook# chown nobody.nogroup /shares mybook# chmod 775 /shares
then in /etc/exports I added this line
then run the exportfs command to reread the exports configuration
mybook# exportfs -a
Finish in MBWE. Now in my laptop I mounted the shared resource:
laptop$ sudo mount -t nfs -o defaults 192.168.0.100:/shares /mnt Password: laptop$ ls -l /mnt total 0 laptop$ ls / > /mnt/files #create 'files' into 'mnt' laptop$ ls -l /mnt total 3 -rw-rw-r-- 1 nobody nogroup 136 apr 3 09:40 files laptop$ ls / > /mnt/files #try to overwrite 'files' into 'mnt' -bash: /mnt/files: Permission denied laptop$ rm /mnt/files rm: remove write-protected regular file 'kk'? Y laptop$ ls -l /mnt total 0
The issue is that I can create files, I cannot overwrite files and I can remove files. I tried compile kernel with other options, compare versions of NFS, mount the MBWE shares in serveral computers but the results is the same.
Anyone have any idea of why is NFS punishing me with this?