dear all,

based on sandip's excellent suggestion on using sudo instead of setuid, i
read through the man pages of sudo, sudoers, visudo.

***
i then created the following entries in the sudoers file, using visudo:

# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#

# Host alias specification

# User alias specification
User_Alias      FIRESTARTERS = niyam

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL) ALL
FIRESTARTERS    =(root) NOPASSWD: /usr/bin/firestarter
***

that second-last line, root     ALL=(ALL) ALL generates an error in
visudo when i quit. but does not generate any error if i comment out the
last line.

what could be wrong.

meanwhile, have tested and verified separately that /usr/bin/firestarter
will launch firestarter after prompting me normally for the root password.

so once the above sudoers file can be edited correctly, i suppose i just
have to add the relevant sudo command in rc.local . . .

which brings me to point two:

i decided to test the rc.local file with a command that works fine
anywhere. so i added the simple command 'kmail' in the rc.local file, and
logged out and logged-in, and even rebooted and logged in, but kmail did
not auto-run.

any suggestions?
LL

_______________________________________________
ilugd mailing list
[EMAIL PROTECTED]
http://frodo.hserus.net/mailman/listinfo/ilugd

Reply via email to