Can't sudo

Ask questions about Arch Linux ARM. Please search before making a new topic.

Can't sudo

Postby champignom » Sun Jan 08, 2023 1:57 pm

Archlinux installed on Android/Termux with PRoot.
No hashtag before %wheel in sudoers. User belongs to wheel. Logged out by reset and relogged in.
Still can't sudo.
$this->bbcode_second_pass_code('', '
[alarm@localhost ~]$ whoami
alarm
[alarm@localhost ~]$ groups
alarm aid_inet aid_everybody aid_u0_a25_cache aid_all_a25
[alarm@localhost ~]$ groups alarm
wheel alarm
[alarm@localhost ~]$ id -G
1000 3003 9997 20025 50025
[alarm@localhost ~]$ grep /etc/group -e wheel
wheel:x:998:alarm
[alarm@localhost ~]$ grep /etc/group -e aid
aid_u0_a25:x:10025:root,aid_u0_a25
aid_inet:x:3003:root,aid_u0_a25
aid_everybody:x:9997:root,aid_u0_a25
aid_u0_a25_cache:x:20025:root,aid_u0_a25
aid_all_a25:x:50025:root,aid_u0_a25
[alarm@localhost ~]$ grep /etc/sudoers -e %wheel
%wheel ALL=(ALL:ALL) ALL
# %wheel ALL=(ALL:ALL) NOPASSWD: ALL
[alarm@localhost ~]$ sudo echo
[sudo] password for alarm:
alarm is not in the sudoers file.
')

Seems that the system confuses alarm (and everyone else) with the user called aid_all_a25, which is not in wheel.

Issue mirror on reddit: https://www.reddit.com/r/archlinux/comm ... cant_sudo/

Any idea what could be happening here?
champignom
 
Posts: 1
Joined: Sun Jan 08, 2023 1:49 pm

Return to User Questions

Who is online

Users browsing this forum: No registered users and 27 guests