Re: su : must be run from a terminal

2004-11-08 Thread Ben Hutchings
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

Re: su : must be run from a terminal

2004-11-04 Thread Pigeon
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

RE: su : must be run from a terminal

2004-11-03 Thread Gilbert, Joseph
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

Re: su : must be run from a terminal

2004-11-03 Thread Martin Fluch
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