Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sudo]

Questions related to the sudo command that allows users to run programs with the privileges of a different user (normally the root user).

-1
votes
0answers
14 views

Cannot make file system readable, I cannot access sudo commands or do anything with the drives

chip@chip:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sdb 8:16 1 14.6G 0 disk `-sdb1 8:17 1 14.6G 0 part /External mtdblock0 31:0 0 4M 0 disk mtdblock1 31:1 0 ...
0
votes
1answer
19 views

Local Workspaces Permissions Management and GitHub Integration

I have a folder ~/workspaces where I place all my local repositories from GitHub and other coding projects. I use VS Code and have had permissions problems since I installed Ubuntu a month ago. I ...
-1
votes
0answers
47 views

apt-get update without sudo for user

I am required to run apt-get update without prefix sudo for a user on Ubuntu 18.04 Opened sudo visudo and added entry: user ALL=(ALL) NOPASSWD: ALL apt-get update gives error Reading package ...
1
vote
3answers
78 views

Why can I not su to root?

I used sudo passwd root to set root's password successfully, then I tried to su to root, but it failed with no response. ubuntu@VM-44-117-ubuntu:~$ sudo su root ubuntu@VM-44-117-ubuntu:~$ You can ...
1
vote
0answers
10 views

localhost error [duplicate]

I changed ISP. My internet works fine, but I get this error when I run a sudo command in terminal: sudo: unable to resolve host localhost.localdomain How do I fix this error?
0
votes
0answers
13 views

dependency, sudo, and apt-get errors in Kubuntu

It's been awhile since I've used my Kubuntu system. I'm trying to upgrade to version 16.04 - and running into a series of problems: 1) When attempting to upgrade Kubuntu to version 16.04, I get the ...
0
votes
3answers
63 views

What is a sudo password? [duplicate]

I am prompted for a sudo password. Since I am a user at a very basic level of knowledge, I am very shaky in getting to the terminal and/or using the commands. When I am told to take the step "enter ...
0
votes
0answers
26 views

monitor service user account activity

I've a service account that has a full root access "user1 All=(ALL:ALL) NOPASSWD:ALL" . The user account is not used by a human user but it is used by an application which is running some bash and ...
0
votes
0answers
14 views

Incorrectly created file in /etc/sudoers.d file with visudo, but broke things [duplicate]

I tried to do what I thought the comments in /etc/sudoers was telling me: # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ ...
0
votes
0answers
24 views

sudo update-alternatives,why? [duplicate]

I came across these two commands sudo update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/bin/java sudo update-alternatives --set javac /usr/lib/jvm/java-8-openjdk-amd64/bin/javac Why ...
0
votes
3answers
42 views

What is the difference between sudo and sudo -H? [duplicate]

Sometimes I see in many websites' tutorials the use of sudo -H + command for example sudo -H gedit /etc/apt/sources.list. However I know that sudo gedit /etc/apt/sources.list can do the work. So ...
0
votes
0answers
11 views

pam_tally2 in Ubuntu 16

I have an issue getting pam_tally2 to work correctly on Ubuntu 16. I am using the default common-auth, common-account, and common-password. My Ubuntu 16 is patched to the latest patches. My OS must be ...
0
votes
0answers
17 views

Ubuntu 18.04 VM; unable to initialize PAM: No such file or directory

I'm trying to learn more about Unix systems, and am working on hardening an Ubuntu Server VM (using VMWare Workstation). In the process of which, I must have done something that messed with the pam ...
24
votes
6answers
4k views

Is Vim safe to use in combination with sudo?

It is not advisable to use sudo with a graphical application like gedit, as described at this link. Accordingly, I have tended to use vim with sudo. Recently I noticed my ~/.viminfo was owned by root ...
0
votes
1answer
16 views

How do I un-screw up a Python/Pip installation after doing the mistake of running sudo pip multiple times?

I did the fatal mistake of using "sudo pip" inside a virtual environment multiple times, and now all my virtual environments are a mess, failing in random ways when I try to install pip packages. I'm ...
0
votes
0answers
87 views

How to Resolve Service start-limit-hit

I am trying to run a Node.js API as a service, but am running into problems. When running systemctl status servicename.service I get the following error: servicename.service - [Service description]...
0
votes
1answer
53 views

Start Service with Sudo

I am trying to run an Express API server with sudo permissions and have it automatically start on boot. The API needs access to bcm2835 library, and I get the following when trying to run node server....
0
votes
0answers
30 views

How might I undo “sudo apt-get -f install”? [duplicate]

I inadvertently ran sudo apt-get -f install in my terminal which removed many core programs like sudo and screenshot, among many other programs. Is there a way to undo this without reinstallation? An ...
0
votes
1answer
27 views

How to get root access to my primary account? [duplicate]

I installed Ubuntu 18.04 just now. I removed windows 7 and installed Ubuntu as my primary OS. And the problem is it asks root password every time when I make changes in it. Thank you!
1
vote
1answer
38 views

Sudoers file editing

plz explain why use visudo to edit /etc/sudoers file and not vi /etc/sudoers and how does the file get corrupt. How can we restore the corrupt file?
0
votes
0answers
69 views

sudo is not working, syntax error in /etc/sudoers

If I use sudo, I can see this output: /etc/sudoers: syntax error near line 9 <<< /etc/sudoers: syntax error near line 10 <<< /etc/sudoers: syntax error near line 14 <<< ...
1
vote
0answers
36 views

How can i use sudo for freeipa user in ubuntu?

I have installed Freeipa client on Ubuntu, I am able to login using remote user credentials. But the challenge is that I'm not able to run sudo with the remote user. I have tried editing the /etc/...
17
votes
4answers
5k views

sudo: 3 incorrect password attempts - can root see the password in clear text?

If some user can't access some command with sudo 3 times, this should be reported to root user in access logs\errors.. Can root see these attempts (like passwords tried) in text in the logs?
0
votes
0answers
30 views

“user NOT in sudoers” when using RealmD, SSSD

Recently began joining our Ubuntu server to the domain for authentication. For the most part I have been successful and believe to have all configs identical on each system. However, ran into two ...
1
vote
1answer
74 views

What is the difference between a sudo and a root user? [duplicate]

I'm using the windows subsystem for linux, I'm very new to ubuntu and I can't get my head around the root user concept.
0
votes
1answer
51 views

Don't understand error message [duplicate]

malformed line 1 in source list /etc/apt/sources.list.d/home:stevenpusser.listn(type) E:The list of sources could not be read. Now I can't issue any sudo commands. This message is greek to me. I can'...
0
votes
0answers
14 views

I got “SUDO” crash after trying to install “Etcher” [duplicate]

Yesterday I tried to install Etcher via CL, it gave me blank screen.. when I tried to use the sudo apt; it gave me this message [E:Type 'sudo' is not known on line 1 in source list /etc/apt/sources....
0
votes
0answers
18 views

Permit sudo for Windows AD group not working well

I want to grant root permissions (sudo) for a specific Windows AD group(s) Here is what I added in the /etc/sudoers file %DockerLinuxUser ALL=(ALL) ALL %LinuxAmins ALL=(ALL) ALL %Admins\ du\ domaine ...
0
votes
1answer
23 views

Ubuntu 16.04.5 LTS (GUI stop but no command terminal)

I am new to Ubuntu Linux. I was trying to disable the GUI with one of the following commands_ sudo telinit 3 (OR) sudo systemctl stop lightdm. After typing one of these commands, the GUI stopped but ...
0
votes
1answer
68 views

kate saving a text file that needs sudo, opens a password dialog message

I use to have a setup that i could edit and save a file using (Kate text editor) that needed sudo privilage. On save it will show a dialog asking me for my password. This was really handy. But it is ...
0
votes
0answers
37 views

sudo causes pip error during python mysql connector install?

Attempts to install the python mysql connect via pip fail when sudo is used. What is the cause and remedy? user@host:~$ sudo pip install mysql-connector [sudo] password for user: Sorry, try again. ...
0
votes
1answer
24 views

How to Run Process Manager as Super User

I am trying to run an API on an Orange Pi. It is running Ubuntu and the API process is running via Node.js Express. I would like the process to automatically start running when the computer boots up, ...
0
votes
0answers
55 views

How do I reset the sudo user password in an Ubuntu 18.04 within WIndows 10 (WSL)? [duplicate]

I downloaded and installed Ubuntu 18.04 within Windows 10 from the Microsoft store. It does not appear to separately boot, and primarily provides Bash, which appears to work fairly well. During the ...
3
votes
1answer
154 views

How to add /usr/bin to path after I mistakenly removed it (sudo and nano are no longer in path) [duplicate]

Lets get this out of the way, I did something stupid. Yes, stupid. Very stupid. I am well aware of how stupid this is. I am embarrassed and I regret doing it. Please help. I was installing a program, ...
0
votes
0answers
34 views

How to immediately report sudo commands from standard account without asking for password?

In Ubuntu 16.04, I made the standard user log in without a password (from ubuntu settings), but sudo still asks me for a password [and typing nothing and pressing enter only registers as an "incorrect ...
0
votes
1answer
39 views

recover ubuntu packages

I accidently run the autoremove command and now my chrome, terminal, my software updater and many more apps are GONE. What should I do now and how do I install them? Please help me.
0
votes
0answers
49 views

VeraCrypt dismounting in console requires root password

I use VeraCrypt this way: Open the VeraCrypt GUI. Mount a container. Enter root password for mounting. But I need an option for "emergency" dismounting all devices. I know there is "hotkeys" in Win ...
0
votes
1answer
46 views

simplescreenrecorder: Permission denied

I'd like to use a location different to my home directory for recording videos using SimpleScreenRecorder. However, when I "Browse..." File -> Save as: I get the following error message: Could not ...
0
votes
1answer
42 views

how to completely remove all libraries installed using sudo apt-get install <1st_library_name> <2nd_library_name>, etc?

I installed Anaconda on Ubuntu 16.04 and created a new environment. Then I started following this link to install Opencv in new env. I installed each and every library/package using sudo apt-get ...
0
votes
0answers
32 views

Trusty - Sudo password?

I have a root user with password. I have another user "ubuntu". I have issued the root@server~$ deluser ubuntu sudo command. The system echoes that ubuntu was removed from the sudo group. However, ...
1
vote
2answers
2k views

How to install Unity3D on Ubuntu 18.04?

Is there any way to install Unity 3D without wine? P.s install from terminal will be good. Sorry for English...
0
votes
0answers
42 views

Not able to run sudo commands [duplicate]

sudo: unable to change to root gid: Operation not permitted sudo: unable to initialize policy plugin Getting the above two errors if I try running sudo apt install gparted or sudo killall nautilus ...
1
vote
1answer
47 views

Can't understand if sudo is working or not

I don't know what's wrong in my pc. It runs on Ubuntu 16.04. When I give sudo command, it asks for password. When I give password, it does not accept. sudo -i [sudo] password for alpha: Sorry, try ...
0
votes
0answers
85 views

Cannot open and update /usr/share/X11/xorg.conf.d/50-synaptics.conf

I am new to Linux and have recently installed Ubuntu 18.04. I need to edit the 50-synaptics.conf file in Ubuntu 18.04, but GKSU is deprecated, and when I run gedit admin:///usr/share/X11/xorg.conf.d/...
0
votes
1answer
29 views

I have “apache reload” in my sudoers file along with NOPASSWD, but it still asks

I thought this was a pretty simple process. I want to basically reload apache (since I'll be adding/removing virtual hosts frequently), but I cannot seem to be able to get Apache to reload without it ...
0
votes
1answer
269 views

sudo: /etc/sudoers is world writable [duplicate]

I'm using Ubuntu 16.04 LTS. In the terminal I was in the htdocs/project folder and I have run this command to change permission of current folder: asus@asus-X541UJ:~/Bureau/htdocs/project$ sudo chmod ...
0
votes
1answer
109 views

automatic script

I have an Ethereum node running and mining on a terminal in Linux. I want to create a script that will start up the node.sh roughly 2 minutes after startup. My script is in the home/chainskills/...
0
votes
0answers
17 views

Gnome/Unity doesn't elevate users in sudoers file

We use PBIS (PowerBroker Identity Service) to connect Active Directory to Ubuntu, which works OK in our environment. However, users logging directly into the console or via VNC are unable to elevate ...
0
votes
2answers
48 views

ubuntu unable to resolve host

I'm working on ubuntu 14.04. I cant login to my pc as a root user.I tried different ways and i cant still the issue. If i give sudo command the response is like > ubuntu@ubuntu72:~$ sudo su sudo: ...
2
votes
1answer
39 views

How to disable interactive dialogs in Ubuntu 1604 and 1804?

I found this question and basically had the same problem with my script. But! I am not running it with packer but with a simple script: DEBIAN_FRONTEND=noninteractive sudo apt-get update ...