Hello,
I just installed for testing a new VM as follow :
- Rocky Linux 9 minimal install
- LVM partitioning
- Security Profile ANSSI enhanced
- Root account is not deactivated
- normal user “user” as administrator
whenever i try a sudo command i get permission denied…
When installing a package it fails :
--------------------------------------------------------------------------------
Total 84 kB/s | 36 kB 00:00
[Errno 13] Permission non accordée: '/bin/rpmkeys'
Les paquets téléchargés ont été mis en cache jusqu’à la prochaine transaction réussie.
Vous pouvez supprimer les paquets en cache en exécutant « dnf clean packages ».
or trying vi with sudo :
[user@localhost ~]$ sudo vi test
/bin/vi: ligne 23: /usr/libexec/vi: Permission non accordée
/bin/vi: ligne 23: /usr/libexec/vi: Succès
My user is in wheel group and the wheel group has all permissions in /etc/sudoers :
[root@localhost user]# groups user
user : user wheel
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
## Allows members of the 'sys' group to run networking, software,
## service management apps and more.
# %sys ALL = NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, LOCATE, DRIVERS
## Allows people in group wheel to run all commands
%wheel ALL=(ALL) ALL
One thing i noticed is that everything works when i get into “su” and is logged in as root directly.
I also checked this topic without result : Can't sudo su - or sudo -i
Thanks in advance for your help