Gilbert, Joseph wrote:
There are two other standard ways to have scripts run with root privileges.
1) For automated tasks, schedule it in root's crontab. 'man crontab' for
more info
2) Use setuid for scripts or programs that are to be run by users who need
root perms to perform a specific task pro
On Wed, Nov 03, 2004 at 03:09:35PM -0800, Gilbert, Joseph wrote:
> There are two other standard ways to have scripts run with root privileges.
>
> 1) For automated tasks, schedule it in root's crontab. 'man crontab' for
> more info
>
> 2) Use setuid for scripts or programs that are to be run by
ammed into that script. You need
to think about security on this one though. See 'man setuid' and 'man
chmod' for more info.
Joe
-Original Message-
From: Martin Fluch [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 1:39 AM
To: [EMAIL PROTECTED]
Subject: R
Hi!
From what it looks to me you should consider using sudo for your task.
There you can allow in a very detailed way certain commands to be executed
without giving a password. Hardcoding the root password into a script as
you try seems to me very risky...
- Martin
On Wed, 3 Nov 2004, STEPHANE
4 matches
Mail list logo