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

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

 



-----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-----


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux