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
2answers
66 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
64 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
1answer
11k 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
174 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
1k 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
52 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
224 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
1answer
163 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
858 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 ...
55
votes
7answers
4k 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
88 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
555 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
3answers
5k 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
279 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 ...
46
votes
1answer
65k 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
97 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
168 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
359 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
1k 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
183 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
41 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 ...
0
votes
1answer
255 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
61 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
418 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
325 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
3answers
12k 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. ...
1
vote
2answers
268 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
154 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???
1
vote
2answers
134 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
1answer
410 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
303 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
11k 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
19k 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 ...
38
votes
4answers
10k 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 ...
3
votes
2answers
561 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 ...
0
votes
1answer
57 views

Visudo not working for specified files

I am trying to give sudo ability without the need of passwords to specific files. So far I have: employee ALL=(ALL:ALL) NOPASSWD: /home/file_name The file has a simple chmod command, in the bash ...
1
vote
1answer
81 views

Why does alien need sudo privilege?

I wonder why does alien need sudo privileges while converting a .rpm file to .deb in a non-privileged directory(eg. my home directory). Is this a security feature(which I believe is redundant, since ...
0
votes
1answer
204 views

cannot access tor ownership

I've tried the recommended options to gain ownership of tor browser and am still not successful. This is the script I got: sudo chown $USER-Rv~/.tor-browser chown: missing operand after ...
8
votes
1answer
1k views

How to check if sudo password has been entered for this terminal session?

As said in the headline, I need to check if the sudo password has been entered for this terminal session in a shell (aka, if I have sudo rights now). If I have it, I would like to do one thing and if ...
12
votes
2answers
25k views

sudo: unable to resolve host ubuntu-server

I have a problem with sudo. Every time when I trying to use sudo I got this problem: sudo: unable to resolve host ubuntu-server My /etc/hosts file: 127.0.0.1 localhost 127.0.1.1 ...
-1
votes
1answer
930 views

fatal error: log4cxx/logger.h: No such file or directory

I am getting this error whenever I am compiling my c++ code from command line. fatal error: log4cxx/logger.h: No such file or directory Is there any easy way to download the log4cxx package from the ...
1
vote
1answer
67 views

No battery indicator when logged in as second (non-sudo) user

I'm using Ubuntu 12.04 with Unity. I have a setup with two users, one with sudo privileges for admin use, and one without for daily use. When logged in as the non-privileged user, there's no battery ...
1
vote
2answers
260 views

How does command-not-found determines if user is administrator

I am administrator of two ubuntu servers. On one of them, when I try to run a command (for instance irb1.9.1) from a package that is not installed, I get the following message: The program 'irb1.9.1' ...
2
votes
4answers
8k views

How to enable root password in Ubuntu 12.04

Whenever I use the sudo su command to work as root, it does not ask my root password. How can I make it prompt for root password?
1
vote
1answer
2k views

How can I fix “dpkg: error: parsing file”?

... and what is sudo and where/how would I type the scripts I've seen in some related answers? Yes I am very new to Linux, and am using Ubuntu 12.04 LTS. All updates are failing with ...
2
votes
2answers
478 views

Problems with Sudo commands

I've been trying to install lamp server onto my ubuntu 12.04 LTS and i cannot get the sudo command to work. Been getting the following error everytime i hit/install anything with sudo.
0
votes
1answer
138 views

Unable to change permisions on windows partition disk

I need to change permissions of files in my /media/MAVEN/Projects MAVEN is my windows disk partition. The permissions on the Projects folder are: :/media/MAVEN/Projects$ ls -la \total 340 drwxrwxrwx ...
2
votes
1answer
87 views

Updater is not upgrading

I am using Ubuntu 12.10. I tried to upgrade it using the Software Updater, but it is not working even after pressing Upgrade button. Then I tried to upgrade through the terminal using the command sudo ...