Sorry, user "user" is not allowed to execute '/usr/bin/apt-get update' as root on
Asked Answered
P

2

6

I've installed Debian 7 and just executed sudo apt-get update and got this error:

Sorry, user xsma is not allowed to execute '/usr/bin/apt-get update' as root on ACS.ACS

my user is "xsma" and "ACS" is the name of the computer.

Palatable answered 19/4, 2014 at 0:26 Comment(3)
Can you actually run it as root?Sex
earlier, i could, but trying to solve this, i've made some changes and now even with root, it doesn't work, even after going back to the default configuration i don't understand!Palatable
Does it work if you actually log in as root (thus bypassing sudo)?Sex
P
8

I just solved this by reading Debian sudo page with two steps:
1) add the user to be sudo to the sudo group.
2) log out and log back in to gain that group's permissions.

Debian page said use: # adduser xsma sudo, while I had used # vigr and # vigr -s.

Particle answered 11/12, 2014 at 19:18 Comment(1)
This page askubuntu.com/questions/168280/… says sudo usermod -a -G sudo usernameDebut
M
-1

In linux, For any other linux distribution, give the command in terminal`

sudo visudo It gives super access to look codes of /usr/sbin/ (dir) go down, you can initialise any your own commands,file access,group and user privilege without root access initialise like this "(Your queries) ("ALL=(ALL:ALL) ALL " ,"You can costemize by your own needs" )

`

Mooned answered 18/3, 2023 at 13:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.