You are not logged in.

#1 2006-07-18 22:55:05

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Best way to create unpriviledged user for rsyncing backups?

I'm wanting to use <code>rsync</code> or <code>ssh</code> with RSA authentication in order to automate moving backups  for multiple servers to a centralized/dedicated machine.  I'd like to know what you guys would recommend as far as creating a user to do that job on each of the servers...they won't ever have to have shell access or anything, but just enough priviledges to run the cron job itself.

I've read around a few places, and one suggested something like this:

groupadd -g 3500 backup
useradd -u 3500 -s /bin/false -d /backup -m -c "backup" -g backup backup

Does the gui/uid number really matter?  Is there anything else I'll have to worry about?  After that, I just planned on doing a <code>su -m backup</code> and then generating the keys.  Any help/suggestions would be greatly appreciated...

Offline

#2 2006-07-19 11:00:26

alexpnx
Member
From: Nicosia, Cyprus
Registered: 2006-06-10
Posts: 46

Re: Best way to create unpriviledged user for rsyncing backups?

you should also check this out:
http://www.jdmz.net/ssh/

Offline

#3 2006-07-19 21:00:29

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: Best way to create unpriviledged user for rsyncing backups?

Thanks for the link...I'll probably just go ahead and mess around with it.  It's not too difficult to make changes later.

Offline

Board footer

Powered by FluxBB