LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-31-2007, 07:40 AM   #1
LinuxLiker
Member
 
Registered: Sep 2006
Location: Florida
Distribution: Ubuntu, Vector Linux, Mandriva
Posts: 81

Rep: Reputation: 15
Talking Need Root privileges while on regular user desktop


This is pretty basic but I've got a couple of downloaded files sitting on my desktop that I can't move because it's a regular desktop, and I'm not logged in as root. One item is a .ppd file that I want to put in a root level folder but when I try to move it there, I get a message that I don't have privileges to do so.
The second item is a folder from a self-extracting file that I started opening in a root console. When I left the root console, the folder was left on my regular desktop with a lock symbol on it -- again, I don't have privileges to move it.
I'm using Mandriva 2007 but I remember in older versions, you could log in as root (when starting a mandriva session) and navigate where you needed to do whatever. In the version I have when I try to log in as root I get a message saying "no root logins."
When I'm logged in as a regular user, if I'm doing some process -- such as adding a peripheral, upgrading a driver, etc... -- and Mandriva requires root privileges, it opens a dialog box asking for root's name and password and I insert them and then get to finish the process.
However, trying to move restricted folders or regular folders to a restricted area just gets me a warning that I don't have privileges with no place to insert the root name and password and continue what I'm doing.
Does anyone know how to deal with this -- forgive me if the answer is really simple.
Thanks.
 
Old 12-31-2007, 07:42 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Open a terminal, get root privileges with "su" (or "su -") and then just use mv to move files, or cp to copy them.
 
Old 12-31-2007, 07:46 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Open a terminal, type "su" to assume root powers, and move the files from there. (Or just change the permissions.)

You can also run any of the GUI applications as root by simply starting them from the terminal (after the "su"). Running any GUI as root, however, is a really bad idea.

Microsoft insulates you from the command-line (terminal), but Linux encourages and rewards you for using it. Once you learn the basics, many things are easier and faster.
 
Old 12-31-2007, 08:12 AM   #4
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Alternativly Alt & f2 type kdesu <app name>. Saves using the terminal to start apps with root privileges.
 
Old 12-31-2007, 08:27 AM   #5
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
I recommend trying not to use "su" (nowadays stands for 'switch user'). Use sudo and it's graphical "front-ends" like gksudo (or kdesu, if it is what I think it is) to execute commands with root privileges, and try to keep the configuration file sane. sudo should be used rather than su, because that way you can (should) configure what can be run as root (try to keep the amount as minimal as possible), and you don't have to use root password. You can even freeze root account, thus filling one potential security "hole".

In the graphical desktop you can just alt+f2 (or whatever shortcut brings the "Run" dialog up) and issue the graphical sudo command along with whatever you want to run. No need to type root password nor make root logins. And no need to use command line if you don't want to (I recommend learning it, but it's not a must if you dislike it).

sudo can be just as dangerous as using su all the time, or plain root login, but like everything else, it's up to you. With some thinking it's far more secure than typing in root password every now and then.
 
Old 12-31-2007, 08:37 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
When I open a terminal to do stuff requiring root powers, I normally enter many commands. "su" once saves typing in the long run.

Again, running any GUI app using sudo or its cousins is a very bad idea. (But I still do it on occasion...)

YMMV
 
Old 12-31-2007, 05:22 PM   #7
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
There is a root session for konqueror (fileManager), and you can access it from user with the menu along the top.

You need to login, as usual.

Then navigate to your home folder, and find .desktop.

you may move them or rename and change ownership from there.

Konsole also has a root session.(opens a new tab.)

I Can't say exactly where the address is because I broke my linux install last night.

regards, Glenn

Oh Yeah! Happy New YEAR!

Last edited by GlennsPref; 12-31-2007 at 05:24 PM. Reason: spelling and grama
 
  


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
Grant Configuring SUDO Root Privileges to Regular Users +Problem+ redir Fedora 2 02-26-2007 11:10 AM
Giving root privileges to another user BlackJackal Mandriva 5 10-19-2005 01:03 PM
Root privileges for user ar1 Linux - Security 2 01-07-2005 09:33 PM
User with root privileges ShakyJake Linux - Newbie 2 06-18-2004 12:12 PM
Given regular user root privileges clo99dx Linux - Newbie 6 06-05-2004 04:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 05:48 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