Testing this on Gutsy:
$ cat /proc/fs/cifs/LinuxExtensionsEnabled 1 $ sudo mount -t cifs //localhost/test /mnt/ -o username=ivoks,uid=nobody,gid=nogroup $ ls -dl /mnt/ drwxr-xr-x 2 nobody nogroup 0 2007-08-04 17:03 /mnt/ $ sudo umount /mnt/ $ sudo mount -t cifs //localhost/test /mnt/ -o username=ivoks,uid=root,gid=root $ ls -dl /mnt/ drwxr-xr-x 2 root root 0 2007-08-04 17:03 /mnt/
Is that what you had in mind?
Testing this on Gutsy:
$ cat /proc/fs/ cifs/LinuxExten sionsEnabled ivoks,uid= nobody, gid=nogroup ivoks,uid= root,gid= root
1
$ sudo mount -t cifs //localhost/test /mnt/ -o username=
$ ls -dl /mnt/
drwxr-xr-x 2 nobody nogroup 0 2007-08-04 17:03 /mnt/
$ sudo umount /mnt/
$ sudo mount -t cifs //localhost/test /mnt/ -o username=
$ ls -dl /mnt/
drwxr-xr-x 2 root root 0 2007-08-04 17:03 /mnt/
Is that what you had in mind?