[opensuse] Using sudo for everything



Hi,

I want to split normal root user from batch (cron) jobs, so I created a new
user (TJOBS00) with the same group and rights. I also modified sudo so the
new user can execute any command. Using daily cron, I get this errors:

SCRIPT: output (stdout && stderr) follows

error: failed to rename /var/lib/mysql/mysqld.log
to /var/lib/mysql/mysqld.log.1: Permission denied
error: error creating output file /var/lib/mysql/mysqld.log: Permission denied
error: error opening /var/log/samba/log.smbd: Permission denied
error: error setting owner of /var/log/wtmp-20070111: Operation not permitted
error: error creating state file /var/lib/logrotate.status: Permission denied
SCRIPT: logrotate
------- END OF OUTPUT

mkdir: `/var/adm/backup/rpmdb': Permission denied
find: /etc/sysconfig/network/providers: Permission denied
cat: /etc/sysconfig/dhcpd: Permission denied
cat: /etc/sysconfig/collectd: Permission denied
cat: /etc/sysconfig/network/update-log: Permission denied
cat: /etc/sysconfig/network/update-log.debug: Permission denied
ERROR!! can not backup sysconfig files
to /var/adm/backup/rpmdb.
Maybe there is not enough disk space.
rm: cannot remove `/var/adm/backup/rpmdb/sysconfig-20070111.tar.gz':
Permission denied
SCRIPT: suse.de-backup-rc.config
------- END OF OUTPUT

Is there a way to use sudo for all commands automatically?

TIA,
--
Flextron - Linux user: 306877
-- GPG keyID: 0xE0EA0B24 --
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • [opensuse] Using sudo for everything
    ... I want to split normal root user from batch (cron) jobs, ... I also modified sudo so the ... SCRIPT: ... Is there a way to use sudo for all commands automatically? ...
    (SuSE)
  • Re: Perl Script as a Cron Job
    ... I am running PING from the package Net, can u tell me where can i find the ... logs of cron jobs as because with that i will be able to check the ... Regarding permissions i am running the same script ... run commands using their fully qualified path names. ...
    (perl.beginners)
  • RE: [SLE] Updating antivir via cron results in failure
    ... My antivir_update script works OK, ... sure cron thinks the job ran OK. ... Check the headers for your unsubscription address For additional commands ... Also check the archives at http://lists.suse.com ...
    (SuSE)
  • Re: [SLE] script in cron.daily
    ... > I've got this script in cron.daily. ... However when run by cron, ... This applies to all commands run in cron. ... SuSE user since 1998 ...
    (SuSE)
  • =?ISO-8859-1?Q?New_System_Command_Script_Facility?=
    ... I'm currently finished writing a new replacement command script processor ... (at least that RACF thinks so, and better support for non-RACF sites). ... The IF-type commands now have ELSE processing ... non-scroll highlighted console message and BEEP until a specific JOB or TASK ...
    (bit.listserv.ibm-main)