LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-10-2010, 12:11 AM   #1
mohamad
LQ Newbie
 
Registered: Jun 2010
Posts: 11

Rep: Reputation: 0
root


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!!
help
 
Old 06-10-2010, 12:14 AM   #2
pixellany
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, 02:43 AM   #3
tommyttt
Member
 
Registered: Oct 2009
Location: Federal Way, WA
Distribution: openSUSE 11.4 x86_64, openSuSE 12.1, Fedora 15
Posts: 207

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

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

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

@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, 07:54 AM   #5
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
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 07:56 AM.
 
  


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 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 06:15 PM
On NFS, non-root users can move/rename files belonging to root. Stuart Morrow Linux - Server 2 11-05-2007 12:12 PM
RHEL3 Mounting USB after reboot and between reboots: root and non-root users Luis Nunes Linux - Hardware 0 07-20-2005 09:32 AM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 05:14 PM


All times are GMT -5. The time now is 07:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration