26.10.2012 Views

SUSE LINUX Documentation - Index of

SUSE LINUX Documentation - Index of

SUSE LINUX Documentation - Index of

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

78 Start-Up<br />

superuser<br />

Permits all rug commands except user management and settings, which must be<br />

done locally.<br />

To give a user permission to update the system, use the command rug ua<br />

username upgrade. Replace username with the name <strong>of</strong> the user. To revoke the<br />

privileges <strong>of</strong> a user, use command rug ud username. To list users with their rights,<br />

use rug ul.<br />

To change the current privileges <strong>of</strong> a user, use rug ue username. Replace username<br />

with name <strong>of</strong> the desired user. The edit command is interactive. It lists privileges <strong>of</strong> the<br />

selected user and the <strong>of</strong>fers you a prompt. Enter the plus (+) or minus (-) symbol and<br />

the name <strong>of</strong> the privilege then press Enter . For example, to permit the user to delete<br />

s<strong>of</strong>tware, enter +remove. To save and quit, press Enter on a blank line.<br />

2.12.2 Scheduling Updates<br />

Using rug, the system can be updated automatically, for example, with scripts. The<br />

simplest example is the fully automatic update. To do this, as root configure a cron<br />

job that executes rug up -y. The up -y option downloads and installs the patches<br />

from your catalogs without confirmation.<br />

However, you may not want the patches installed automatically. Instead, you may want<br />

to retrieve the patches and select the patches for installation at a later time. To download<br />

patches only, use the command rug up -dy. The up -dy option downloads the<br />

patches from your catalogs without confirmation and saves them to the rug cache. The<br />

default location <strong>of</strong> the rug cache is /var/cache/redcarpet.<br />

2.12.3 Configuring rug<br />

rug comes with many preferences to provide the update functionality in different network<br />

configurations. To list the preferences that may be set, use rug get. To set a preference<br />

variable, enter rug set. For example, adjust settings if you need to update your system,<br />

but the computer is behind a proxy server. Before downloading updates, send your<br />

username and password to the proxy server. To do so, use the commands:<br />

rug set proxy-url url_path<br />

rug set proxy-username name<br />

rug set proxy-password password

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!