LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-26-2003, 12:05 PM   #1
Computergirl24
Member
 
Registered: Dec 2003
Location: PA, USA
Distribution: mandrake 9.1
Posts: 65

Rep: Reputation: 15
Unhappy password?!?


ok, i am running mandrake 9.1 on a dual boot system with windows95, i know the system is old, but i've invested quite a bit of time trying to get linux to work, and i don't want to give up just because i dont knwo how to get a password for a user login. i created a user account, but i don't know the syntax to user with the passwd command to either disable a password or create a password. what do i do?
E
 
Old 12-26-2003, 12:31 PM   #2
Gates1026
Member
 
Registered: Sep 2003
Location: Iowa
Distribution: Slackware 9.1
Posts: 155

Rep: Reputation: 30
if the user name is sallyuser you should just be able to type :
# passwd sallyuser
and it should prompt you for the password twice........you must be root to do this.

Hope this helps!
 
Old 12-26-2003, 01:40 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Some helpful commands to get to know when dealing with users and groups on your system as you can type 'man' followed by the command to read the man pages:

useradd
usermod
userdel
chown
chgrp
groupmod
groupadd
chmod

Cheers.
 
Old 12-26-2003, 04:10 PM   #4
Computergirl24
Member
 
Registered: Dec 2003
Location: PA, USA
Distribution: mandrake 9.1
Posts: 65

Original Poster
Rep: Reputation: 15
ok, as i was trying to create a password for a user that i'm going to call eeee. this is what i typed in. i typed adduser just to make sure the user did actually already exist.

[root@localhost root]# adduser eeee
adduser: user eeee already exists
[root@localhost root]# passwd eeee
Changing password for user eeee
New UNIX password:
Retype new UNIX password:
passwd: user not known to the underlying authentication module
[root@localhost root]#

what did i do wrong? i've tried a couple of different passwords and it does the same thing. it's also kind of annoying that you cant use any word in the dictionary as a password, cause if it's something not in the dictionary i know i'm gonna forget what it is. oh well, thanks in advance for ur help,
E
 
Old 12-26-2003, 08:59 PM   #5
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"passwd: user not known to the underlying authentication module"

Check to see if the user is in /etc/passwd.

"it's also kind of annoying that you cant use any word in the dictionary as a password, cause if it's something not in the dictionary i know i'm gonna forget what it is. oh well, thanks in advance for ur help,"

There is an optional program that you have installed which argues with you about your passwords. I have never used it and don't remember its name. But if you throw out that program then you can use any password that you want.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Last edited by jailbait; 12-26-2003 at 09:02 PM.
 
Old 12-26-2003, 09:31 PM   #6
Computergirl24
Member
 
Registered: Dec 2003
Location: PA, USA
Distribution: mandrake 9.1
Posts: 65

Original Poster
Rep: Reputation: 15
ok, now this is gonna make me look really stupid, but how do i check to see if the user is in /etc/passwd ? otherwise, thanks.
E
 
Old 12-26-2003, 09:44 PM   #7
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"how do i check to see if the user is in /etc/passwd ?"

Open /etc/passwd in a text editor, or less. /etc/passwd has one line for each user or daemon type. The first line is always root. The first field in each /etc/passwd line is the name of the entity. So you should find a line which has the relevent user name as the first field in that line.

The fields in a /etc/passwd line are:
usernameassword:uid:gid:gecos:homedir:shell

Sorry about that. The combination of colon-letter p comes up as a smiley.

If the password field is set to * that means that it is encrypted as a shadow password. If the password field is null that means that entity is not password protected.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Last edited by jailbait; 12-26-2003 at 09:46 PM.
 
Old 12-27-2003, 02:23 AM   #8
mansonmuni
Newbie
 
Registered: Oct 2003
Distribution: Redhat 9
Posts: 16

Rep: Reputation: 0
The more I read this newsgroup (and ask questions here) the more I realize that there is a technogeneration gap. Sometimes I ask the same question two or three times and never get an answer because the gurus don't understand the simplicity of what I"m asking. It's almost as if they scan for keywords in my post and ignore everything __they're__ not looking for!

Don't misunderstand me steve, you have probably been the most helpful "guru" I've encountered. But if somebody say's "I'm really a newbie", do you honestly expect that person to understand:

"
The first field in each /etc/passwd line is the name of the entity. So you should find a line which has the relevent user name as the first field in that line.

The fields in a /etc/passwd line are:
usernameassword:uid:gid:gecos:homedir:shell

"

OK, I'm stupid, right? But what is entity, uid, gid, gecos, etc...

Actually, I don't know what gecos is. I've been 'using' linux for about 6 years now. I still consider myself a newbie, cuz nobody can speak my language. I can undertand most of what you are saying, but what about somebody that installed lx first time yesterday? No hope.

thanks very much. Plz don't stop. We luv you and need you.

You are the shit. Thnx. peace.
 
Old 12-27-2003, 03:05 AM   #9
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
he just used entity to mean username.
uid userid-each userhas a number to interact with the system.
gid groupid-a group id is a number associated with a group. you can
give a broad set of rights to a user by adding them to a group that
has a certain set of rights.


i expect that i like other people that answer questions here skim the
questions, and answer what we can that doesn't take a ton of typing,
or what we can answer simply.
 
Old 12-27-2003, 04:26 AM   #10
gruntwerk
Member
 
Registered: Dec 2003
Location: PA
Distribution: fc9
Posts: 89

Rep: Reputation: 15
does pwck report any errors?
 
Old 12-27-2003, 08:10 AM   #11
Computergirl24
Member
 
Registered: Dec 2003
Location: PA, USA
Distribution: mandrake 9.1
Posts: 65

Original Poster
Rep: Reputation: 15
"Check to see if the user is in /etc/passwd."


ok thanks, i was able to see what was in the /etc/passwd thing, and it had the name of the user. in the place where the password was supposed to be, there was an !!. when i used the command #passwd -u (username) to unlock the password, because i thought it was locked, i got this message:
Segmentation fault (core dumped). what does this mean?
thanks,
E
 
Old 12-27-2003, 09:55 AM   #12
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"I don't know what gecos is."

When Unix first began to spread beyond AT&T, General Electric wrote an Unix operating system called GECOS. Some long forgotten specialized field was inserted into /etc/passwd for GECOS to use. GE sold their computer division to Honeywell about 1970 and Honeywell sold GECOS for a while. GECOS died a well deserved death about 25 years ago but the gecos field marches on!

"I realize that there is a technogeneration gap."

Yes. I sometimes find that I answered a different question than was asked. I also have the problem that my Linux knowledge is self taught. I often think of Linux in terminology used on operating systems that I have worked on in the past but is confusing to a Windows/Linux person. I also occasionaly get somebody reinterpreting what I say so that it makes sense to other people. This is fine with me and I appreciate the help.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 12-27-2003, 10:16 AM   #13
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"where the password was supposed to be, there was an !!. when i used the command #passwd -u (username) to unlock the password, because i thought it was locked, i got this message:
Segmentation fault (core dumped). what does this mean?"

The command that you were using failed, probably because of screwed up data in /etc/passwd. The first thing you should do is straighten out /etc/passwd. Do not edit /etc/passwd directly since a simple edit error can make Linux unusable. Use the commands that trickykid listed to work with your problem. After you use each command then check /etc/passwd to see what that command really did. The line with !! obviously contains garbage. See if you can use one of trickykid's commands to delete that line entirely. Be careful and read the man page thoroughly before you use any command. It is possible to delete the /home/user tree as well as the errant line in /etc/passwd. Once you get the garbage out of /etc/passwd then you can rebuild your users, groups, and passwords the way that you want.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 12-27-2003, 03:48 PM   #14
Computergirl24
Member
 
Registered: Dec 2003
Location: PA, USA
Distribution: mandrake 9.1
Posts: 65

Original Poster
Rep: Reputation: 15
ok, thanks. i also have another question, i think i have games installed on my computer, and when i was looking at the file in /etc/passwd there was a games user with an * in the passwd spot. in the man file for passwd it said an * means the password is encoded. how do i uncode it? there was a command, but i'm afraid to use anything i don't totally understand because i didnt want to mess anything up. do i have to sign in under the games user to access the games, or can i run the programs through root or a user account after i get it setup? thanks in advance for ur help.
E
 
Old 12-27-2003, 04:25 PM   #15
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"how do i uncode it? there was a command, but i'm afraid to use anything i don't totally understand"

You cannot uncode the password. It is part of UNIX security that even root cannot find out other peoples passwords. If root wants to she can change a user's password to a new password without knowing what the old password was but she cannot read the old password. So when a user loses her password she tells root. Root supplies the user with a new password, then user logs on and then changes her password to a new one that root doesn't know. If you lose root's password then it's exciting times.

"do i have to sign in under the games user to access the games"
The first field in each entry in /etc/passwd is called username. Actually most of these entities (I don't have a thesaurus handy so I'll risk another uproar over entities) are not user names. They are a mechanism whereby a user process can obtain root privileges. For example: Suppose you are using kpackage, or the Mandrakes rpm installer whatever it is called, as a user to install rpm packages. The rpm installer needs root privileges so it asks you for the root password. The rpm line in /etc/passwd is part of the mechanism used for the installer to pass the root password to pam (the security routines) and for pam to give the installer root privileges which cannot be passed on to other programs in user space. There is no user named rpm and you cannot sign in as rpm.

The games entry works similarly, except that I do not know exactly why games need root privileges. Perhaps it is so that they can drive the video card faster. In any case you probably do not have a user called games on your machine. But it is possible for you to run a game as user which needs root privileges. In which case the game will ask you for the root password.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
  


Reply



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 could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM
shadow password - password field ayhopkins Linux - Security 8 11-17-2005 05:25 AM
How can I change e-mail password(or linux account password) with php in website?? yusuf Programming 1 05-28-2004 09:39 AM
forgot my password ? i can change the password JrLz Linux - Security 9 04-06-2004 07:36 PM
Just change Samba password, not Unix password? sorrodos Linux - Networking 1 08-14-2003 07:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:17 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
Open Source Consulting | Domain Registration