LinuxQuestions.org
Visit Jeremy's Blog.
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 05-31-2001, 09:55 PM   #1
hiwatt25
LQ Newbie
 
Registered: Mar 2001
Location: Seattle
Posts: 4

Rep: Reputation: 0
Wink


Hello-

I am stoked. I finally got Red Hat 7.0 to dual boot with Windows ME. LILO loads and everything. The problem now is that I need to use Xconfigurator. Here's the deal. I open a virtual console (from gnome) and type Xconfiguration then I am told that I have to be in root to run Xconfiguration. No Problem so I hit CD /root and I am told that I do not have permission. So my question is, how the heck to I log in to /root? During setup I set a password for root but I don't get prompted for it when I try to log in to root. I also created two accounts one for my wife and one for me that have different passwords than the root. I am totally lost and I am counting on trickykid to help me out. He/she has been the biggest help. I hope you read this. Thanks
 
Old 05-31-2001, 10:12 PM   #2
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
at the console type su (for super user)
it will then prompt for the root password
 
Old 06-01-2001, 03:33 AM   #3
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
I thought I was the only one who did that. Back in 96 I got my first Slakware CD set. It took me two days to figure out that there was a difference between "/root" folder, "root" user, and "/" for the root directory tree.
 
Old 06-01-2001, 04:22 AM   #4
FNC
Member
 
Registered: Feb 2001
Location: South Africa
Distribution: Fedora, Mandriva, PCLOS, SUSE - anything a can get my hands on
Posts: 140

Rep: Reputation: 15
Hi, watt25 :-)

Let me try and make tings clear for you. Just like you created a user account for you and your wife, there is also a user account called “root”. “root” is like the administrator account in windowsNT. It is also revered to as “super user” (su), because it has the highest authority. The “root” user can remove and view any file or directory regardless of its shares or attributes. So you can basically see that the “root” is a very powerful user (almost godlike). This is why it is recommended that you log on as a normal user, like you or your wife, and only use the root when you absolutely have to.

To change to the root user without logging out and the logging in as “root”, type “su” at the command prompt. Type the password for “root”, and now you are logged in as root and can do anything the “root” can do. When you are finished type “exit” to return to a normal user again.

You may have noticed that Linux created a home directory for every user you created under “/home/”. There is also home directory for “root”, but it is not under “/home/” but instead it is under “/root”. Only the root user can access this directory, witch is why you received a “no permission” error when trying to access it as a normal user.

One more thing about a root. The top most directory on a Linux (or dos for that matter) system is called the root directory. So the “/” directory is your root directory under Linux. Under dos your root directory would be C:\ for your C: drive.
Please note that the directory “/root” is only a directory called “root” witch is in your root “/” directory. :-)
 
Old 06-01-2001, 07:22 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally posted by hiwatt25
I am totally lost and I am counting on trickykid to help me out. He/she has been the biggest help. I hope you read this. Thanks
Sorry I didn't make it in time.
But the others are right.
When you begin with the login prompt when you first boot up, you can login as root, by typing root of course then the password. But the safest way is to su (or use sudo and can learn more about it here http://www.courtesan.com/sudo/ ) into root for those types of privileges, then logout when your done so while your logged in as root, you can't do damage by accident to your OS.

Drew
 
Old 06-01-2001, 10:08 AM   #6
hiwatt25
LQ Newbie
 
Registered: Mar 2001
Location: Seattle
Posts: 4

Original Poster
Rep: Reputation: 0
Smile Thanks to all

Super cool-

Just wanted to thank everyone for breaking things down some for me. Things are working just fine now! Next stop, mounting drives! Thanks again

Joe
 
  


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
Lost Root password Oakstaff Linux - Newbie 6 11-29-2006 05:03 AM
Lost root password zillah Solaris / OpenSolaris 10 05-24-2005 06:28 PM
Lost root password Nectalathiel SUSE / openSUSE 2 12-26-2004 02:28 PM
Lost Root User Michael2003 Mandriva 4 12-13-2003 09:20 AM
root has lost its rights DoubleM Linux - General 3 03-19-2003 03:10 PM


All times are GMT -5. The time now is 06:15 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