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

learn more… | top users | synonyms (1)

1
vote
2answers
81 views

Error Using “sudo apt-get update”

I got the following error while using the sudo apt-get update command. :~$sudo apt-get update /etc/sudoers.d/90-cloudimg-ubuntu: syntax error near line 1 <<< sudo: parse error in /etc/...
17
votes
1answer
915 views

Get email notification for using 'sudo' by a specific user

I have a server set-up and I let somebody that I trust with a little bit of sudo access have it. However, I also want an email anytime that they use sudo. I know that I can use Defaults ...
3
votes
2answers
122 views

Run “sudo arduino” with .desktop file

To the close voters: seemingly a dupe, but not quite, at least not of the suggested one: in the linked question, the commands can be added safely to the sudoers file. In case of an IDE, it is a bad ...
2
votes
1answer
993 views

How to avoid someone using the “sudo” command to get unauthorized root access to my computer?

After understanding, what 'sudo' command does, I want to protect my computer from someone who wants to use this command for illegal purposes.
0
votes
1answer
26 views

Identifying an application using network

When I ran the following command sudo netstat -lantp | grep -i stab | awk -F/ '{print $2 $3}' | sort | uniq on the terminal to check which applications are using the network connection, I got the ...
0
votes
0answers
113 views

How to add permissions to use chmod 777 to an user from the sudoers file

I have been trying to modify the permissions of a Linux user on a cRIO. I installed sudo and modified the sudoers file with Vi and add this line: (I need at add permissions to access a file to a user ...
0
votes
1answer
109 views

How can I access recovery mode, Ubuntu 14.04 LTS? [duplicate]

I managed to delete my only user from sudoers group, and now I can't do any administrative tasks anymore. I have been looking for an answer hours, and I guess that part of the problem is solved. But ...
1
vote
1answer
25 views

“sudo matlab” logs in as demo version

I was using a demo version of MATLAB on Ubuntu 14.04 for the last month, before purchasing a license today. The licensing procedure required me to download a file, "license.lic" and then point the ...
0
votes
1answer
39 views

repair ~./profile file

I just messed up with ~/.profile, tried to add something to PATH, but looks like there was a syntax error in my code and now the login screen functionality won't work and I can use ctrl+shift+f1 tty ...
0
votes
1answer
39 views

How to login with root user? [duplicate]

I'm trying to do a login in my Ubuntu, but I can't: I read Q&A about enabling root user, but how I can do it without a sudoer user? How can I add a sudoer user without having root access? I ...
1
vote
1answer
40 views

Permissions error when sudo-ing

I'm following a simple installation guide and I have a noob question. The software I'm installing is Movim (the guide: https://github.com/movim/movim/wiki/Install-Movim) The 'Downloading' part of the ...
0
votes
2answers
47 views

Can we install a package through a shell script?

I'm trying to write a shell script so that when I reinstall my Ubuntu again. I could just run script and retain all the packages. And I'm planning to pass password in form of argument. My question ...
0
votes
0answers
21 views

Troubleshoot personal internet failure, vol. 2

This a follow-up from here: Troubleshoot personal internet failure, where: sudo service NetworkManager restart was proposed. However, Internet failure again today. I did the restart, but this didn'...
0
votes
0answers
30 views

sudo and su both not working

When I am running the command sudo apt-get update and after entering the password I am getting xxx is not in the sudoers file. This incident will be reported.. I have searched for this found ...
0
votes
1answer
24 views

Correct password cannot be authenticated to run Synaptic Package Manager GUI [duplicate]

I cannot access my synaptic package manager(in GUI) due to authentication error. Even though I enter the correct user password, it always say that "Your authentication attempt was unsuccessful. Please ...
1
vote
0answers
15 views

How to run a sudo command without a password where the command can be altered? [duplicate]

I know this question gets asked a lot but my situation is a little different. I am using Qt and the user has the ability to change timezones. Therefore, the following commands need to be used (America/...
0
votes
2answers
200 views

Ubuntu 16.04 sudo w/ NIS too slow, bind(2) lotta ports and remains lotta connection between the NIS domain server

The title says all. anyway, I just upgraded my server from 14.04 LTS to 16.04 LTS and I realized the sudo runs too much slower than 14.04. I strace'd and got following result: $ sudo strace sudo ...
0
votes
1answer
54 views

How to reverse these settings?

I followed the first answer give by user "dginsd" from here Discs in DVD Drive not being read because I couldnt mount a game I had on a DVD disk and thought that ubuntu wasnt seeing my DVDrom drive ...
0
votes
0answers
18 views

how to fix the following error: User is not in the sudoers file [duplicate]

When I try to install skype from the terminal I get the following: sudo apt-get install skype [sudo] password for tana: User is not in the sudoers file. It will be informed of this incident. Also ...
0
votes
0answers
9 views

How to Upgrade Ubuntu 13.04 [duplicate]

Lately I've gotten very involved with Linux Ubuntu, but I think I have a barricade in my way. Every time I try to upgrade via Software Manager, it says to check my Internet connection because it ...
0
votes
1answer
23 views

Protect root-owned script against tampering and run unattended w/ sudoers' NOPASSWD

Using /etc/sudoers I gave a non-root user (anyuser below) permission to sudo-execute a root-owned script (test-script below) with the NOPASSWD: tag set. The script's permission octal value is 0550. ...
0
votes
1answer
26 views

Getting to root [duplicate]

I've checked the question archive and can't find an exact answer to the following. I have just installed Ubuntu on a new PC. While I'm fairly proficient in lumbering about in MSs operating console, ...
0
votes
2answers
49 views

Visudo Command Not Working on Sudo User

I recently bought a vps and I have am fairly new to using ubuntu on it since I have always used shared hosting. I have created a sudoer user and it worked perfectly fine yesterday except when I ...
0
votes
1answer
18 views

Retrieving Files from Broken Ubuntu

I run Ubuntu 14.04. I recently ran the command sudo apt-get -f install, which, for some reason, ended up removing the boot files. So, I reinstalled Ubuntu on a different partition. However, I would ...
0
votes
0answers
117 views

`sudo hostname` checks hostname resolution - can I turn that off?

I am trying to get Vagrant working with Ubuntu 16.04 (xenial). Apparently there are recent changes to hostname when called with sudo and the output to stderr is interfering with the way Vagrant ...
3
votes
1answer
68 views

Automating SSH login gives unresponsive remote-shell, dropping back to client-terminal (without errors)

I have a problem with the tool expect under Ubuntu 14.04 LTS. I want to automate ssh logins to some Sophos UTM Firewalls and evelate my rights directly after with "sudo su -" and the correct password. ...
0
votes
0answers
18 views

Ubuntu sudo broken/other probelem, Ubuntu Server

So i have given accses to / for everyone, which at the time i did not know this basically breaks the system. Tried a few things nothing worked. So i reinstalled ubuntu, did the install normal for ...
0
votes
0answers
51 views

Failed to fetch error: Hash Sum mismatch

I can't update. I want to install GNU Radio also but system is not getting update. sudo apt-get install gnuradio also doesn't work.
0
votes
0answers
24 views

I'm a new user who's pretty lost

My problem is this: I'm trying to permanently disable my touchscreen because it is cracked and occasionally moves the pointer on it's own. I have tried the xinput solution but as many other forums ...
0
votes
0answers
24 views

Can't run any programs because of less permissions and how to give a user full sudo privileges ?(Ubuntu 14 Server)

So, I created a Ubuntu VPS with AWS. I am very new to Ubuntu so I need a GUI, therefore I installed TightVNC to use it from my Win 10 PC. Now here are the problems: 1) The server has a default user ...
3
votes
3answers
72 views

Can't Use SSH Keys Unless Running SSH With Sudo

For some reason I'm unable to SSH from my Ubuntu 15.10 machine to a remote server using a private key if I run ssh without sudo. Server side config is fine. I have tested the private key from my ...
13
votes
2answers
4k views

What is the name of the security concept that explains why Linux asks for root password?

Whenever I'm installing new software or making changes to the system, Linux asks for the root password. What is the name of this security concept and where can I research more information about it?
1
vote
1answer
94 views

Ubuntu terminal cant type special characters like backslash (\), slash(/), semicolon (:), etc properly

I'm running Ubuntu 14.04 without GUI and i'm having problems entering characters like backslash, slash, semicolon and so forth. The keys which would normally enter these characters print out all kinds ...
0
votes
0answers
31 views

what is the diffrence b/w “remove write-protected directory” & “descend into write-protected directory”?

am new to linux world, am practising basic commands, i tried to use rm command to remove directory/folder from current directory which was /, without providing super user permission or sudo. it says ...
10
votes
1answer
571 views

Accidentally mounted a partition on /usr

I mounted a partition on /usr accidentally. Hence, I have lost access to sudo command and can't unmount the partion. I am using AWS EC2 instance and don't have password for root user set. What are ...
0
votes
0answers
22 views

sudo chown -R $USER:$USER /usr/ [duplicate]

I got a problem, I run this command sudo chown -R $USER:$USER /usr/ And after that I got this error on every sudo I make sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set ...
0
votes
1answer
173 views

How to run GUI applications as root

UPDATE I would like to know which is the recommend way of running GUI applications as root, mainly because what I'm trying isn't running smoothly. I get some annoying warnings that makes me think ...
0
votes
1answer
18 views

How to start a process by another group using sudo

I wanted to start one process as a non root user with a group (non-root) by sudo. I added the line below in /etc/sudoers xyz ALL = (xyz:abc) NOPASSWD: <cmd> But I am always getting the ...
0
votes
1answer
35 views

Can't make a shortcut to work (properly)

I made a shortcut for PyCharm following this instruction (created a *.desktop file; before that I launched the application via terminal by sudo sh pycharm.sh comand). However, the shortcut I made ...
0
votes
1answer
302 views

Sudo apt-get update command is getting error

I am using Ubuntu 15.10 and 64-bit system. I am new to Ubuntu I am trying to use sudo apt-get update but I am getting error I am not able to understand what is wrong and I don't know how to rectify ...
2
votes
1answer
33 views

Make locally compiled programs request password graphically

I have an application that I downloaded from my class' website for our custom avr robot and it requires root privileges to send our binaries to the robot via usb. When I try to use it with sudo, the ...
3
votes
1answer
104 views

Difference between 'sudo apt-get' and 'sudo -E apt-get'

I'm using Ubuntu 15.10 guest on VMWare Player (7.1.3 build-3206955), with Windows 10 as the host OS. I'm able to use Firefox to browse the web inside the guest, however I'm unable to use apt on the ...
0
votes
0answers
22 views

How to restrict command using sudoer doesn't work

I created one user as filemanager. There are some users have to su as filemanager to run script which execute many commands. But SCP is not allowed for security reasons. I am trying to restricted '...
1
vote
0answers
59 views

Attempted to open Unity with sudo, now Unity messed up

It seems I really messed up with unity by trying to open a window as admin . I ran this in the command-line : User@Computer:-$ sudo unity /var/cache/apt/archives After that brilliant and inspired ...
1
vote
1answer
59 views

sudo passwd command with no-interactive mode

Context: I created a Virtual Machine with Packer for Vagrant system into a Ubuntu 14.04 server OS. All runs perfectly but this is a development VM (I'm alone on this) and I want to administer my ...
7
votes
1answer
855 views

Weird messages when using sudo

Whenever I run a sudo command in the terminal, this happens: arun@arun-GP70-2OD:~$ sudo apt-get update sudo: /etc/sudoers.d/README is world writable sudo: /var/lib/sudo writable by non-owner (040777),...
21
votes
3answers
1k views

How do I run a sudo command needing password input in the background?

I have recently disabled sudo's authentication caching ability so that it now prompts me for a password every time. And though this is good for security, it has caused one slight problem which I ...
1
vote
1answer
91 views

Difference between sudo -u and su -c

The following is being executed from an account with sudo privileges: I have a user tomcat created with the following command sudo useradd -g tomcat -d /usr/local/tomcat -m -s /bin/false tomcat I ...
1
vote
0answers
9 views

Please Help! Can't log into root Ubuntu 14.04 LTS [duplicate]

I am hoping someone can help me out here. For some reason my system has stopped letting me sudo. I can log into the machine just fine. When I attempt to install a package or sudo -i, I get asked ...
0
votes
0answers
23 views

How to copy data from a Mac formatted hard drive to local hard drive [duplicate]

I am a Windows user and new to Ubuntu, the reason I installed Ubuntu because I need to copy data from a Mac formatted (3.5" internal) hard drive (hd) (via an USB hard drive enclosure) to local hard ...