LinuxQuestions.org
Review your favorite Linux distribution.
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 10-05-2008, 09:58 AM   #1
MWRman66
LQ Newbie
 
Registered: Oct 2008
Location: Milwaukee,WI
Distribution: Fedora 9
Posts: 6

Rep: Reputation: 0
Fedora Login Problems


I'm currently having problems creating a username with Fedora 9. I'm always logged into the console/terminal mode. I'm able to enter into the root after entering the password I'd created during the install.I then located how to add "Users and Groups"and did so. Yet when I log in and use the users I created I still can't log in,unless I log in as root. I found a thread on how to add users(adduser) and create a passwords(passwd) for each user through the root. The only thing it will allow me to do is change the password. It doesn't seem to allow me to add a user. Will I only be able to log in using "startx"after logging into root.Now I'd like to introduce my daughter to Linux but am afraid if she were to use it in root,something might get screwed up. Now I am a newbie so any help would be appreciated and if any code is mentioned it would be nice to have how to enter it line by line.
 
Old 10-05-2008, 11:29 AM   #2
soppy
Member
 
Registered: Mar 2008
Location: In your head!
Distribution: Arch Linux
Posts: 165
Blog Entries: 1

Rep: Reputation: 28
in the terminal as root, run

Code:
useradd -m -U -p -s USERNAME
the -m creates the home directory
-U creates a group called whatever the username is
-p uses encrypted password
-s says that this user will use the BASH shell
USERNAME is the username you wish for the user
then run again as root still
Code:
passwd USERNAME
USERNAME is the name of the user. it should ask you to insert password then. run as root
Code:
su - USERNAME
to make sure the user was made correctly. then run
Code:
su - NON-ROOT USER
NON-ROOT USER is the username of a different login other than root or the one you just made (your account maybe?) Finally as the non-root user run
Code:
su - USERNAME
it should ask you for the password. enter it and if the shell changes and says
USERNAME@WHATEVERHOST:
then it's good. (USERNAME is the user's name and WHATEVERHOST is the host's name default is LocalHost.) You may then run startx or if you would prefer a login screen, run
Code:
telinit 5
you may need to be root for that i'm not sure
To use a graphical login screen at default, run
Code:
nano /etc/inittab
change the line (some# is the number it is at now)
id:some#:initdefault:
to
id:5:initdefault:

you must be root to run the last part. to change to the root user in a graphical shell use
su -
then enter the password. if any questions, please ask

Last edited by soppy; 10-05-2008 at 11:32 AM.
 
Old 10-05-2008, 12:15 PM   #3
drchuck
Member
 
Registered: May 2007
Posts: 61

Rep: Reputation: 17
As root, try adding the new user from the menu item Administration/Users and Groups. If you can't find it, make sure the system-config-users rpm is installed from your install disk or the repositories.
 
Old 10-06-2008, 07:43 PM   #4
MWRman66
LQ Newbie
 
Registered: Oct 2008
Location: Milwaukee,WI
Distribution: Fedora 9
Posts: 6

Original Poster
Rep: Reputation: 0
Smile Thanks

Thanks for the help. As soon as I get back home I'll do as you suggest.It will be a great help.Do you know of the best book available to learn code for Linux. I'd really like to learn more.
 
Old 10-06-2008, 08:03 PM   #5
soppy
Member
 
Registered: Mar 2008
Location: In your head!
Distribution: Arch Linux
Posts: 165
Blog Entries: 1

Rep: Reputation: 28
a very well written book to learn about the inner workings of linux and to learn some valuable codes, try reading the Linux From Scratch book. To learn about linux codes, here's some. http://www.pixelbeat.org/cmdline.html
also, for a book http://www.amazon.com/Linux-Command-.../dp/047025128X.
but it's about $35
or were you talking about to learn code as in programming?
 
Old 10-06-2008, 08:58 PM   #6
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
This is good: http://rute.2038bug.com/index.html.gz
 
Old 10-07-2008, 07:21 PM   #7
MWRman66
LQ Newbie
 
Registered: Oct 2008
Location: Milwaukee,WI
Distribution: Fedora 9
Posts: 6

Original Poster
Rep: Reputation: 0
Smile Thanks Again

The resources you've provided me are much appreciated. I've checked them out and see I have some reading to do. Especially if I want to learn more. Unlike years ago when I first learned about Linux from Leo Laporte on "The Screensavers".All I needed to do then was watch his show and learn something about it,if the subject of Linux was ever brought up.
 
  


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
Fedora Login Problems D-NO86 Linux - Newbie 4 04-04-2008 12:49 PM
Fedora 8 Login Problems Karnthebetrayer Linux - Software 1 03-18-2008 12:44 AM
Fedora 8 Login Problems Karnthebetrayer Linux - Newbie 1 03-18-2008 12:36 AM
Fedora 8 Login Problems Mathew2k Fedora - Installation 3 10-21-2007 04:19 AM
Fedora 6 login problems/ username linuxfedora68 Linux - Newbie 1 06-30-2007 05:02 PM


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

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration