Hi all,

I'm trying to configure a simple backup system but I'm stuck and I don't understand why I'm getting a "permission denied" message.
The machine I want to backup (linux.int.sw.ehu.es, 192.168.1.1) doesn't have any tape device so I would like to use a remote one (backup.int.sw.ehu.es, 192.168.1.2).
When for instance I execute the command "xfsdump -v 5 -f 192.168.1.2:/dev/st0 /root" I get the following:


xfsdump: RLIMIT_AS org cur 0xffffffffffffffff max 0xffffffffffffffff
xfsdump: RLIMIT_STACK org cur 0xffffffffffffffff max 0xffffffffffffffff
xfsdump: lowering stack size soft limit from 0xffffffffffffffff to 0x8000000
xfsdump: RLIMIT_STACK new cur 0x8000000 max 0xffffffffffffffff
xfsdump: RLIMIT_DATA org cur 0xffffffffffffffff max 0xffffffffffffffff
xfsdump: RLIMIT_FSIZE org cur 0xffffffffffffffff max 0xffffffffffffffff
xfsdump: RLIMIT_FSIZE now cur 0xffffffffffffffff max 0xffffffffffffffff
xfsdump: RLIMIT_CPU cur 0xffffffffffffffff max 0xffffffffffffffff
xfsdump: RLIMIT_CPU now cur 0xffffffffffffffff max 0xffffffffffffffff
xfsdump: INTGENMAX == 2147483647 (0x7fffffff)
xfsdump: UINTGENMAX == 18446744073709551615 (0xffffffffffffffff)
xfsdump: OFF64MAX == 9223372036854775807 (0x7fffffffffffffff)
xfsdump: OFFMAX == 9223372036854775807 (0x7fffffffffffffff)
xfsdump: SIZEMAX == 18446744073709551615 (0xffffffffffffffff)
xfsdump: INOMAX == 18446744073709551615 (0xffffffffffffffff)
xfsdump: TIMEMAX == 2147483647 (0x7fffffff)
xfsdump: SIZE64MAX == 18446744073709551615 (0xffffffffffffffff)
xfsdump: INO64MAX == 18446744073709551615 (0xffffffffffffffff)
xfsdump: UINT64MAX == 18446744073709551615 (0xffffffffffffffff)
xfsdump: INT64MAX == 9223372036854775807 (0x7fffffffffffffff)
xfsdump: UINT32MAX == 4294967295 (0xffffffff)
xfsdump: INT32MAX == 2147483647 (0x7fffffff)
xfsdump: INT16MAX == 32767 (0x7fff)
xfsdump: UINT16MAX == 65535 (0xffff)
xfsdump: getpagesize( ) returns 16384
xfsdump: parent pid is 29791
xfsdump: effective user id is 0
xfsdump: using file dump (drive_simple) strategy
xfsdump: ERROR: unable to open 192.168.1.2:/dev/st0: Permission denied
xfsdump: main.c: 498: mlog_exit called: exit_code: ERROR return: INIT_ERROR (could not initialise subsystem)
xfsdump: Dump Status: ERROR

What I have done so far:

1. Install rsh on the linux host and rsh-server on the backup host.

2. Create the file /root/.rhosts on the backup host:
192.168.1.1 root
linux.int.sw.ehu.es root

3. Add the lines rsh, rlogin and rexec to the /etc/securetty file of the backup host.

4. Add to the /etc/hosts.equiv file of the backup host the lines:
192.168.1.1
linux.int.sw.ehu.es

5. Edit the file /etc/default/rmt.
DEBUG=/tmp/rmt.debug
USER=root
ACCESS=root 192.168.1.1 /dev/st0
ACCESS=root linux.int.sw.ehu.es /dev/st0

6. The rexec, rlogin and rsh services are running.

7. Content of the /tmp/rmt.debug file of the backup host:
rmt: peername 192.168.1.1
rmt: peername linux.int.sw.ehu.es
rmtd: O /dev/st0 0
rmtd: E 13 (Permission denied)
)


I suppose I have forgotten something but I don't know what. Perhaps it has to be with pam but I'm not sure. Any clue will be appreciated.
Thanks in advance for ypur answer.