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

Re: Change root> normal user?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

linuxmaillists charter net wrote:
> How would I set up a GUI front end (for a command line executable
> that can only be run by root) so that a password dialog comes
> requesting the root password?

You could use consolehelper, which is what many of the fedora
system-config- programs use.  What program are you looking to run?
And if it's a command line program, why not use sudo or su?

If you plan to prompt the user for the root password, they can already
just use that to su to root and run the program.

If you use sudo, you don't have to give the user the root password,
you just edit the /etc/sudoers file to allow them to run the
particular command(s) you want and they enter their own password to
run them.

- -- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
======================================================================
A good programmer is one who looks both ways before crossing a one-way
street.
    -- Doug Linder

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iQFDBAEBAgAtBQJFEI3fJhhodHRwOi8vd3d3LnBvYm94LmNvbS9+dG16L3BncC90
bXouYXNjAAoJEEMlk4u+rwzj1lAH/0BiA/OmegPiVlC5X7tU1GnjJdKV+8h5cC6p
PR/lwIxx3QqazLTULUgr4DfmbQI7qYAHdBxkv7nANFRzt49ssF4ztvTxxd7s+kat
T0WmccyN460JCtiltNuf48MMI0bt88Oj1ymGh6peoiCFnMxO2K0m4jfD1khswYZb
z2Q//iMBKxWBjwxqIMkZJwZsjSRrSEr7ULci9uJgXT6tlcGsr4AeyR8qivHB4SiG
nBqHCLEZkgW0kpcbRKjS4hThfPkhYCfRIJ0rrKvF5QdWXDlvDkZ9uuHEt7rSM/Gj
U69LBv8WZhwRAL8Hn7h9TRQdO62uJw8+HMHBCRzDmb6yLga0SR4=
=Ezwg
-----END PGP SIGNATURE-----


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