LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author] [stats]
  From: Dan Kortschak <dan.kortschak@adelaide.edu.au>
  To  : <linuxsa@linuxsa.org.au>
  Date: Tue, 1 Apr 2003 08:30:19 +0930 (CST)

NFS all_squash option failing?

Hi All, I have just install a very nice incremental remote backup system
writen by Ole Nielsen at ANU
(http://datamining.anu.edu.au/~ole/work/software/backup/). In order to
make the system really easy to use I am using NFS to export the backup
directory as ro back to the client machine. However, I am unable to get
the nfs options all_squash and anonuid to squash the uids to the
appropriate value. Does anyone have an idea what is going on? Are low uids
protected?

To keep backups from different machines distinct there are dummy users
named for the machines that are backed up, so sunya (a client machine) is
a user on wokai (the backup server).

The backup directory on the backup server (wokai):
sunya@wokai:~$ ls -l
total 12
drwxr-xr-x    5 sunya    backup       4096 Mar 31 16:51 Backup.31Mar2003_16:50:35
drwxr-xr-x    5 sunya    backup       4096 Mar 31 19:06 Backup.31Mar2003_19:06:01
drwxr-xr-x    5 sunya    backup       4096 Apr  1 08:04 MOST_RECENT

The appropriate line of /etc/exports on the backup server:
/backup/sunya   sunya(ro,all_squash,anonuid=34)

Note uid 34 is user backup on Debian systems.

However, on the client (sunya):
# ll /backup
total 12
drwxr-xr-x    5 1001     backup       4096 Mar 31 16:51 Backup.31Mar2003_16:50:35
drwxr-xr-x    5 1001     backup       4096 Mar 31 19:06 Backup.31Mar2003_19:06:01
drwxr-xr-x    5 1001     backup       4096 Apr  1 08:04 MOST_RECENT

uid 1001 is sunya on wokai.


This problem does not break the backup system, however the glossy ease of
use part (having the backup images mounted) is not quite how I would like
it.

any help appreciated
cheers
Dan

-- 
_____________________________________________________________   .`.`o
                                                         o| ,\__ `./`r
  Dan Kortschak     kortschak at fuckmicrosoft.com       <\/    \_O> O
                                                          "|`...'.\
  Is a citizen subject to the laws of a criminal state?    `      :\
                                                                  : \

  See headers for PGP public key.

  By replying to this email you implicitly accept that your response
  may be forwarded to other recipients.


-- 
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.freenode.net
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author] [stats]
Return to the LinuxSA Mailing List Information Page