Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-09-2010, 11:11 PM   #1
LQ Newbie
Registered: Jun 2010
Posts: 11

Rep: Reputation: 0

i have a problem with forgeeting where i put files. so i thought id work on root so i wouldnt have the problem of having to be in the same directory as the file.... the problem is that it asks me for a password?! i dont know what it is or was if i actually had made it!!
Old 06-09-2010, 11:14 PM   #2
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
From you other posts, I assume you are on Ubuntu. If so, the root account is not enabled by default. Use "sudo" to do your administrative tasks.
Old 06-10-2010, 01:43 AM   #3
Registered: Oct 2009
Location: Federal Way, WA
Distribution: openSUSE 11.4 x86_64, openSuSE 12.1, Fedora 15
Posts: 207

Rep: Reputation: 34
Originally Posted by pixellany View Post
From you other posts, I assume you are on Ubuntu. If so, the root account is not enabled by default. Use "sudo" to do your administrative tasks.
In most linux distros, the file structures for root and users is the same, the difference being the name of the user. For instance, both root and use have /Documents, /Pictures, /Music, etc. in their respective directories.

Or are you talking about the root (/) directory? The dual use of "root" for both the base of the directory structure and the superuser can be confusing to new users of linux.

If you are the only user, then you're files will always be in the same location unless you move them elsewhere. Just a matter of learning where things are kept. After a short time you'll begin remembering where they are. Just be patient.

Old 06-10-2010, 02:06 AM   #4
LQ Veteran
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389

@tommyttt: Not all users are equal. Normal users are, but root is special.

That is one of the reasons why the root homedir is not found in /home, but is set aside (/root). Some of the applications (if setup correctly) will not function when you are root (ftp and ssh to name just 2), other applications need root privileges to function.

Because root is all powerful, some distro's 'disable' the root account (as in: no direct login) and set up sudo to do these root tasks.

In general one should not use root do to normal day to day tasks, and if at all possible use sudo to do tasks that do need root privileges.

@mohamad: For now use sudo to do your root tasks (as already stated by pixellany).

Hope this clears things up.
Old 06-10-2010, 06:54 AM   #5
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
NEVER, EVER do your normal work as root user, and NEVER store your documents in "/".

You should work as an unprivileged user when possible, and store your documents in "/home/<your username>/".

Last edited by MTK358; 06-10-2010 at 06:56 AM.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I have a script owned as root and run as root by a user: setuid? stickey bit? abefroman Linux - Newbie 9 04-19-2008 05:15 PM
On NFS, non-root users can move/rename files belonging to root. Stuart Morrow Linux - Server 2 11-05-2007 11:12 AM
RHEL3 Mounting USB after reboot and between reboots: root and non-root users Luis Nunes Linux - Hardware 0 07-20-2005 08:32 AM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM

All times are GMT -5. The time now is 12:37 PM.

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