You are not logged in.
Pages: 1
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
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
Journal?
Offline
Journal?
Offline
Just says:
FAILED LOGIN 1 FROM TTY1 FOR david , Authenication failure.
That's all I found pertaining to "david"
Offline
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
As root, can you successfully "su - david"?
As root, try setting the password for "david" again. Now can you log in as David?
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.
Offline
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.
Please open a separate thread and tell us what exactly doesn't work.
Offline
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
I'm glad you got it working. You can "Edit" your original post and add "[SOLVED]" to the title.
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.
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.
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.
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.
Offline
We do have a special grrrr thread which is made for whining and not for tech support, feel free to post there :-)
Offline
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
Pages: 1