CalculatešŸ§Forum

How to set up sudo in Calculate Linux => Solution

#1

Hi all,

If you like use sudo to launch some commands, i am going to show you how to enable sudo in Calculate Linux.
By default, sudo installed but doesnā€™t work.

adrien@oxygen ~ $ sudo ls
Password: 
adrien is not in the sudoers file.  This incident will be reported.

So, to enable it, connect you in root user, with your root password. :

su -

Execute the following command :

visudo

Uncomment this line (~ line 82)

 # %wheel ALL=(ALL) ALL

Save the file (If vi used : Esc and :wq!, If nano used Ctrl+O, Enter and Ctrl+X)

Before try, verify that your user is in the ā€œwheelā€ group :

grep wheel /etc/group

For me, itā€™s Okay :

wheel:x:10:root,adrien

If your user isnā€™t the wheel group, add it :

usermod -G wheel -a youruser

Logout your user and log in again to enable new rights.

:wink:

Mastodon Mastodon