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
1answer
307 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
3answers
426 views

sudo (not I) remember my password [closed]

Trying to upgrade my ubuntu. I haven't used it in a while and want to upgrade it to 13.10 I understand I have to go from 12.04 to 12.10 to 13.04 to 13.10. But when I am in the terminal and enter ...
3
votes
1answer
2k views

“user is not in the sudoers file”, how to read the incident reports?

Many times I got warning/notice while accidentally tried to do some privileged action using my non-root account like below, gulu@workpc:~$ sudo apt-get update [sudo] password for gulu: gulu is not ...
6
votes
1answer
364 views

How to configure pkexec to not ask for password?

I have a GUI application that needs to call a daemon (written in Python) with superuser privileges. I would like to do this without prompting the user for a password. Since the daemon is a script, I ...
0
votes
2answers
54 views

Error while installing update [duplicate]

I am very new to ubuntu. I have Installed today only. I tried to update software by typing comnmand in Terminal as pranay@Hom-lnx:~$ sudo apt-get update && sudo apt-get upgrade [sudo] ...
0
votes
0answers
62 views

Why I am not able to update my system with sudo apt-get update command? [duplicate]

I am trying to update using sudo apt-get update, but it do download some packages but after some times I get the following errors W: Failed to fetch ...
0
votes
0answers
29 views

Lubuntu - unexplained message when hibernating - several users logged in but I'm the only one using it

Since quite recently, my laptop doesn't hibernate properly. Whenever I want to select an option, I get a message saying You need to authenticate as a super user to hibernate while several users are ...
0
votes
0answers
114 views

Run a specific program as root without asking for password everytime [duplicate]

I am using ubuntu 12.04 LTS and Many times, i need to connect modem using SAKIS-3G script and because modem-manager sucks many times. I need to supply admin/root password, everytime i need to run ...
0
votes
1answer
4k views

How to install OpenGL version 2.0

How can I install OpenGL 2.0 on Ubuntu? Long Version: This Ububtu is running in a VM (VMWare). I wanted to use kivy for developing a GUI. I encountered many errors. I have searched around and those ...
0
votes
2answers
74 views

How to log in to admin account from a non-admin account?

I have an admin account with sudo privilege. I have created a new user but haven't given a sudo privilege to it. Then I logged in as that new user: sudo -i -u foo_user Now I want to get back to my ...
2
votes
1answer
705 views

Where's runuser?

I'm making an upstart job, and I need to run an executable as another user. Nothing fancy like su provides, and none of the mixed-up SELinux contexts that come along with it. A quick internet search ...
1
vote
1answer
41 views

Changed suoders to an account that doesn't exist, what should I do

I've installed ubuntu 12.04 with single user, let's call him user1. I then created a new user, let's call him user2. I wanted user2 to be the only user with sudo rights, so I removed all users from ...
3
votes
2answers
151 views

Why only sudo'ers can execute the file?

How is it possible that to be able to execute a binary file with 755 permission, one has to be in sudo'ers list ? I am trying to let a program run by a non-sudo user. It does not happen, but if I ...
0
votes
0answers
90 views

I m not being able to install LEX and Yacc in ubuntu.

I m not being able to install lex and yacc in ubuntu. I m not being able to download the analyzer as well. I have tried the command sudo apt-get install byacc flex. Its urgent please
0
votes
1answer
95 views

Sudo unable to resolve host? [duplicate]

I enter this command in PuTTY: sudo ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin But it returns: sudo: unable to resolve host mysite.com Any suggestions on how I can fix this?
-1
votes
2answers
444 views

How to create a root privilege file for a normal user?

I got a scenario where a customized Ubuntu 12.04 Linux OS has a read only filesystem which doesn't have terminal access. My goal is to create a file with root access using normal users permission. I ...
45
votes
6answers
3k views

What does `!!` mean in `sudo !!`?

I am a user of Ubuntu with not much experience and I have been using sudo. What does sudo !! do and how?
0
votes
1answer
54 views

How to set the superuser bit?

I have a backup script that contains several "sudo" commands. I don't want to have to type my username and password each time I run this script. So, I tried to add the "SUID" bit like this: sudo ...
1
vote
3answers
175 views

Restore accidentally with rm'ed pam.conf?

I have accidently removed the files /etc/pam.conf and /etc/security/pam_env.confusing rm. Now I get this error message when I try to use sudo: sudo: unable to initialize PAM: No such file or ...
2
votes
2answers
3k views

`pip: command not found` but it's installed

sudo easy_install pip Searching for pip Best match: pip 1.4.1 Processing pip-1.4.1-py2.7.egg pip 1.4.1 is already the active version in easy-install.pth Installing pip script to ...
1
vote
1answer
160 views

Why does the “who” command not show “root” as a logged in user?

When I log in as root from gnome-terminal using the command: sudo su it logs me in as the root user. Isn't this switching a user considered as a log in? Also, which command can show me all the ...
0
votes
0answers
167 views

Never wrote password when setting up crouton on Chromebook, how do I set it up?

Since it never showed anything as much as I typed, I thought it was a bug so I just pressed enter 3 times until it let me set up my account without a password. But now I want to run Unity from sudo ...
11
votes
1answer
18k 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
2answers
82 views

unable to install any software using sudo command

I am unable to install any software using sudo command; rahul@rahul-VPCEA33EN:~$ sudo apt-get install vlc E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: ...
2
votes
0answers
139 views

How do I reinstate my admin user privileges to global read/write

I am running Ubuntu 12.04 LTS. I only have the one user which I created when I installed Ubuntu. Everything has been fine - love it - until I updated a software package recently from the command line ...
2
votes
1answer
2k views

apt-get not using http_proxy in ubuntu 13.10

I just updated from Ubuntu 12.04 to 13.10 In 12.04, I used to set up my http_proxy variable in .bashrc and then use apt-get as follows sudo -E apt-get update The -E option in sudo used to make the ...
2
votes
2answers
184 views

What is meant by “no password set” for root account (and otthers)?

Several years back, we were more accustomed to changing to the root account using the su command. First, we switched to the root account, and then executed those root commands. Now we are more ...
0
votes
1answer
436 views

Is sudo dd taking too long to wipe hard drive?

I have a 200gb HDD which I removed from a macbook due to several corrupt files in startup. One thing led to another and I decided that I needed to format the drive. I used the command sudo dd ...
0
votes
1answer
122 views

Howto run jupiter script as superuser in lubuntu-rc.xml?

I'm trying to bind to my asus eee hotkeys couple of jupiter functions to work as on Windows. The problem is that I have to run those as superuser. Under terminal scripts are working fine so I put in ...
1
vote
3answers
36 views

Issues running commands

Every time I run a command I get this back. E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ E: Could not open lock ...
1
vote
0answers
32 views

How can I stop a process from moving to the background?

I have a machine running Ubuntu server version 12.04.3 LTS. On it, I'm attempting to run a node.js server that needs to stay up and running at all times. I'm running into an issue, however, where ...
0
votes
0answers
27 views

untrusted packages - sudo access denied

all my installations require installation of untrusted packages, and by clicking ok on it I get nowhere. Than I try to do something through terminal according to posts on this site and than I get sudo ...
0
votes
1answer
66 views

problem in uninstall chrome. i got error so that i could open ubuntu software center too

sir i installed chrome by typing following commands: sudo add-apt-repository ppa:a-v-shkop/chromium-dev sudo apt-get update sudo apt-get install chromium-browser then i got big error i can't ...
1
vote
1answer
49 views

Can I make sudo time out during hibernation?

I had hibernated my laptop using sudo pm-hibernate and then woke it up some hours later to quickly check a document. I re-entered the above command and it worked without requiring a password. I ...
0
votes
2answers
129 views

Lost access to sudo

sudo: unable to resolve host I think I need to edit the /etc/hosts file to make an entry for 127.0.1.1 PC name. But how can I do that if I can't access sudo? It seems to have gone since I updated ...
0
votes
1answer
125 views

Accessing sudo from a non-administrator profile

I have had Ubuntu for a few months by now, and I have set up an administrator profile and a 'normal' account, which I use for everyday work. Sometimes I need the admin profile, e.g. to install ...
0
votes
0answers
195 views

Cannot open display under Superuser

I am running Ubuntu 12.04 under VirtualBox. Everytime I try to open a graphical application from the terminal as superuser, I get an error: user:~$ sudo gedit Cannot open display: Run 'gedit ...
0
votes
3answers
3k 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. ...
0
votes
2answers
192 views

i am not able to install flash plugin in firefox and chromium

youtbe videos are not playing on my system. system asks me to install latest flash player. and when i do so, i am getting the response "unable to change to sudoers gid: Operation not permitted" the ...
0
votes
1answer
94 views

Ubuntu Opera works only with root rigths

Opera doesn't start if I don't start it with sudo opera. Which can be the problem???
0
votes
0answers
280 views

member of group sudo can't sudo

1) why can't I invoke sudo if one of my groups is sudo? 2) also I have noticed that /etc/sudoers needs sudo privileges. sudoers.so doesn't exist in /usr/lib but does in /usr/lib/sudo is this correct ...
1
vote
2answers
101 views

Why doesn't sudo -S work for 'mysql' command?

I generally run sudo mysql database < database.dump and type the password on prompt. In order to automate this, I tried to execute echo 'password' | sudo -S mysql database < database.dump but ...
0
votes
1answer
1k views

sudo does not work in GUI after upgrade to 13.10

On 2 completely different machines I have the same problem after upgrading from 13.04 to 13.10: All programs/task requiering sudo permissions (software updater, starting synaptic, installing programs, ...
0
votes
0answers
42 views

Wrong theme with kdesudo

A while ago I installed Kubuntu on Ubuntu (then 12.10) with sudo apt-get install kubuntu-desktop. Ever since I've got a problem when running some gui applications as root. For example when running ...
0
votes
1answer
248 views

get list of all commands run in past with sudo apt-get install in terminal

As per command history in Ubuntu terminal we can see all previous command we run on system. I want to know how can we get all previous command which starts with some words/characters. Example : i ...
1
vote
1answer
179 views

Should I use a separate 'admin' user as my “root sudo” or grant sudo to my 'app' user?

I'm still wrapping my brain around the Ubuntu 'nullify root' user management philosophy (and Linux in general) and I'm wondering if I should 'replace' my root user with a user called 'admin' (which ...
1
vote
3answers
3k views

Sudo not available in guest login

When I login as guest I am unable to execute any command with sudo. E.g.: sudo ps returns: sudo: unable to change to sudoers gid: Operation not permitted How can I fix this?
3
votes
1answer
6k views

Open file or application as root from GUI

Is it possible to open a file or application as root from the GUI? My ideal would be right-clicking on a file or an application and seeing an "Open as Root" choice in the context menu, after which I ...
37
votes
4answers
4k views

Why do we need to be root in terminal for shutdown and restart?

When we install/remove/update packages or make any changes which require administrative privileges we are prompted for the password of admin user who has the sudo privileges - this happens both via ...
2
votes
2answers
325 views

Why doesn't the command do-release-upgrade doesn't require sudo?

I was wondering why the command do-release-upgrade doesn't require sudo? I mean, it does significantly change your system, so I would have guessed it requires sudo. This is from ubuntu self, but it ...