You are not logged in.

#1 2013-08-17 14:44:45

hilltownboy
Member
From: Massachusetts
Registered: 2013-08-15
Posts: 100

[SOLVED]passwd [username] not working

Everything I have searched and googled says to enter user passwords with the passwd [username] command.  On my new installation-in-process, entering that command from root or from root/username only comes up "Enter new UNIX password", or some such.  That only changes the root password, not the user password.
I'd appreciate help on fixing this.  The user shows up in /etc/passwd with an "x" for the password.

Last edited by hilltownboy (2013-08-17 17:55:04)

Offline

#2 2013-08-17 14:56:36

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]passwd [username] not working

hilltownboy wrote:

The user shows up in /etc/passwd with an "x" for the password.

That's OK.

I'm a bit confused about what's the problem, so let's start from the beginning: at which point of the installation process did you run into trouble? You did create a new user and you can't log in?
What's the shell your user is using (the last field)? Make sure it's one of listed in /etc/shells.
Try 'passwd -d <username>'.

Offline

#3 2013-08-17 15:46:00

hilltownboy
Member
From: Massachusetts
Registered: 2013-08-15
Posts: 100

Re: [SOLVED]passwd [username] not working

The installation process got me to the Arch root login (with some help from forum members).  I created a new user:

cat passwd
root:x:0:0:cd home:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/false
daemon:x:2:2:daemon:/sbin:/bin/false
mail:x:8:12:mail:/var/spool/mail:/bin/false
ftp:x:14:11:ftp:/srv/ftp:/bin/false
http:x:33:33:http:/srv/http:/bin/false
uuidd:x:68:68:uuidd:/:/sbin/nologin
dbus:x:81:81:dbus:/:/sbin/nologin
nobody:x:99:99:nobody:/:/bin/false
norman:x:1000:100::/home/norman:/bin/bash

/bin/bash is in /etc/shells.
I run "passwd norman" but it does not create it, just returns "Enter new UNIX password"
I try from root/norman, same result

Offline

#4 2013-08-17 15:48:02

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]passwd [username] not working

hilltownboy wrote:

I run "passwd norman" but it does not create it, just returns "Enter new UNIX password"

Does not create what? You enter a new password and then log in as the user.

hilltownboy wrote:

I try from root/norman, same result

I don't understand what you mean here.
Have you tried to just log in as norman?

Last edited by karol (2013-08-17 15:49:08)

Offline

#5 2013-08-17 17:08:58

henk
Member
From: Weert, Netherlands
Registered: 2013-01-01
Posts: 334

Re: [SOLVED]passwd [username] not working

hilltownboy wrote:

I run "passwd norman" but it does not create it, just returns "Enter new UNIX password"

I can see the misunderstandig here, it is the same output you get when creating your root password.
Here it just means that you yourselfe have to create your own user "UNIX"  password, the same way you did
with root.
So just as karol mentioned, enter the password you want to use as user, and you are ready to login
as user.

Offline

#6 2013-08-17 17:54:36

hilltownboy
Member
From: Massachusetts
Registered: 2013-08-15
Posts: 100

Re: [SOLVED]passwd [username] not working

Thank you karol and henk.  I finally got it through my head that one has to go back to arch login: and login with the user name.  I was trying to do everything from [root@arch].

Offline

#7 2013-08-17 18:02:11

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]passwd [username] not working

hilltownboy wrote:

I was trying to do everything from [root@arch].

You can use su https://wiki.archlinux.org/index.php/Su but logging in as a user is the right way to do it. You want to be a regular user unless it's absolutelly necessary to do something as root, at which point you can use sudo https://wiki.archlinux.org/index.php/Sudo

Offline

Board footer

Powered by FluxBB