apt install error

i need to install redis on the server,
when i run the command: sudo apt install redis-server
it returns: Sorry, user admin is not allowed to execute ‘/usr/bin/apt update’ as root on ..***

why does it give me this error? even though i’m logged in via ssh with the admin?

Because admin is not root.

sudo -i or sudo su - and then apt install redis-server

Note: you must use the sudo command from a user that has the privileges to do it (admin user has restricted access to use sudo only for commands in /usr/local/hestia/bin/)

1 Like

thanks for the reply, I tried the two commands and it returns:

Sorry, user admin is not allowed to execute ‘/bin/bash’ as ​​root on ***

Sorry, user admin is not allowed to execute ‘/usr/bin/su -’ as root on


how can I do?
do I need to recover the root user?
where is it?

thank u

I don’t know whether you saw my note.

1 Like

I read, I need to install redis on the server because I have laravel that needs to run queue operations.

I only have the admin user,
I took over the server from the client,
is it possible that I lack the root user to do these operations?
what do I have to do to recover the root user to then be able to launch the commands for installing redis?

thanks

You need:

1.- A user that can execute sudo su - or sudo -i or sudo apt whathever

or

2.- Direct access with root user via ssh or via the console provided by your hosting company.

1 Like

how to obtain this, from cp i can set this rules?

yes how can i recover it?

Ask the client what was the user they used to logon to that server, maybe it was the user ubuntu or similar. And as I said, access to the control panel of your hosting company and use the console to access to the server.

Also, if you have the root password, you can use su - and provide the right password for root user.

the problem is that my client no longer has the root user password and the user…

how can I recover them?

when i access to server via login i can retrive a console

Ask your hosting provider, there isn’t a magic way to recover root access from an unprivileged or limited user like admin.

I don’t know what that means, if you mean ssh no, I’m not talking about that console, I talk about the console provided by your hosting provider from their control panel… but maybe they don’t provide it, I don’t know, ask your hosting company, they are the only ones able to help you to recover your root access.

1 Like

i am with Aruba, how to log as root in the server?

thank u

If you don’t have the password you won’t be able to logon as root.

If you are using Aruba Cloud VPS take a look to this info (click on Cloud Server Debian -Ubuntu) ro try to change the root password:

Resetting the access password | Kb.Arubacloud.com

If you have any doubts, please contact to Aruba support team.

1 Like