why can't root level access do everything root account can do?
Linux - GeneralThis 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
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.
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?
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.
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.
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 -".
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.