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
0answers
15 views

Unable to install zlib1g-dev

I have a college project for which I need to install Multi2Sim. It relies on a dependency called zlib1g-dev. I get this message The 'zlib' library development package is missing in your system.Please ...
72
votes
12answers
92k views

How to modify a invalid /etc/sudoers file? It throws out an error and not allowing me to edit again

How do I edit an invalid visudo file? Here is what happens: $ sudo visudo >>> /etc/sudoers: syntax error near line 28 <<< sudo: parse error in /etc/sudoers near line 28 sudo: no ...
9
votes
1answer
744 views

How could I have dropped out of sudoers? [duplicate]

I started to receive a message dims is not in the sudoers file. This incident will be reported. about myself. How could this happen? The suspicious command I made was creating group "advanced" ...
5
votes
1answer
3k views

I accidentally removed myself from sudoers, how can I fix this? [duplicate]

I have one admin account and recently I have accidentally added myself to a single group (usermod -G without -a). So, I am not in the sudoers file any more. However, it is not possible to log in to ...
27
votes
5answers
6k 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 ...
1
vote
0answers
13 views

How to disable mpm-itk for a specific virtualhost?

I've a main site on a server that needs to run a sudo command which I white listed via visudo. That worked fine until I installed apache-mpm-itk and then I started getting the following error: sudo: ...
-1
votes
0answers
10 views

Permissions for /etc/sudoers.d/sudoers

I'm running Kubuntu 12.04. I've been getting the warning message /etc/sudoers.d/sudoers is mode 0444, should be 0440 whenever I execute sudo. So I decided to take the hint and changed the permissions ...
0
votes
0answers
15 views

When running a shell script using sudo I am getting no tty present and no askpass program specified

I am trying to build a project using jenkins. The project is based on node. I wrote a shell script that has only npm install command. I am running the shell script from jenkins as sh ...
0
votes
2answers
57 views

ERROR 1045 (28000) on mysql-server installation [duplicate]

I am new to Ubuntu trying to install MySQL. sudo apt-get install mysql-server php5-mysql then to create database directory structure sudo mysql_install_db Then to secure I use sudo ...
5
votes
0answers
115 views

Access to /dev/ttyUSB0 and sudo

This is my first question here. I am running Ubuntu 12.04 and have an application accessing the USB port of computer. My Ubuntu username is gadu. Until today, i've always used the following command: ...
0
votes
2answers
31 views

How to enable root account without sudo? [on hold]

I already installed debian 6. But when I logon (using my account) I can not access to internet "command ping not found", "ifconfig not founnd",... I tried to change to root account but the ...
44
votes
4answers
294k 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 ...
0
votes
0answers
31 views

My ubuntu is broken, error with gksu!

I keep getting this when is use gksu nautilus: shonn@shonn-Satellite-A505:~$ gksu nautilus Nautilus-Share-Message: Called "net usershare info" but it failed: 'net usershare' returned error 255: net ...
0
votes
0answers
12 views

How do i give the anonymous pipe to a file root privileges [duplicate]

If i go the a root owned directory (let's say root) and type: sudo echo test > test i get the following error: bash: test: Permission denied So the pipe does not keep the same user as the ...
33
votes
4answers
63k views

Difference between “su”, “sudo -s”, “sudo -i”

I already read it from manual but I can't see difference.. su - change user ID or become superuser sudo -s [command] The -s (shell) option runs the shell specified by the SHELL environment ...
1
vote
1answer
12 views

Enable NOPASSWD without manual interaction

I need to enable NOPASSWD for one user across 60+ hosts. I've only ever enabled it manually, using visudo. Is there a way to script this? I can easily log into all hosts as root, but I'm not sure if ...
0
votes
0answers
30 views

sudo command not working

When I try to use the command sudo mountall, the following error message appears: sudo: unable to open /var/lib/sudo/username/1: No such file or directory So how do I solve this?
-1
votes
4answers
1k views

How to use Vlc with sudo privileges?

I'm trying to use Vlc with sudo but it doesn't work. This is the error: VLC is not supposed to be run as root. Sorry. If you need to use real-time priorities and/or privileged TCP ports you can use ...
3
votes
0answers
51 views

Why do some commands in rc.local still need sudo to run?

I have added a command that runs "hd-idle". It seems to need to run as root as otherwise it does not spin down the drives as instructed. Behavior seems to be the same when executed manually or via ...
6
votes
1answer
250 views

How can I change the number of password entry attempts allowed by sudo?

By default, sudo prompts me to input my user password a maximum of three times if I input wrong password. How can I change it to unlimited times(?)? How can I make it so that it asks me for my ...
2
votes
1answer
46 views

How to find out which programs are taking up alot of memory?

I've been getting messages that I have exceeded my quota limits. I am new to Linux and am not sure what to do. With windows, I could easily just go to Control panel, add/remove programs, and uninstall ...
-1
votes
1answer
32 views

How do I access my window's files? [duplicate]

I recently replaced the Windows by Ubuntu and I have any files in my Disc. When I had Windows. How Can I Do to access $ sudo fdisk -l to I to recover my disc?
4
votes
3answers
3k views

I cannot delete files from root's Trash

I deleted some large files from nautilus launched as sudo. They still show in /home/.Trash-0/files/<foldername> when I type sudo sh -c "du -h /home | grep -P '[0-9]G\t'" but when I type sudo rm ...
16
votes
1answer
1k views

What does su > echo “<username>” mean?

When I was entering the command su > echo "sachin" it was asking for a password. When I gave my password, some strange things happened as you can see: One more thing: there is another user, ...
0
votes
1answer
39 views

How do i get permission to edit a file in /etc/? [duplicate]

I'm trying to modify a file from /etc/ but I can't, because the file I want to modify require root permission and I accidentally erase it. I tried to use some sudo commands but I can't because every ...
76
votes
10answers
93k 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
0answers
41 views

Sudo is working without password? Is this a bug? [duplicate]

sudo commands are running without any passwords. I had not made any setting to make something like "sudo without password" This view show how sudois running without prompting for password ...
-1
votes
1answer
25 views

Problem with Swap file Ubuntu 14.04

I have created a new user, write on /etc/sudoers - echo '<USERNAME> ALL=(ALL:ALL) ALL' , then I login my new user, and try to swap files with the following command: sudo dd if=/dev/zero ...
0
votes
2answers
26 views

How to change permission of a drive in an external hard disk?

I had an old laptop. When it got complaint I removed its hard drive and started using it as external hard disk. It has an 80 GB of memory allocation for the windows C drive partition. But now i don't ...
1
vote
1answer
85 views

Why does node.js need administrative permissions to access my windows share even though the share's premission is 0777

I have Ubuntu 14.04 running as a VMware guest on my Windows 8.1 host. I have shared a folder on my Windows Host and it is mounted in the Ubuntu guest on startup using this entry in fstab: ...
0
votes
1answer
3k 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 ...
1
vote
0answers
16 views

GUI anthentication doesn't work. No privileges

This is on Xubuntu 14.04 64-bit After a forced restart (due to nvidia overheating) I noticed that no sound was playing, and in fact pulseaudio showed only dummy devices. While looking for a solution, ...
0
votes
4answers
3k views

recovering sudo/recovering root ownership on system directories — how? possible?

I'm trying to find out the default ownership & permissions for my ubuntu install. I'm also trying to figure out whether the wrong-headed granted of file ownership to the user robert to system ...
0
votes
0answers
21 views

Does Sudo apt-get install always require an internet connection? [duplicate]

I was using my laptop (which doesn't have interwebs) and I was trying to install Birdfont and the Python IDLE (I was told both are in the list of software you can install without download) however ...
10
votes
1answer
9k views

Cannot lock '/etc/group' in recovery mode

I've currently booted into recovery mode, because I removed my sole user from admin :/ When I run adduser oadams admin, I get gpasswd: cannot lock /etc/group; try again later. For what it's worth, ...
1
vote
0answers
204 views

How to check if fstab file is correct without sudo?

I updated from saucy to trusy. After that, using sudo segfaulted: fkalter@London ~> sudo whoami [sudo] password for fkalter: YubiKey for `fkalter': [1] 16961 segmentation fault ...
-1
votes
1answer
40 views

Ubuntu 14.04 'sudo' and networking not working

I upgraded to Ubuntu 14.04 today and I have two problems 1) When ever i do 'sudo' followed by a command the system just stalls, nothing from 'sudo ls' to 'sudo apt-get install ... ' etc works. The ...
0
votes
3answers
3k views

sudo pecl command not found

I'm using ubuntu 12.04 I installed php pear using this command sudo apt-get install php-pear php5-dev I got this results Reading package lists... Done Building dependency tree Reading ...
1
vote
0answers
71 views

Ubuntu 14.04 - Jenkins User NOPASSWD configuration

I'm trying to make my jenkins user able to execute a script with www-data user so I've tried adding jenkins ALL=NOPASSWD:ALL at the end of my sudoers file but it didn't work, password was asked ...
24
votes
1answer
31k views

'sudo su -' vs 'sudo -i' vs 'sudo /bin/bash' - when does it matter which is used, or does it matter at all?

When I'm doing something that requires root be typed in dozens of times in a row, I prefer to switch my session to a root session. In the various tutorials and instructions I have used on the ...
0
votes
3answers
75 views

How to enable sudo passowrd?

I just installed Ubuntu 12.04 on a virtual machine in the Windows Azure Cluster. By default sudo is not requiring a password. I would like to force a password on all sudo commands. How do I go ...
0
votes
0answers
17 views

Questions about checking for badblocks on a almost-definate bad HDD, I am new to Ubuntu

Heres the deal, I'm on an Asus x53sv-mh71, it's my friend's laptop. He dropped it about a month ago, and it stopped working about a week afterward. Wouldn't boot past the "starting windows" logo. I ...
-1
votes
1answer
76 views

sudo chmod 755 /dev/sda7 -R simply returns a new command prompt line?

I am logged into my computer through the guest account, because i am unable to login through the master/admin. account via user interface. (Simply a blank, blue screen appears upon login.) So i'm ...
1
vote
1answer
61 views

How to get root permission inside qt program?

I run my QT app without sudo permission but during running phase of the app I need to install the .deb so I am running the command dpkg -i mydeb.deb with qprocess in QT or some other commands which ...
0
votes
1answer
57 views

Superuser 'permission denied'

I wish to run a script in the root directory. The script is /opt/poky/1.6/xx If I log in as a superuser in Ubuntu 14.04 using sudo -i and my own password, I can see this file using ls /opt/poky/1.6/. ...
15
votes
9answers
16k views

How to run an Application as another user?

I use krusader for file management stuff. the problem is that apache's DocumentRoot should be under chown www-data:www-data /path/to/www. so using krusader (which is run under my account) I've not ...
10
votes
1answer
25k views

How do I remove Ubuntu's password requirement? [duplicate]

Here are my circumstances: I am running Ubuntu 12.04. I have one user account. I absolutely hate the password requirement. How do I disable this requirement such that my Linux computer will behave ...
4
votes
5answers
1k views

Should I use “sudo” before “make install”?

I am installing the latest FFmpeg from this guide: In some places it suggests performing make install without sudo, here is a single example of several: cd ~/ffmpeg_sources wget ...
4
votes
2answers
281 views

How can I change the default editor of the sudoedit command to be vim?

I'm trying to use sudoedit, but it keeps running the nano editor. My preferred editor is vim. How can I make it the default? Looking at the man page, man sudoedit, I've noticed the following: ...
18
votes
6answers
32k views

How to run an application using sudo without a password?

... but still be required for applications that need admin privilegies? In order to allow the following: $ apache2ctl restart httpd not running, trying to start (13)Permission denied: make_sock: ...