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

Notices

Reply
 
Search this Thread
Old 09-21-2008, 09:24 PM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Glendale, AZ
Distribution: Distro-homeless. Lost.
Posts: 1,877

Rep: Reputation: 62
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, 09:29 PM   #2
CRC123
Member
 
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 31
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:
Code:
su
# 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, 09:47 PM   #3
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
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, 11:26 PM   #4
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Glendale, AZ
Distribution: Distro-homeless. Lost.
Posts: 1,877

Original Poster
Rep: Reputation: 62
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-22-2008, 12:00 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
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-22-2008, 12:06 AM   #6
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Glendale, AZ
Distribution: Distro-homeless. Lost.
Posts: 1,877

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

Last edited by newbiesforever; 09-22-2008 at 12:49 PM.
 
Old 09-22-2008, 11:02 AM   #7
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
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.
 
  


Reply


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 03:17 PM
Lost root level access koady Linux - Newbie 4 10-27-2006 06:16 PM
can not access directory from user account - only root walterbyrd Linux - General 1 03-05-2005 12:23 AM
How do I access root account in Mandrake 10? dbz Linux - Security 4 04-03-2004 12:00 PM
FTP access using root account - restrictions alaerte Linux - Software 7 04-03-2003 02:33 PM


All times are GMT -5. The time now is 03:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration