Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-12-2009, 09:04 AM
|
#1
|
Member
Registered: Oct 2005
Location: Mpumalanga, South Africa
Distribution: Fedora / CentOS 5 / Ubuntu
Posts: 104
Rep:
|
Package Installer running as priveleged user
I'm logged in as root and want to run Add/Remove Software (Package Installer) but get the message telling me
Code:
Running graphical applications as a privileged user should
be avoided for security reasons. Package management applications a
re security sensitive and therefore this application will n
ow close.
What the .... How must I install applications?
Surely the world is getting paranoid with all this hackers and viruses, because with every new version O/S, the security features gets more and more; up to the point that you can't fricken do and play around with your pc as you would.
Now also my selinux pops up for every little thing.
Aaaarg :-<
Last edited by fedix; 03-12-2009 at 09:59 AM.
|
|
|
03-13-2009, 02:28 AM
|
#2
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep: 
|
F10 is pretty serious about not being logged in as root (right or wrong). What they prefer you to do is to fire up the app (as a users) and then allow it to ask for the root password.
|
|
|
03-13-2009, 01:19 PM
|
#3
|
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153
|
If the app is a GUI thing, you can fire it up from a GUI terminal / konsole / xterm (which you are logged into as yourself) like this:
kdesu appname if running KDE
gtksu appname if running gnome
I am surprised your distro doesn't just have a GUI menu entry for "Your Package Manager", which when clicked, prompts you for the root password (which may be your PW if you are running one of the 'buntus). Mine has had this for years. Click, enter password, choose package, install, use it.
It is a very bad idea to run a GUI desktop as root. No arguments will be entered into 
|
|
|
03-14-2009, 03:08 AM
|
#4
|
Member
Registered: Oct 2005
Location: Mpumalanga, South Africa
Distribution: Fedora / CentOS 5 / Ubuntu
Posts: 104
Original Poster
Rep:
|
Thanks.
BTW,why I run GUI as root? Because I don't know how to run GUI apps as root (I do know su in console). So when I need to extract an archive, I get this unprivileged error every time. Consequently, its easier to just GUI in root.
|
|
|
03-14-2009, 03:17 AM
|
#5
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep: 
|
Unless you are trying to extract the archive in area that the user does not have write privileges, you can extract archives as a regular user.
You do understand the difference between su and su - (su space dash)?
Most gui apps can be started from a terminal as root by: su - <enter> give root password<enter> name of app<enter>.
|
|
|
03-14-2009, 03:40 AM
|
#6
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Quote:
Originally Posted by fedix
Thanks.
BTW,why I run GUI as root? Because I don't know how to run GUI apps as root (I do know su in console). So when I need to extract an archive, I get this unprivileged error every time. Consequently, its easier to just GUI in root.
|
gksudo
|
|
|
03-14-2009, 03:42 AM
|
#7
|
Member
Registered: Oct 2005
Location: Mpumalanga, South Africa
Distribution: Fedora / CentOS 5 / Ubuntu
Posts: 104
Original Poster
Rep:
|
Quote:
Originally Posted by lazlow
You do understand the difference between su and su - (su space dash)?
|
Maybe, I'm still a young Linux user. Then explain the difference. I use su<enter>password<enter> in konsole to do administrative things. But if I'm trying to install, for ex. a php in my web dir, or want to create folders there, I need root privileges. Many things I can do with konsole, but I don't have ALL the konsole commands to only use konsole, therefore I still use GUI.
|
|
|
03-14-2009, 02:01 PM
|
#8
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep: 
|
su gives you root power but with only the user's path. su - gives you root power and root's path. For the most part you are better off always using su -.
You can do anything using su - that you can do by logging in as root. If you do I as described in post #5 you can use all the gui apps via su -, without logging in as root.
|
|
|
03-20-2009, 12:20 PM
|
#9
|
Member
Registered: Oct 2005
Location: Mpumalanga, South Africa
Distribution: Fedora / CentOS 5 / Ubuntu
Posts: 104
Original Poster
Rep:
|
Thanks!
|
|
|
All times are GMT -5. The time now is 09:49 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|