SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Permissions problem when backing up across LAN
Author Message
Post Permissions problem when backing up across LAN 
I am trying to backup my wife's /home directory on her laptop to her /home on
my desktop across our home LAN. Both systems are running openSUSE linux 11.2.
Her documents transfer OK, but I'm getting 'Permission denied' errors from
rsync on some of the hidden files, in particular, the thunderbird/.../Mail
folder.

For example:

rsync: opendir "/.adobe" (in toshiba) failed: Permission denied (13)
rsync: opendir "/.cache" (in toshiba) failed: Permission denied (13)
rsync: opendir "/.config/gtk-2.0" (in toshiba) failed: Permission denied (13)
rsync: opendir "/.dbus" (in toshiba) failed: Permission denied (13)
rsync: opendir "/.gconf" (in toshiba) failed: Permission denied (13)
rsync: opendir "/.gconfd" (in toshiba) failed: Permission denied (13)
rsync: opendir "/.gnome2" (in toshiba) failed: Permission denied (13)
[...]
rsync: send_files failed to open "/.Xauthority" (in toshiba): Permission
denied (13)
rsync: send_files failed to open "/.bash_history" (in toshiba): Permission
denied (13)
rsync: send_files failed to open "/.directory" (in toshiba): Permission denied
(13)
rsync: send_files failed to open "/.dmrc" (in toshiba): Permission denied (13)
rsync: send_files failed to open "/.esd_auth" (in toshiba): Permission denied
(13)
rsync: send_files failed to open "/.pulse-cookie" (in toshiba): Permission
denied (13)
rsync: send_files failed to open "/.recently-used" (in toshiba): Permission
denied (13)

Rsnapshot is running as root on my desktop machine, and the rsnapshot.conf
file contains the following lines:

[...]
###############################
### BACKUP POINTS / SCRIPTS ###
###############################

# LOCALHOST
backup hilscomputer::toshiba localhost/
#backup /etc/ localhost/
[...]

The rsync daemon is running on her laptop (hilscomputer) and the rsyncd.conf
contains:

gid = users
read only = true
use chroot = true
transfer logging = true
log format = %h %o %f %l %b
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
#hosts allow = trusted.hosts
slp refresh = 300
use slp = false

[toshiba]
path = /home/hilary
comment = Hilary's home on her Toshiba laptop
#auth users = bob,hilary
read only = false

I'd be grateful for any suggestions, please.

Bob
--
Registered Linux User #463880 FSFE Member #1300
GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E
openSUSE 11.2, Kernel 2.6.31.12-0.1-desktop, KDE 4.3.5
Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9600GT

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post Permissions problem when backing up across LAN 
On Mon, 1 Mar 2010, Bob Williams wrote:

I am trying to backup my wife's /home directory on her laptop to her /home on
my desktop across our home LAN. Both systems are running openSUSE linux 11.2.
Her documents transfer OK, but I'm getting 'Permission denied' errors from
rsync on some of the hidden files, in particular, the thunderbird/.../Mail
folder.

For example:

rsync: opendir "/.adobe" (in toshiba) failed: Permission denied (13)
rsync: opendir "/.cache" (in toshiba) failed: Permission denied (13)
rsync: opendir "/.config/gtk-2.0" (in toshiba) failed: Permission denied (13)
rsync: opendir "/.dbus" (in toshiba) failed: Permission denied (13)
rsync: opendir "/.gconf" (in toshiba) failed: Permission denied (13)
rsync: opendir "/.gconfd" (in toshiba) failed: Permission denied (13)
rsync: opendir "/.gnome2" (in toshiba) failed: Permission denied (13)
[...]
rsync: send_files failed to open "/.Xauthority" (in toshiba): Permission
denied (13)
rsync: send_files failed to open "/.bash_history" (in toshiba): Permission
denied (13)
rsync: send_files failed to open "/.directory" (in toshiba): Permission denied
(13)
rsync: send_files failed to open "/.dmrc" (in toshiba): Permission denied (13)
rsync: send_files failed to open "/.esd_auth" (in toshiba): Permission denied
(13)
rsync: send_files failed to open "/.pulse-cookie" (in toshiba): Permission
denied (13)
rsync: send_files failed to open "/.recently-used" (in toshiba): Permission
denied (13)


Looks like you don't have privileges to access these files. How is your
ssh connection set up? Do you ssh to the root or your wife's account on
the laptop or just another user?

Freddie

Rsnapshot is running as root on my desktop machine, and the rsnapshot.conf
file contains the following lines:

[...]
###############################
### BACKUP POINTS / SCRIPTS ###
###############################

# LOCALHOST
backup hilscomputer::toshiba localhost/
#backup /etc/ localhost/
[...]

The rsync daemon is running on her laptop (hilscomputer) and the rsyncd.conf
contains:

gid = users
read only = true
use chroot = true
transfer logging = true
log format = %h %o %f %l %b
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
#hosts allow = trusted.hosts
slp refresh = 300
use slp = false

[toshiba]
path = /home/hilary
comment = Hilary's home on her Toshiba laptop
#auth users = bob,hilary
read only = false

I'd be grateful for any suggestions, please.

Bob
--
Registered Linux User #463880 FSFE Member #1300
GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E
openSUSE 11.2, Kernel 2.6.31.12-0.1-desktop, KDE 4.3.5
Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9600GT

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post Permissions problem when backing up across LAN 
On Monday 01 Mar 2010 10:40:33 Freddie wrote:
Looks like you don't have privileges to access these files. How is your
ssh connection set up? Do you ssh to the root or your wife's account on
the laptop or just another user?

Freddie

Thanks, Freddie,

The learning curve steepens Wink

My user on the desktop has put his keys into my user ~/.ssh/authorized_keys on
her machine, so I guess that's what's being used.

Do I just need to copy those keys to her ~/.ssh folder or is it more
complicated? Where does root keep her authorized_keys?

Puzzled,

Bob
--
Registered Linux User #463880 FSFE Member #1300
GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E
openSUSE 11.2, Kernel 2.6.31.12-0.1-desktop, KDE 4.3.5
Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9600GT

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post Permissions problem when backing up across LAN 
On Mon, 1 Mar 2010, Bob Williams wrote:

On Monday 01 Mar 2010 10:40:33 Freddie wrote:
Looks like you don't have privileges to access these files. How is your
ssh connection set up? Do you ssh to the root or your wife's account on
the laptop or just another user?

Freddie

Thanks, Freddie,

The learning curve steepens Wink

My user on the desktop has put his keys into my user ~/.ssh/authorized_keys on
her machine, so I guess that's what's being used.

Do I just need to copy those keys to her ~/.ssh folder or is it more
complicated? Where does root keep her authorized_keys?


I think you can just move/copy the key from your user on the laptop's
.authorized_keys file and append them to hers. Alternatively you can use
the ssh-copy-id to copy your keys from your desktop to her laptop:

ssh-copy-id -i ~/.ssh/id_rsa.pub your_dear_wife < at > laptop

That will allow you to use ssh to connect to her user on the laptop. To
tell rsnapshot to use this account change all backup lines in
/etc/rsnapshot.conf from

backup you < at > laptop:/path/to/backup/in/wifes/home/ laptop/

to something like

backup your_dear_wife < at > laptop:/path/to/backup/in/wifes/home/ laptop/

Hopefully this will help unpuzzle you somewhat.

Freddie

Puzzled,

Bob
--
Registered Linux User #463880 FSFE Member #1300
GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E
openSUSE 11.2, Kernel 2.6.31.12-0.1-desktop, KDE 4.3.5
Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9600GT


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post Permissions problem when backing up across LAN 
On Mon, 2010-03-01 at 10:22 +0000, Bob Williams wrote:
I am trying to backup my wife's /home directory on her laptop to her /home on
my desktop across our home LAN. Both systems are running openSUSE linux 11.2.
Her documents transfer OK, but I'm getting 'Permission denied' errors from
rsync on some of the hidden files, in particular, the thunderbird/.../Mail
folder.

For example:

rsync: opendir "/.adobe" (in toshiba) failed: Permission denied (13)
[...]

The rsync daemon is running on her laptop (hilscomputer) and the rsyncd.conf
contains:

gid = users
read only = true
use chroot = true
transfer logging = true
log format = %h %o %f %l %b
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
#hosts allow = trusted.hosts
slp refresh = 300
use slp = false

[toshiba]
path = /home/hilary
comment = Hilary's home on her Toshiba laptop
#auth users = bob,hilary
read only = false

It seems that the uid under which the daemon is running does not have
access to all the source files. If the daemon is started as root, it
will change to nobody by default, and you should override that with a
"uid" parameter in the rsyncd.conf.

--
Matt


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post Permissions problem when backing up across LAN 
On Tuesday 02 Mar 2010 07:32:31 Matt McCutchen wrote:
On Mon, 2010-03-01 at 10:22 +0000, Bob Williams wrote:
I am trying to backup my wife's /home directory on her laptop to her
/home on my desktop across our home LAN. Both systems are running
openSUSE linux 11.2. Her documents transfer OK, but I'm getting
'Permission denied' errors from rsync on some of the hidden files, in
particular, the thunderbird/.../Mail folder.

For example:

rsync: opendir "/.adobe" (in toshiba) failed: Permission denied (13)

[...]

The rsync daemon is running on her laptop (hilscomputer) and the
rsyncd.conf contains:

gid = users
read only = true
use chroot = true
transfer logging = true
log format = %h %o %f %l %b
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
#hosts allow = trusted.hosts
slp refresh = 300
use slp = false

[toshiba]
path = /home/hilary
comment = Hilary's home on her Toshiba laptop
#auth users = bob,hilary
read only = false

It seems that the uid under which the daemon is running does not have
access to all the source files. If the daemon is started as root, it
will change to nobody by default, and you should override that with a
"uid" parameter in the rsyncd.conf.

Thanks. Yes, I've got it sorted now. The other problem was not having my
wife's ssh keys set up properly.

Bob
--
Registered Linux User #463880 FSFE Member #1300
GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E
openSUSE 11.2, Kernel 2.6.31.12-0.1-desktop, KDE 4.3.5
Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9600GT

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post Permissions problem when backing up across LAN 
On Tue, 2010-03-02 at 08:49 +0000, Bob Williams wrote:
On Tuesday 02 Mar 2010 07:32:31 Matt McCutchen wrote:
It seems that the uid under which the daemon is running does not have
access to all the source files. If the daemon is started as root, it
will change to nobody by default, and you should override that with a
"uid" parameter in the rsyncd.conf.

Thanks. Yes, I've got it sorted now. The other problem was not having my
wife's ssh keys set up properly.

You can use either a daemon (as you originally tried) or ssh. I'm not
sure why Freddie assumed you wanted to use ssh. If you use a daemon,
you don't need ssh keys.

--
Matt


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB