T
T
Thiago Alvarez2019-08-31 16:28:02
linux
Thiago Alvarez, 2019-08-31 16:28:02

Linux user can't use sudo?

created a user, entered him into the wheel group
useradd -s /bin/bash -m -p 12345 -G wheel tom
, since the wheel group is disabled by default in new versions of Linux, I turned it on, so to speak.
before that, I created the wheel group,
uncommented the auth required pam_wheel.so line and added /etc/pam.d/su
% wheel ALL=(ALL) ALL to the line when I change to this user , the tom user cannot use sudo, even if I enter the correct password. to display such bullshit of the tom'a group: tom wheel UPD By the way, now I tried to log in through the graph interface, so it does not enter at all. When I enter the password it says Sorry, that's didn't work/etc/sudoers
su tom
5d6a75ab7edec403104600.png

5d6a7f8db55ca812925975.png
Created several users, all the same

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Saboteur, 2019-08-31
@thiago_alvarez

What if sudoers
%wheel ALL=(ALL:ALL) NOPASSWD: ALL

S
skrimafonolog, 2019-08-31
@skrimafonolog

https://www.linux.org.ru/forum/admin/2981673

P
pfg21, 2019-08-31
@pfg21

after adding a user to a group, the group is not immediately assigned to him.
you need to exit from under the user and go back under him, then the user's groups will be read from /etc/group and the changes will work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question