Run a program as a different user
From NewbieDOC
- Chris Lale
- chrislale AT users DOT berlios DOT de
Go to NewbieDOC index
Revision History
Revision 1.0 | 30th January 2006 | Revised by Chris Lale | ||||||||||
Initial release. | ||||||||||||
| ||||||||||||
Revision 1.1 | 22nd November 2007 | Revised by Chris Lale | ||||||||||
Modified to include Revision History, Abstract and Appendix for Licence, so that a stable version can be included in the "newbiedoc" package. | ||||||||||||
Help with using su, gksu and gksuexec - a guide for Debian newbie users and others.
1 Why switch user?Sometimes, you will want to run a program user root. Some programs will only run if you are user root. Switching user enables you to log in as a normal, under-privileged user and run a particular program as root. Warning: Avoid logging in as user root. Doing so would give all programs and processes complete access to the whole system. You could do a lot of damage accidentally and become vulnerable to a malicious attack. Switch user instead. 2 Running a GUI program as user rootSome desktops have 2.1 Gnome
(Requires gnomesu to be installed) 2.2 KDE
(Requires kdesu to be installed) 2.3 X Desktop without a menu (generic)Issue the $ gksu name of program 3 Running a commandline program as user rootIssue the $ su password: (enter root password here) # name of program When you have finished, close the program, then exit from user root at the commandline. # exit $
4 Appendix A: LicenceCopyright (c) 2006-2007 Chris Lale. chrislale AT users DOT berlios DOT de
Go to NewbieDOC index |