[conspire] Permissions for a script

James Sundquist sundquistjames at gmail.com
Tue Apr 17 12:03:32 PDT 2012

Hey all,

  I'm looking for clarification.  I wrote a script for system upgrades with
755 permissions and wondering how best to improve it.  How do I not use
sudo on any of the commands?

# Backup current mirrorlist
sudo mv /etc/pacman.d/mirrorlist mv/etc/pacman.d/mirrorlist.SAF

# Find top 6 local mirrors and save as mirrorlist
sudo reflector -l "United States" 6 rank --save /etc/pacman.d/mirrorlist

# Re-sync mirrors and upgrade system just like you would with apt-get
sudo pacman -Syyu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://linuxmafia.com/pipermail/conspire/attachments/20120417/e60cd200/attachment.html>

More information about the conspire mailing list