Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Installation - Getting started with Red Hat Linux
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Launcher

Launcher

2004-12-28       - By Rick Stevens

 Back
Reply:     1     2     3     4     5  

brad.mugleston@(protected) wrote:
> How does one set up a new launcher so that it ask's for ROOT's
> password first?  I want to su to root before I run a program and
> can't figure it out.

It's a bit convoluted.  First, you must create a file with the same
name as the application you want in /etc/security/console.apps.  In it,
you should have lines similar to:

  USER=root
  PROGRAM=/path/to/program/to/run
  SESSION=true

So, for a program called "fnork" in /usr/local/bin, create an
/etc/security/console.apps/fnork file and have it contain:

  USER=root
  PROGRAM=/usr/local/bin/fnork
  SESSION=true

Next, you must enter create another file in /etc/pam.d that has the
same name (in this case, /etc/pam.d/fnork) that contains the PAM
authentication information.  For example:

  #%PAM-1.0
  auth       sufficient   pam_rootok.so
  auth       required     pam_stack.so service=system-auth
  session    required     pam_permit.so
  session    optional     pam_xauth.so
  account    required     pam_permit.so

Then you can create your launcher using the GUI stuff.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
- Rick Stevens, Senior Systems Engineer     rstevens@(protected) -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-  Memory is the second thing to go, but I can't remember the first! -
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --

__ ____ ____ ____ ____ ____ ____ ____ ____ ____
Redhat-install-list mailing list
Redhat-install-list@(protected)
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request@(protected)
Subject: unsubscribe

Earn $52 per hosting referral at Lunarpages.