system-config-network as non-root[SOLVED?]

François Patte francois.patte at math-info.univ-paris5.fr
Sun Apr 15 09:16:12 UTC 2007


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

François Patte a écrit :
> Bonsoir,
> 
> I'd like to know if there is a way to allow non root user to use
> "system-config-network". On a laptop it is quite boring to always become
> root if you want to use lan interface, wifi interface or ppp interface....
> 

1- in  /etc/security/console.apps/system-config-network
	add the line: FALLBACK=true

When you start the graphical interface, there is third button: "Execute
without privileges" (Don't know the exact terminology, just translated
from French)


2- in /usr/share/system-config-network/netconf.py
	comment (with #) this paragraph:

if not os.access(NC_functions.getRoot(), os.W_OK):
   if os.getuid() != 0:
     from netconfpkg.gui import GUI_functions
               	GUI_functions.generic_error_dialog (_("Please
start 					system-config-network "
           			"with root permissions!\n"))
  sys.exit(10)

After that, when clicking on "Execute without privilege" button, you get
the config-network graphical interface.

Question: I don't know anything to python language, is there a better
way than commenting these lines?

Does anybody see some security issue?

Thanks
- --
François Patte
UFR de mathématiques et informatique
Université René Descartes
http://www.math-info.univ-paris5.fr/~patte
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFGIe1cdE6C2dhV2JURAsmmAJ4qzYIqzRWa+7yrR4jgiAGHTfY4vQCePCTt
ebbmECQRBlyCbXY4wOVkDD8=
=Uwg+
-----END PGP SIGNATURE-----




More information about the fedora-list mailing list