strange nfs conversation
Peter Lieverdink
ubuntu at cafuego.net
Fri Sep 23 02:29:00 UTC 2005
Use nfs-user-server, install ugidd on both client and server machines.
Add map_daemon to the options in exports.
Done.
- P.
On Thu, 2005-09-22 at 18:57 -0700, Holiday wrote:
> Here's the story:
>
> I'm on a breezy laptop.
>
> In the other room, I have a FC2 server with this /etc/exports
>
> /home/stephen 192.168.0.101(sync)
> /mnt/windows 192.168.0.101(sync)
> /home/stephen 24.108.141.82(sync)
>
> I won't explain the two exports for /home/stephen unless you think I
> should.
>
> Ok so on my breezy laptop I do this from my user console:
>
> ~$ mkdir sroom
> stephen at ubuntu:~$ ls -l
> drwxr-xr-x 2 stephen stephen 4096 2005-09-20 20:16 Desktop
> drwxr-xr-x 2 stephen stephen 4096 2005-09-22 18:26 sroom
>
> Note that stephen owns sroom.
>
> Then I do this from a root console
>
> # mount sroom:/home/stephen /home/stephen/sroom
> root at ubuntu:/home/stephen# ls -l
> drwxr-xr-x 2 stephen stephen 4096 2005-09-20 20:16 Desktop
> drwx------ 93 500 500 12288 2005-09-21 07:38 sroom
>
> Huh? 500.500? 500 does not appear as a uid or guid in my user
> listings.
>
> But ok, I try from my user console:
> ~$ cd sroom
> bash: cd: sroom: Permission denied
>
> No surprise. Things are strange.
>
>
> Wait! There's more. Let's do this from my root console:
> # mkdir /home/stephen/sroom.windows
> # mount sroom:/mnt/windows /home/stephen/sroom.windows
> # ls -l
> drwxr-xr-x 2 stephen stephen 4096 2005-09-20 20:16 Desktop
> drwxr-xr-x 2 stephen stephen 4096 2005-09-22 18:26 sroom
> drwxrwxrwx 57 root root 32768 1969-12-31 16:00 sroom.windows
>
> and from my user console:
>
> $ cd sroom.windows
> $ ls
> <long listing of files deleted>
>
> Well! Maybe root has some magic. So with the root console
> in /home/stephen I do this:
>
> # umount sroom
> # rm -rf sroom
> # mkdir sroom
> # mount sroom:/home/stephen /home/stephen/sroom
> # ls -l
> drwxr-xr-x 2 stephen stephen 4096 2005-09-20 20:16 Desktop
> drwx------ 93 500 500 12288 2005-09-21 07:38 sroom
> drwxrwxrwx 57 root root 32768 1969-12-31 16:00 sroom.windows
>
> So? I'm perplexed. Any ideas?
Peter Lieverdink counter.li.org #108200 -37.8074, 144.9452 0x969F3F57
9662 1CB5 8E54 450D 2E12 9D7E 580E 2519 969F 3F57 cachaca 12:28:49 up
20:32 3 users load average: 2.17 1.28 0.76 Ubuntu 5.10 (Breezy Badger)
Linux 2.6.12-8-amd64-k8 x86_64
More information about the ubuntu-users
mailing list