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
3answers
12k views

sudo su fails with 'Unable to change to sudoers gid :operation not permitted.' fault [closed]

I have installed ubuntu and now I want to install flex. It asks for password but when I type my password, it asks me the password for root. When I enter the password which I had specified during ...
10
votes
2answers
429 views

how to be warned if terminal has sudo privileges and also show how much time is left?

How to see in the terminal that you have sudo privileges? (so knowing I have these privileges, I can just type sudo -k) It would be better to not add too much information into the terminal also, just ...
2
votes
1answer
2k views

Sudo apt-get update command does not work

I'm trying to install Java onto my Ubuntu 11.10. I've managed to get some repositories from where to download the installer, but whenever it gets to the point of updating the resources (a.k.a. sudo ...
25
votes
3answers
12k views

Why doesn't `sudo cd /var/named` work?

I want to cd into /var/named but it gives me a permission denied error, and when I want to use sudo to do this I am not permitted. What is the technical reason for this, and is it possible to do this ...
1
vote
1answer
725 views

problems with /etc/sudoers

I am running ubuntu 12.04 on i3 laptop. By mistake I changed the permissions and changed the user(from root) of /etc folder and I am getting a error when trying to use sudo like: sudo: /etc/sudoers ...
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 ...
2
votes
1answer
8k views

Sudoers NOPASSWD for command not working but ALL is

I've been trying to grant www-data to use sudo service apache2 restart without a password but no matter what I try, nothing works. I have read a few hundred posts regarding this issue on different ...
2
votes
1answer
190 views

Auto-completion does not work with sudo mount

I'm using 12.04.2 and auto-completion for mount does not work with sudo. If I don't use sudo auto-completion works as expected: $ mount --bind -t devpts /dev/<press tab> block/ char/ ...
1
vote
1answer
205 views

What is the right way to gain sudo privileges [duplicate]

I have just created a new Rackspace cloud server and I need to set it up. I created a new user with the adduser command and currently the user is only in a group with the same name. For the sudo ...
-1
votes
1answer
847 views

Python script to change the jack from input to output does not work in 13.04 [closed]

To change the jack from input to output for any computer or laptop I followed this question: How do I change which audio jacks are used for input and output? But the Python script does not work. ...
0
votes
1answer
223 views

Connecting to wrong IP

sudo apt-get update When I try this command on terminal it says: 0% [Connecting to 107.108.85.10 (107.108.85.10)] [Connecting to 107.108.85.10 (1 Which I'm not sure is which IP... It's definitely ...
0
votes
1answer
60 views

how do I get dhclient to start when I login and start as root?

I've messed up my ubuntu. I uninstalled something that network-manager depended on and now I have to start the dhclient manually every time I log in. I've got a script that does the sudo dhclient eth0 ...
1
vote
1answer
532 views

Upgrading from 12.10 to 13.04 -> dpkg: error processing sudo (--configure)

Here's the deal and reason I'm asking for your help. Last night I went on upgrading my Xubuntu 12.10 installation to 13.04, so at tty1 I run the command sudo do-release-upgrade and everything ...
10
votes
1answer
2k views

How to configure pkexec?

Reading these questions and answers: When to use pkexec vs. gksu/gksudo? Why is gksu no longer installed by default? brought me another one that will create problems for new users of that ...
0
votes
1answer
184 views

sudo su automatically

It is possible to log in automatically as root after typing sudo su - without entering password again? I know it is not safe, but I want this behavior just for specific IP addresses Thank you, Alex
2
votes
3answers
5k views

Firefox doesn't launch in Ubuntu 13.04

Firefox starts when I use sudo in the terminal, but not from the launcher. All the other apps work like a charm, just not Firefox. How can I fix this?
1
vote
0answers
162 views

stty doesn't reset with sudo after Ctrl + C

Let's say I have following simple PHP script: misan@thrope:~/tests$ cat stty.php <?php shell_exec('stty -icanon -echo'); // exit; $fh = fopen('php://stdin', 'r'); while (!feof($fh)) { $c = ...
0
votes
1answer
531 views

sudo environment

Is there a way to use config files for use with sudo? For example a .bashrc, .gitconfig, or an emacs init.el Specifically I wanted to get LSCOLORS in sudo commands. I know that I can put these ...
1
vote
1answer
459 views

Can't access GUI mode with Virtual Box fresh 12.04 install

Trying to install 12.04 in virtual box. Install went great after restart I get a white error box talking about my graphics. Basically I get options to look at different log files or I can run without ...
2
votes
0answers
120 views

How can I configure sudo to prompt for password and show the executed command?

The title says it all. How can I configure sudo to prompt for password and show the executed command? Rationale: if something gets aliased in the shell or I end up executing a function sudo instead ...
0
votes
1answer
1k views

How can I delete my printer from Ubuntu?

Using 12.04 my printer a canon ip2600 will not print. SystemSettings/printers shows it as installed, connected to local host, enabled, accepting jobs, shared and allowing printing for everyone. Yet ...
1
vote
1answer
779 views

permission denied as root

I am trying to run chown on a directory and I get a permission denied. I have tried running sudo and also running the command as root. If root doesn't have permission, how can I change the owner of ...
5
votes
2answers
6k views

What's the difference between 'sudo [command]' and 'sudo sh [command]?

I'm trying to install VMware Workstation in my Ubuntu 12.04.2 LTS. If I execute the following command: sudo ./VMware-Workstation-9.0.1-894247.x86_64.bundle it finishes at once and the installation ...
5
votes
1answer
2k views

“Permission denied” error when editing /etc/ld.so.conf

When I run this command it fails: sudo echo '/usr/local/lib' >> /etc/ld.so.conf bash: /etc/ld.so.conf: Permission denied I don't have any problem running sudo for other tasks. I am using ...
2
votes
0answers
332 views

Lubuntu 12.10 asks for super user before prompting for wifi password

I have installed Lubuntu 12.10 on an HP Mini netbook, which required the bcwm source package for wifi to work. (Somehow standard ubuntu didn't need it but it was too resource hungry for the netbook.) ...
2
votes
0answers
137 views

Prevent that TrueCrypt gets Administrator rights

If I try to open a TrueCrypt drive, TrueCrypt asks me for my administrator-password (also when I am a normal user). I know, that i can prevent this password-asking by editing the sudoers file = giving ...
11
votes
1answer
1k views

Why I have to type my password after exiting a sudo -i session?

sudo -i in the terminal will made normal user into root user & after changing into root user if we exit then again we will be back to normal user.If we try again , next time it directly takes me ...
0
votes
1answer
46 views

Cannot access the hardware

Last night I did a very stupid thing by changing the owner of the directory /usr using the following commands su password: chown username:username /usr Now the problem is that I cannot access the ...
0
votes
1answer
1k views

Fatal error: Couldn't find any fabfiles!

I need to execute the command sudo fab deps_local, but I get this message: Fatal error: Couldn't find any fabfiles! Remember that -f can be used to specify fabfile path, and use -h for help. ...
4
votes
2answers
9k views

sudo: /usr/lib/sudo/sudoers.so must be owned by uid 0

Whenever I try to do anything at all that requires my password it returns this: u7ur7l3@ubuntu:~$ sudo sudo: /usr/lib/sudo/sudoers.so must be owned by uid 0 sudo: fatal error, unable to load plugins ...
-1
votes
1answer
252 views

sudo fab deps_local

I executed sudo fab deps_local in Ubuntu's terminal and got the following output: [localhost] local: sudo easy_install pip Searching for pip Reading http://pypi.python.org/simple/pip/ Reading ...
2
votes
0answers
3k views

Keep getting “sudo: unable to resolve host” [duplicate]

Everytime I type in sudo it says that after it. I tried following others instructions, but it says bash: /etc/host: permission denied.
13
votes
2answers
2k views

Why am I suddenly not a sudoer anymore? [duplicate]

I booted up Ubuntu 12.10 today, and when trying to sudo, I entered my password as usual but it had said I'm not a sudoer. So I go and check my account under User Accounts, and for some reason Im now a ...
0
votes
2answers
2k views

PATH variables dont work with sudo command

If I put a root into my path variable like so: PATH=$PATH:$HOME/pear/bin/ I can then access the programs in my pear bin. Works as expected, but while I can do this: phpunit -version phpunit ...
2
votes
1answer
538 views

Looking for a better solution to execute a single sudo command when using a normal user account?

I'm logged in with a normal user account that isn't member of the groups sudo and admin. When I run the following example command.. su -c 'sudo some_command_that_needs_sudo' sudo-user ..it's ...
2
votes
2answers
743 views

How can gain root access whilst logged into a normal account?

I've set up an ubuntu computer for my sisters. There is the admin account which only I can access and there are two normal accounts. Occasionally I'm going to be called upon to install an extra ...
0
votes
2answers
456 views

No Admin User on fresh Wubi Install

I just installed Wubi fresh (Win 7; Ubuntu 12.10). After booting into Ubuntu for the first time, my first instinct is to: sudo apt-get update && sudo apt-get upgrade However, I'm quickly ...
38
votes
2answers
4k views

Why user should never use normal sudo to start graphical application?

I've read the comunity "RootSudo" documentation and am interested in this line: You should never use normal sudo to start graphical applications as Root. Why? What is the difference? Please ...
1
vote
1answer
251 views

Can I write a python script that will automatically load a terminal as sudo?

I use sudo a lot and I am constantly having to restart my terminal (development of programs that froze usually) and it's a pain in the butt to constantly put in the sudo command and then my password. ...
0
votes
0answers
30 views

Why does sudo cd occasionally return command not found [duplicate]

When exploring my disk drive contents I noticed that from / cd root failed as did sudo cd root; the only way I was able to view the contents was sudo su, then cd root Pete$ pwd / Pete$ cd root bash: ...
1
vote
2answers
1k views

Cannot execute sudo apt-get update

I am new to Ubuntu and when I execute sudo apt-get update I get the following errors and warnings W: GPG error: http://ppa.launchpad.net quantal Release: The following signatures couldn't be ...
0
votes
0answers
25 views

I have a problem with root password [duplicate]

I set my user account to auto login by mistake, so the key ring keeps popping up, but that's not the real problem, My root password seems not to be my user password I can't install apps from the ...
1
vote
1answer
2k views

Ubuntu Administration Privilege? [duplicate]

I'm a newbie to linux. I have installed ubuntu 12.10. How can i have administrative privileges since i am the Administrator. On windows if you're the administrator running and installing an ...
0
votes
1answer
838 views

sudo works, but gksudo doesn't, why?

sudo lshw -html>1.html works perfectly.I get system information in 1.html. But, gksudo lshw -html>1.html doesn't work.I get gksudo usage options in 1.html Information: I am developing ...
0
votes
1answer
1k views

The package sudo needs to be reinstalled, but I can't find an archive for it

It seems I have landed in trouble.... on running update-manager or synaptic I get this message "E: The package sudo needs to be reinstalled, but I can't find an archive for it." I searched for ...
0
votes
0answers
14 views

How do I authenticate over a domain while doing apt-get update? [duplicate]

I am getting various 401 auth errors when trying to sudo apt-get update. I am connected to my corp vpn and have an SSH into my Ubuntu machine. How can I authenticate using my network login/pw to ...
2
votes
1answer
3k views

Is /etc/sudoers file only suppose to have read only permissions?

-r--r----- 1 root root 723 Jan 31 2012 sudoers My dist-update frequently fails. At boot my system frequently asks for file system check. (My system-hardware is file) I am using vksTP ...
0
votes
1answer
175 views

How can I run an autorun file as root with no gui

I set up a server using ubuntu with no gui. I need root for some tasks that I want to autorun on this server. Normally I would just use gksudo because autorun programs never seem to work with su or ...
1
vote
1answer
294 views

Problem with Login Screen and Sudo Comand

I'm new to Linux world, infact I have installed Ubuntu 12.04 yesterday on my computer. I have Dual-COre processor, 2GB RAM, 500GB HardDisk, No graphics card and XP in parallel. I'm facing So many ...
2
votes
0answers
564 views

How do I know my system is broken after chown -R root usr/bin?

This question is related to another question -- "Can't access any functions after chown command." -- but I think it may be worthy of an independent question. My question is: how do I know that my ...