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
2answers
244 views

Where is the /etc/login.conf file in Ubuntu 12.10 and latest?

Where is the file for the general login for to configure it? /etc/login.conf seems to be outdated in 12.10 ? I want to adjust maximum number of login attempts. e.g. in sudo from 3 to 1. same for ...
0
votes
1answer
1k views

Any way to get sublime text to save settings files without running as sudo

I installed Sublime Text 2 the following way, but what I do not like about it is that I have to run it as sudo to save the user settings files. Any ways around this? Thanks, Colin sudo ...
1
vote
2answers
2k views

How do I make Youtube videos stream faster on my ubuntu?

According to this article, http://thetechblock.com/how-to-stop-isps-slow-youtube/, I can make Youtube videos stream faster on Linux, but I am not entirely sure how to carry out similar commands on the ...
0
votes
3answers
3k views

Error executing sudo in chroot environmet

I am facing a strange problem while using a chroot'd 12.04 Ubuntu. When I try to run anything with sudo I get the following error: sudo: effective uid is not 0, is sudo installed setuid root? If I ...
0
votes
1answer
1k views

ubuntu 13.04 failed to start any GUI application as root

I just installed ubuntu 13.04 in family machine, and I faced strange problem even though my sudo password is correct, I cannot start any GUI application (i.e. bleachBit (as root)) as a root, the ...
3
votes
2answers
1k views

How do I give root privileges to an app?

I tried to submit an app to the Ubuntu Software Centre but it was rejected because you needed to put in the admin password to use it. I need to grant root privileges to the app for it to function so I ...
0
votes
1answer
1k views

sudo command not working in cron

I have a small script and I want to run it as user1 in cron. If I am logged in as user1 and execute the script it works just fine, but the moment I try to run it in cron it does not work. If I run the ...
0
votes
1answer
1k views

'sudo' command is broken

I updated an old centrino-notebook after Ubuntu 9.10 with 12.04 - now sudo seem to be broken, because after sudo <whatever> I get the error message: sudo: unable to initialize PAM: No such file ...
3
votes
7answers
41k views

How can I determine the sudo password? [duplicate]

What is the default password of the sudo? I visit some forums, it tells that the default password is password, but it doesn't work, how can I determine the password?
0
votes
2answers
929 views

sudo apt-get not working after a new install of ubuntu

I installed ubuntu last night. And after reading 100s of posts, I still couldn't make my sudo apt-get work at all. I remember, I have to modify the software server somehow. But I can't remember how or ...
4
votes
2answers
10k views

How do I add a user to sudoers file?

How to I add my username to the sudoers file? On my ubuntu desktop, the sudoer file has only root. so basically, I will just need to adduser to sudo file system. And I need to access to single ...
6
votes
2answers
2k views

How can I ensure the `snd-hda-intel` module is loaded on startup?

I need to type sudo modprobe snd-hda-intel in order to get my sound card to work. What config file do I need to edit and what edit should I be looking to make so I can get the sound driver loading ...
15
votes
1answer
31k views

Run a shell script as another user that has no password

I would like to run a script from the main ubuntu shell as a different user that has no password. I have full sudo priviledges, so I tried this: sudo su -c "Your command right here" -s /bin/sh ...
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
435 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
13k 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
757 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
194 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
210 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
865 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
227 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
62 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
537 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
186 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
164 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
535 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
465 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
122 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
786 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
7k 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
335 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
144 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
10k 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
254 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
550 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
751 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
483 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 ...