You are not logged in.

#1 2014-10-22 13:28:15

mindovermaster
Member
Registered: 2014-10-22
Posts: 8

[SOLVED] First Login Issues

I'm new to Arch, but not new to Linux and terminal.

I ran:

# useradd -m -g users -G wheel,storage,power -s /bin/bash david

Then I give the password for this new user:

# passwd david

Now I have to allow this use to do administrative jobs as sudo so I installed sudo.

# pacman -S sudo

Once that is done, I will now allow the users in wheel group to be able to performance administrative tasks with sudo:

# EDITOR=nano visudo

It will open the sudoers file where I have to uncomment this line:

%wheel ALL=(ALL) ALL

After all this, I try to login using: david and david (for password)

No dice. But I can login with root.

I tried running "id david"

I get this:

uid=1000(david) gid=100(users) groups=100(users),10(wheel),95(storage),98(power)

Something wrong here?

Last edited by mindovermaster (2014-10-23 02:28:59)

Offline

#2 2014-10-22 13:38:21

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,902
Website

Re: [SOLVED] First Login Issues

mindovermaster wrote:

I ran:

# useradd -m -g users -G wheel,storage,power -s /bin/bash david

Why have you added yourself to the storage and power groups? I don't think this would cause huge problems, but it may cause some.

The journal will probably tell you why you can't log in as this user.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2014-10-22 13:46:33

mindovermaster
Member
Registered: 2014-10-22
Posts: 8

Re: [SOLVED] First Login Issues

Journal?

Offline

#4 2014-10-22 13:59:29

totte
Member
Registered: 2011-08-22
Posts: 64

Re: [SOLVED] First Login Issues

mindovermaster wrote:

Journal?

Journal!

Offline

#5 2014-10-22 14:17:13

mindovermaster
Member
Registered: 2014-10-22
Posts: 8

Re: [SOLVED] First Login Issues

Just says:

FAILED LOGIN 1 FROM TTY1 FOR david , Authenication failure.

That's all I found pertaining to "david"

Offline

#6 2014-10-22 14:28:57

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: [SOLVED] First Login Issues

Make another user using only the defaults, and try logging in as that other user. If all goes well it's problem with user david.

Offline

#7 2014-10-22 14:49:43

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [SOLVED] First Login Issues

As root, can you successfully "su - david"?

As root, try setting the password for "david" again. Now can you log in as David?

WorMzy wrote:

Why have you added yourself to the storage and power groups?

Because, despite how much the wiki tries to convince me otherwise, things never seem to work corretly for me unless I add my user to all the groups. hmm

Offline

#8 2014-10-22 15:00:00

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

Re: [SOLVED] First Login Issues

drcouzelis wrote:
WorMzy wrote:

Why have you added yourself to the storage and power groups?

Because, despite how much the wiki tries to convince me otherwise, things never seem to work corretly for me unless I add my user to all the groups. hmm

Please open a separate thread and tell us what exactly doesn't work.

Offline

#9 2014-10-22 15:00:19

mindovermaster
Member
Registered: 2014-10-22
Posts: 8

Re: [SOLVED] First Login Issues

OK, a friend helped me with this. He suggested:

$ userdel -r david
$ useradd -m -g users -G wheel david
$ passwd david
$ *Enter password*

After this and a reboot, it works now!

But, I question you, how exactly did that fix it? Is it that the storage and power overrid the wheel, or something?

Offline

#10 2014-10-22 16:28:02

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [SOLVED] First Login Issues

I'm glad you got it working. smile You can "Edit" your original post and add "[SOLVED]" to the title.

karol wrote:
drcouzelis wrote:
WorMzy wrote:

Why have you added yourself to the storage and power groups?

Because, despite how much the wiki tries to convince me otherwise, things never seem to work corretly for me unless I add my user to all the groups. hmm

Please open a separate thread and tell us what exactly doesn't work.

I'll briefly respond here, since the topic of groups came up...

I found some of my comments on the issue here, here, here, and here. Only one of those comments has any actual substance, the rest is just whining. wink

I won't open up a new thread on the subject (for now) because my computer works wonderfully the way it is. And I suppose if everyone else is using the same wiki I'm using and we don't see a flood of issues related to groups, then it's probably just me that is having the problem. big_smile

Karol, it's good of you to call me out on my whining. This is a technical forum, so I should try to keep things technical. wink

Offline

#11 2014-10-22 16:42:17

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

Re: [SOLVED] First Login Issues

We do have a special grrrr thread which is made for whining and not for tech support, feel free to post there :-)

Offline

#12 2014-10-22 19:37:12

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,902
Website

Re: [SOLVED] First Login Issues

mindovermaster wrote:

OK, a friend helped me with this. He suggested:

$ userdel -r david
$ useradd -m -g users -G wheel david
$ passwd david
$ *Enter password*

After this and a reboot, it works now!

But, I question you, how exactly did that fix it? Is it that the storage and power overrid the wheel, or something?

Ignore the wheel group, it's got nothing to do with the problem (there's nothing inherently special about that group, and without the uncommented line in the sudoers file, it's effectively useless).

It could be that being a member of those groups caused a problem, though if that was the case I would expect more information in the journal. Instead, I think you were either mistyping the password, had caps-lock on, or set the password incorrectly initially.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB