You are not logged in.

#1 2012-11-21 10:45:37

Robula
Member
Registered: 2012-11-21
Posts: 8

[SOLVED] Problem with passwd

Hey there,
I came to Arch because I wanted to learn how Linux works and I thought the best way to learn is start from scratch and work my way up to a finished product. Well I've been following the Beginners Guide wiki which has been a good guide to get up and running although it is a little scarce on describing why I was typing these commands and what effect they had... Anyways.
I can now boot into my new installation and that's the main thing...

Here's my situation:
From root I created a new user using "useradd -m -g users -G audio,games,lp,network,optical,power,scanner,storage,video,wheel -s /bin/bash rob"
I then did "passwd rob" then entered by password twice.
So my /etc/passwd looks like this:
JrEhb.png


I then type "exit" and try and login to rob using my newly set password but it still says my login is incorrect. I then try setting the password yet again from root but I still face the same problem.
nMGzI.png


What's going on? What am I doing wrong?
Many thanks smile

Last edited by Robula (2012-11-21 15:41:14)

Offline

#2 2012-11-21 11:37:11

mzneverdies
Member
Registered: 2012-02-04
Posts: 147

Re: [SOLVED] Problem with passwd

hm, just to be sure, passwords are case sensitive, and also, if you are using numbers, careful with numlock.

Offline

#3 2012-11-21 11:38:32

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Problem with passwd

Forget the user groups for now. They can easily be added later, if you really need to.

https://wiki.archlinux.org/index.php/Be … gular_user

# useradd -m -g users -s /bin/bash archie
# passwd archie

Also:

If you wish to start over, use userdel. The -r option will remove the user's home directory and its content, along with the user's settings (the so-called "dot" files).

# userdel -r archie

"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#4 2012-11-21 11:46:04

illusionist
Member
From: localhost
Registered: 2012-04-03
Posts: 498

Re: [SOLVED] Problem with passwd

Why is there /usr/bash in your /etc/passwd ?


  Never argue with stupid people,They will drag you down to their level and then beat you with experience.--Mark Twain
@github

Offline

#5 2012-11-21 12:27:42

Antoine
Member
From: Picton Ontario
Registered: 2012-10-11
Posts: 90

Re: [SOLVED] Problem with passwd

illusionist wrote:

Why is there /usr/bash in your /etc/passwd ?

Yeah. I'm thinking he (mis)typed "-s /usr/bash" instead of "-s /bin/bash" when he created the password.  It doesn't look like put himself in the "users" group either:

Robula wrote:

From root I created a new user using "useradd -m -g users -G audio,games,lp,network,optical,power,scanner,storage,video,wheel -s /bin/bash rob"

My advice to the OP would be to delete that user and start again, putting himself only in "users" for now. We don't need to be in other groups now, unless we need to be.

Last edited by Antoine (2012-11-21 12:28:17)

Offline

#6 2012-11-21 12:57:12

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,454
Website

Re: [SOLVED] Problem with passwd

Robula wrote:

I've been following the Beginners Guide wiki ...it is a little scarce on describing why I was typing these commands

A bit off the main topic - but to address your interest in learning:  I suspect this scarcity is by design.  This is a guide for beginners to get up and running, not necessarily an educational resource.  You will find that for every command it tells you to use, you can also do `man command` and get plenty of additional reading material.

(edit: typos)

Last edited by Trilby (2012-11-21 16:16:29)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2012-11-21 15:41:01

Robula
Member
Registered: 2012-11-21
Posts: 8

Re: [SOLVED] Problem with passwd

Antoine wrote:
illusionist wrote:

Why is there /usr/bash in your /etc/passwd ?

Yeah. I'm thinking he (mis)typed "-s /usr/bash" instead of "-s /bin/bash" when he created the password.  It doesn't look like put himself in the "users" group either:

Robula wrote:

From root I created a new user using "useradd -m -g users -G audio,games,lp,network,optical,power,scanner,storage,video,wheel -s /bin/bash rob"

My advice to the OP would be to delete that user and start again, putting himself only in "users" for now. We don't need to be in other groups now, unless we need to be.

Thank you! I didn't realize I had missed typed /bin/bash as /usr/bash... After correcting this I was able to change my password and login. Such a silly mistake...

Trilby wrote:
Robula wrote:

I've been following the Beginners Guide wiki ...it is a little scarce on describing why I was typing these commands

A bit off the main topic - but to address you interest in learning:  I suspect this scarcity is by design.  This is a guide for beginners to get up and running, not necessarily an educational resource.  You will find that for every command it tells you to use, you can also do `man command` and get plenty of additional reading material.

"man <command>", I've been messing around on and off with Linux for years and I have never come across this gem! yikes
EDIT: The 'man' command is amazing! I've managed to solve my other problems with netcfg I was having by reading the man file. Thanks a bunch Trilby!


Thank you all for your replies, patience and helpfulness. smile

Last edited by Robula (2012-11-21 15:50:32)

Offline

Board footer

Powered by FluxBB