I'm trying to do a network backup of a drive. There are two machines in this process.
PC1:
- Distant machine with 2 hards sda and sdb
- sdb is the drive which needs backing up
- two users exist, root and user
PC2:
- machine I'm on
- working as user Alan, can go root when needed
I do the following on PC2:
sshfs root@PC1:/dev ~/Desktop/netdisk/
Mounts fine. I have sdb available in ~/Destkop/netdisk/. Next step:
sudo dd if=~/Destkop/netdisk/sdb | gzip -c > ~/Destkop/ddbackup/image.gz
Yields an error:
dd: opening `netdisk/sdb': Permission denied
When i check the permissions of sdb:
brw-rw---- 1 root disk 0, 0 Jan 3 10:47 sdb
Since i ssh-ed to PC1 as root@PC1 doesn't that mean that I have root access to files mounted as sshfs?
From this example it seems it doesn't, is there a concept here that I'm missing?