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)

0
votes
1answer
4k views

Starting and Shutting down LAMPP with sudo access

I have read somewhere on net that we can install LAMPP (apachefriends.org/en/xampp-linux.html) in such a way that any user can start and/or stop LAMPP server using nobody Is is possible? Let me know ...
17
votes
8answers
49k views

/usr/bin/sudo must be owned by uid 0 and have the setuid bit set

I have run following command accidentally sudo chown [username] -hR / Now sudo su getting error: sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set How to Solve This?
1
vote
2answers
922 views

unable to use synaptic via launcher

When I open synaptic via launcher on gnome-panel, it opens and asks me for the password but if I enter the password, it says its wrong even though the password is correct and it used to work OK few ...
237
votes
16answers
282k views

Error message when I run sudo: unable to resolve host (none)

I have this issue on AWS on some servers. Whenever I run sudo the terminal is stuck doing seemingly nothing, until it finally spits out this error message. My terminal looks like this: ...
0
votes
1answer
12 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 ...
3
votes
1answer
4k views

sudo: unknown uid xxxxx: who are you?

I was using ssh and trying to upgrade a system from Ubuntu 10.04 to 12.04. The connection had an issue so I had to login again to finish the upgrade. After running sudo dpkg --configure -a that was ...
0
votes
1answer
21 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
24 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 ...
3
votes
1answer
45 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. ...
1
vote
1answer
27 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
0answers
18 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 ...
0
votes
0answers
11 views

Edit sudoers file

some time ago I posted this question about conky and solved that problem. I used U 12.04 LTS. Now I use U16.04 LTS and I'm tryng to set conky as the previous distro. If I edit the sudoers file with ...
0
votes
1answer
32 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
2answers
31 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
22 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
63 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 ...
2
votes
1answer
967 views

Run script with arguments as sudo without being asked for password

I have two programs in Java that I'm calling from bash script: java program1 arg ... arg sudo java program2 arg ... arg I want to run program2 as sudo without being asked for password. I'm aware of ...
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 ...
1
vote
2answers
699 views

sudo: file permissions

If I create or modify any file or directory with sudo then permissions go to root only. And it seems that I need to use sudo in order to do some things in ubuntu. For example, I can't seem to mount a ...
3
votes
1answer
55 views

How to disable the password prompts?

I've have Ubuntu 15.04 on my laptop and just about everything I do requires me to enter my password. What do I have to do so I don't have to keep entering my password?
0
votes
3answers
2k views

Can't run shellscript with sudo

When I try to run my script like this: sudo ./connector.sh It give me this: sudo: ./connector.sh: command not found What am I doing wrong?
0
votes
1answer
11 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. ...
1
vote
1answer
4k views

Adduser: group sudo does not exist

I am able to login to my account but can't do anything related to superuser now. Updates, sharing, sudo and all things say authentication failed. I tried to correct that by going in recovery mode and ...
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 ...
10
votes
2answers
25k views

How to solve “sudo: /etc/sudoers.d is world writable”

How can I fix the following error with sudo? /etc$ sudo sudo: /etc/sudoers.d is world writable usage: sudo [-D level] -h | -K | -k | -V usage: sudo -v [-AknS] [-D level] [-g groupname|#gid] [-p ...
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
22 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
30 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
14 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
78 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 ...
1
vote
1answer
7k views

How do I get into recovery mode on ubuntu 14.04 if the option not showing

I just boot up my laptop then run the sudo apt-get update command, but there's an error says: [username] is not in the sudoers file. This incident will be reported. so I search the google ...
0
votes
0answers
17 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
37 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
23 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
3answers
23k views

no space in disk; sudo apt-get clean not working

I have been trying to update my xubuntu version but it keep saying there's no enough space on disk. The window says me to execute "sudo apt-get clean" but I have no answer. It just don't do anything. ...
33
votes
5answers
12k views

How to NOT become a root user? Are administrators root?

I installed Ubuntu on my PC. To log in, I use the username and password I created during installation. Does this mean I am a root user? If yes, then how do I become non-root? It looks like non-root ...
9
votes
6answers
6k views

Disabling shutdown command for all users, even root - consequences?

I would like to disable the shutdown command for all users, even root, on an Ubuntu Server installation. The reason I want to do this is to ensure that I don't get into the habit of shutting down the ...
21
votes
7answers
64k views

How to avoid prompt password for sudo?

I know I can go root (super user) via the su command but I have to authorize it after firing the commands. Is there a way I can go root and authorize (with password) in one line
0
votes
0answers
17 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
39 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 ...
11
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?
106
votes
4answers
685k views

How do I start/stop mysql server?

I try find in internet some article where describe how correct start -stop mysql server. I find this article: How to start/stop MySql server on Ubuntu 8.04 | Abhi's Blogging World I run this ...
2
votes
6answers
8k views

How to add Domain Admins to sudoers

There is a similar question that has been answered; so, I'm not sure if I should tag on; not believing that I should, I'm proceeding. I'm running Ubuntu 14.04 and have joined our Windows domain using ...
1
vote
1answer
56 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 ...
1
vote
3answers
5k views

nvcc not found, but only when using sudo

I can't get ANYTHING working on linux. I'm trying to compile CudaMiner. sudo make: ypt-jane.o `test -f 'scrypt-jane.cpp' || echo './'`scrypt-jane.cpp mv -f .deps/cudaminer-scrypt-jane.Tpo ...
0
votes
0answers
25 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 ...
-2
votes
0answers
50 views

Warnings while running graphical apps as root

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 whether I'm ...
10
votes
1answer
563 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
1answer
138 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
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 ...