Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 09-21-2008, 08:24 PM   #1
Senior Member
Registered: Apr 2006
Distribution: MX (desktop: XFCE 4)
Posts: 2,166

Rep: Reputation: 77
why can't root level access do everything root account can do?

I noticed, not for the first time, that there are some operations that root level access isn't good enough for; I apparently musy be in the root account to do them.

For instance, I was just trying to copy some files from /home on my current distro, MEPIS 7, to /home on my PCLOS partition, and even as root--I was in the superuser Konqueror profile--I wasn't allowed to. Only once logged into the root account could I do it. Why? And can I change that?
Old 09-21-2008, 08:29 PM   #2
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 32
I dunno how the superuser account works in Konqueror, but it may be easier to just use the 'su' command in a regular terminal and then use the 'cp' command to copy things:
# or
su - # if the above doesn't work

# then
cp <file or directory location> <file or directory destination>
reading the man pages on either one of those commands will help.
Old 09-21-2008, 08:47 PM   #3
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 253Reputation: 253Reputation: 253
Use sudo, don't su and don't login as root unless you completely have to in case of some disaster or recovery attempt.
Old 09-21-2008, 10:26 PM   #4
Senior Member
Registered: Apr 2006
Distribution: MX (desktop: XFCE 4)
Posts: 2,166

Original Poster
Rep: Reputation: 77
What if I don't feel like using the command prompt? I have to get over it? I don't know how to sudo anything in Konqueror or elsewhere in the GUI. I thought using the superuser profile in Konqueror would take care of that for me; it didn't, at least not for what I tried to do.
Old 09-21-2008, 11:00 PM   #5
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
In a terminal, "su" gives you root powers, but not root's environment. Thus, some commands might not be in PATH.
To get root's environment, use "su -".
Old 09-21-2008, 11:06 PM   #6
Senior Member
Registered: Apr 2006
Distribution: MX (desktop: XFCE 4)
Posts: 2,166

Original Poster
Rep: Reputation: 77
Thanks, those two posts answered my question.

Last edited by newbiesforever; 09-22-2008 at 11:49 AM.
Old 09-22-2008, 10:02 AM   #7
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
I would be wary of staying in root for too long. Generally some commands alias's maybe missing as stated above but really the safer way is to stick with sudo and just recreate or copy the alias's you want over... su - doesn't automatically log you out after say 5 minutes unlike sudo what if not used for 5 minutes will re-request the password, so sudo is the safer way to do things... generally speaking it's not much of an issue for a machine only you use but if your on a public or shared machine it can become a huge issue.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Root Account Access Security iconicmoronic Linux - Security 2 04-14-2007 02:17 PM
Lost root level access koady Linux - Newbie 4 10-27-2006 05:16 PM
can not access directory from user account - only root walterbyrd Linux - General 1 03-04-2005 11:23 PM
How do I access root account in Mandrake 10? dbz Linux - Security 4 04-03-2004 11:00 AM
FTP access using root account - restrictions alaerte Linux - Software 7 04-03-2003 01:33 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:06 AM.

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