LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 03-12-2009, 09:04 AM   #1
fedix
Member
 
Registered: Oct 2005
Location: Mpumalanga, South Africa
Distribution: Fedora / CentOS 5 / Ubuntu
Posts: 104

Rep: Reputation: 17
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.
 
Old 03-13-2009, 02:28 AM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
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.
 
Old 03-13-2009, 01:19 PM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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
 
Old 03-14-2009, 03:08 AM   #4
fedix
Member
 
Registered: Oct 2005
Location: Mpumalanga, South Africa
Distribution: Fedora / CentOS 5 / Ubuntu
Posts: 104

Original Poster
Rep: Reputation: 17
Question

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.
 
Old 03-14-2009, 03:17 AM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
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>.
 
Old 03-14-2009, 03:40 AM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Quote:
Originally Posted by fedix View Post
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
 
Old 03-14-2009, 03:42 AM   #7
fedix
Member
 
Registered: Oct 2005
Location: Mpumalanga, South Africa
Distribution: Fedora / CentOS 5 / Ubuntu
Posts: 104

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by lazlow View Post
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.
 
Old 03-14-2009, 02:01 PM   #8
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
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.
 
Old 03-20-2009, 12:20 PM   #9
fedix
Member
 
Registered: Oct 2005
Location: Mpumalanga, South Africa
Distribution: Fedora / CentOS 5 / Ubuntu
Posts: 104

Original Poster
Rep: Reputation: 17
Thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adept package installer not working if not launched by package manager iqbala Ubuntu 3 11-29-2008 06:32 AM
Package Installer tabasco_123 Linux - Software 2 09-26-2008 07:47 PM
Smart package installer pauljb1234 Linux - Desktop 5 02-13-2007 04:03 PM
fc5 and package installer Ammad Linux - General 1 10-16-2006 06:46 AM
mandrake 10.0 package installer dalesan Mandriva 3 09-01-2004 07:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration