Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Gentoo Linux Help
Reload this Page Is it just me or ...
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Gentoo Linux Help For help and discussion related to Gentoo Linux

Reply
 
Thread Tools Display Modes
Old 02-26-2008   #1 (permalink)
Linux User
 
darkrose0510's Avatar
 
Join Date: Jan 2006
Location: Queensland, the cyclone/flood/drought capital of Australia
Posts: 256
Is it just me or ...

Is it just me missing something, or is the Gentoo handbook missing a step telling you to set a root password before booting into a newly installed system?

It didn't even occur to me till I was staring at the login prompt. I just booted into Debian, chrooted into Gentoo and set the password there. But it was a little disconcerting.


Maybe I'm sick, but I'm quite liking twm too.
__________________
Desktop - Gentoo
Toy Box - Syllable
Laptops - Damn Small 4
Servers - Debian Etch
Registered Linux user #407228 -- A computer without a Microsoft operating system is like a dog without bricks tied to its head.
darkrose0510 is offline   Reply With Quote
Old 02-26-2008   #2 (permalink)
Linux User
 
Join Date: Aug 2007
Location: England
Posts: 318
You don't get a root user by default. Instead anything you want to do as root is preceded by sudo. For example:

Code:
sudo ifconfig
__________________
My Blog
Linux User #453176
AMD Opteron(tm) Processor 146 (2.01GHz)
1GB Memory
GeForce 7600 GS (256 MB)
Kieren is offline   Reply With Quote
Old 02-26-2008   #3 (permalink)
Linux User
 
darkrose0510's Avatar
 
Join Date: Jan 2006
Location: Queensland, the cyclone/flood/drought capital of Australia
Posts: 256
That may be the case, but the handbook says to setup user accounts after first booting into the system...

Which of course you can't setup a user account till you've logged in as root....

Which you can't do as there was no root password set, or any other account to log into.
__________________
Desktop - Gentoo
Toy Box - Syllable
Laptops - Damn Small 4
Servers - Debian Etch
Registered Linux user #407228 -- A computer without a Microsoft operating system is like a dog without bricks tied to its head.
darkrose0510 is offline   Reply With Quote
Old 02-26-2008   #4 (permalink)
Linux User
 
Join Date: Aug 2007
Location: England
Posts: 318
I'm not too sure with Gentoo but with Ubuntu you create a user on install and they have root privileges (After you type sudo) and you just use their password
__________________
My Blog
Linux User #453176
AMD Opteron(tm) Processor 146 (2.01GHz)
1GB Memory
GeForce 7600 GS (256 MB)
Kieren is offline   Reply With Quote
Old 02-26-2008   #5 (permalink)
Linux User
 
gruven's Avatar
 
Join Date: Dec 2004
Location: Arkansas
Posts: 380
Send a message via ICQ to gruven Send a message via AIM to gruven Send a message via MSN to gruven Send a message via Yahoo to gruven Send a message via Skype™ to gruven
Ummmm....

Gentoo does provide you with a root user, and yes setting the password is in the handbook.

Section 8c.
Gentoo Linux Documentation -- Configuring your System

Ubuntu is the only distro that sets up sudo instead of a root user by default that I know of.
__________________

Linux User #376741
Gentoo Linux
gruven is offline   Reply With Quote
Old 02-27-2008   #6 (permalink)
Linux User
 
darkrose0510's Avatar
 
Join Date: Jan 2006
Location: Queensland, the cyclone/flood/drought capital of Australia
Posts: 256
Thanks gruven, figured I'd missed it somewhere, looks like I just skipped too much when I ignored PCMCIA.
__________________
Desktop - Gentoo
Toy Box - Syllable
Laptops - Damn Small 4
Servers - Debian Etch
Registered Linux user #407228 -- A computer without a Microsoft operating system is like a dog without bricks tied to its head.
darkrose0510 is offline   Reply With Quote
Old 02-27-2008   #7 (permalink)
Linux Engineer
 
Join Date: Nov 2007
Location: Córdoba (Spain)
Posts: 1,161
Quote:
Originally Posted by Kieren View Post
You don't get a root user by default. Instead anything you want to do as root is preceded by sudo. For example:

Code:
sudo ifconfig
First, sudo is not even mentioned in the handbook. At least, not in the basic stuff that you need to read to install Gentoo. Not as far as I can remember, though I haven't used the handbook for anything other than reference purposes on the last years. Unlike in many other linux distros, sudo is not even part of system which is the basic Gentoo package set. In Gentoo you don't get sudo unless you emerge it and set it up yourself.

Second, you can't run a linux system without root, and you can't use sudo without root. Every linux tipical system will setup for you a root user, and ask you to enter a valid password for it when installing.

The only purpose of sudo is automating the whole process, allowing you to run a given program with root ID without needing a password. There's nothing magical behind it, and you still need a root ID.

As for the original topic, as someone already mentioned above, it's perfectly explained in the handbook how to set up the root password before rebooting.
i92guboj is offline   Reply With Quote
Old 02-27-2008   #8 (permalink)
Just Joined!
 
Join Date: Feb 2008
Posts: 2
This is one of those things that's very easy to overlook... at first because it's just a tiny part of a large process, then again later because you're skipping over things as you learn Gentoo more and more.

The major thing that turned me off about Ubuntu when I tried it out was the way they use sudo; I don't tend to just want to run one command as root.
phulaeo is offline   Reply With Quote
Old 02-27-2008   #9 (permalink)
Linux Engineer
 
Join Date: Nov 2007
Location: Córdoba (Spain)
Posts: 1,161
Quote:
Originally Posted by phulaeo View Post
The major thing that turned me off about Ubuntu when I tried it out was the way they use sudo; I don't tend to just want to run one command as root.
Then you probably turned away for the wrong reason, since the fact that sudo is configured by default, doesn't mean that you can't use su just like in any other distro to become root and run as many command as you like on the su'ed shell.
i92guboj is offline   Reply With Quote
Old 02-27-2008   #10 (permalink)
Just Joined!
 
Join Date: Feb 2008
Posts: 2
Quote:
Originally Posted by i92guboj View Post
Then you probably turned away for the wrong reason, since the fact that sudo is configured by default, doesn't mean that you can't use su just like in any other distro to become root and run as many command as you like on the su'ed shell.
Perhaps. Regardless, I'm glad I went to Gentoo, as I've learned a great deal more using it than I would have Ubuntu.
phulaeo is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 07:42 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0