SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
What is the best way to backup /var/logs
Author Message
Post What is the best way to backup /var/logs 
I hate running any script as Root.. so what would be the best way to
rsync /var/logs/ with a normal user? I guess i could make the log
files world readable.. but still don't want to do that..

Any ideas?

thanks!


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post What is the best way to backup /var/logs 
On Thursday 13 July 2006 12:00, Pigeon wrote:
I hate running any script as Root.. so what would be the best way to
rsync /var/logs/ with a normal user? I guess i could make the log
files world readable.. but still don't want to do that..

Any ideas?

what is with sudo?
indirect it use root but you can say which directories and which commands are allowed and which not.

MFG
Michael


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post What is the best way to backup /var/logs 
On Thu, Jul 13, 2006 at 06:00:51AM -0400, Pigeon wrote:

I hate running any script as Root.. so what would be the best way to
rsync /var/logs/ with a normal user? I guess i could make the log
files world readable.. but still don't want to do that..

You could write a setuid wrapper around rsnapshot (or set it to be
setuid root if your OS allows setuid scripts) if your concern is about
the *user* being root as opposed to the process being root.

Or if you don't want to run processes with uid 0, then how about putting
your rsnapshot user into appropriate groups (wheel, mail, whatever other
groups own your log files).

--
David Cantrell | http://www.cantrell.org.uk/david

comparative and superlative explained:

<Huhn> worse, worser, worsest, worsted, wasted


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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