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
415 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
1k 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
2answers
432 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
76 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
619 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 ...
18
votes
1answer
4k 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
251 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
4
votes
3answers
8k 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?
0
votes
1answer
714 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
640 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
136 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
2k 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
985 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 ...
6
votes
2answers
11k 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
3k 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
352 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
215 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
50 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
3k 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. ...
5
votes
1answer
18k 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
295 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
4k 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
3k 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 ...
3
votes
1answer
664 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
909 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
732 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 ...
54
votes
2answers
9k 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 ...
2
votes
1answer
385 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
31 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
27 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
3k 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
1k 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
2k 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 ...
3
votes
1answer
6k 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
245 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
301 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
799 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 ...
4
votes
3answers
2k views

Error while SUDOing

I am facing a issue. When I try to do sudo on my terminal I get: sudo: must be setuid root I googled for the problem and did as the suggestions like setting permission of sudo but they were already ...
0
votes
1answer
963 views

sudo doesn't work on ro filesystems

When for whatever reason my home partitions gets mounted read-only, sudo fails: /usr/bin/sudo: Input/output error From what I understand, it seems to be trying to touch ~/.sudo_as_admin_successful ...
5
votes
1answer
2k views

Add directory to path for sudo

I know creating a .bashrc and adding PATH=$PATH:/home/asco/adt-bundle-linux-x86_64/sdk/tools PATH=$PATH:/home/asco/adt-bundle-linux-x86_64/sdk/platform-tools will add those directories to my path. ...
0
votes
1answer
668 views

KDE app theming using sudo in Unity

When I run Kontact as another user using gksudo, gksu, or kdesudo, the theming is all messed up: When I run Thunderbird as another user, it works fine! I'm running Ubuntu 12.10 using the Unity ...
2
votes
3answers
953 views

Ways to run Nautilus with elevated privileges [duplicate]

What are the differences between the following ways to run Nautilus with elevated privileges: a) sudo nautilus b) gksu nautilus c) gksudo nautilus Which should I use?
2
votes
4answers
998 views

“sudo bash” ignoring read-only permission of .bash_history file

This problem is in an up-to-date 12.04, and seems to have started recently. I have my .bash_history file set to read only. Lately I've noticed that despite this the file is being modified ! Here's ...
0
votes
1answer
815 views

Problem installing software from ubuntu software center and error running sudo app-get update and install commands [duplicate]

I am new to Ubuntu. I am getting an error whenever I try to run sudo apt-get update (407 Proxy authentication required) Moreover, I am unable to install any software from Ubuntu software center ...
0
votes
1answer
663 views

Why can I not use gksudo/sudo with any GUI program?

In my Ubuntu 12.04.2 with GNOME-Shell I'm not able anymore to run any graphical programs with gksudo or sudo. I always get an error like cannot open display I don't remember any particular changes ...
4
votes
3answers
429 views

Will this sudo rule allow a user to update the system and nothing more?

I want to design a sudo rule that will allow the user ricardo to update the system using aptitude, but prevent him from using sudo to run any other command (he's a problem user). Are there any ...