[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: su : must be run from a terminal



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 users who need
> root perms to perform a specific task programmed into that script.  You need
> to think about security on this one though.  See 'man setuid' and 'man
> chmod' for more info.

Setuid doesn't work on scripts. You have to make the shell that runs
the script setuid... which you REALLY DON'T want to do!

-- 
Pigeon

Be kind to pigeons
Get my GPG key here: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x21C61F7F

Attachment: signature.asc
Description: Digital signature


Reply to: