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
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
762 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
326 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
134 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
988 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
242 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
507 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
716 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
429 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 ...
36
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
238 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
24 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
1k 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
813 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 ...
1
vote
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
168 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
293 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
524 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
1k 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
260 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 ...
2
votes
1answer
1k 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
514 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
613 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
605 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
625 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 centre not ...
0
votes
1answer
535 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
255 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 ...
0
votes
1answer
179 views

Does following `man sudo root` permenantly blocks your sudo?

I needed to enable the root account for whatever reason and being offline I had no better advice than this manual man sudo root "This is not recommended! To enable the root account (i.e. set ...
2
votes
2answers
2k views

“sudo rm” fails to delete files

My main account is called "u1204" and I have some files created with another account called "dad": $ find . -user dad -print ./Documents/Zim Notes/.zim/state.conf ./Documents/Zim Notes ...
1
vote
1answer
217 views

command which takes in password as argument? [duplicate]

Is there any bash command or technique through which we can enter in password alongwith the command which requires the password of superuser? for e.g sudo apt-get install kde <password> I am ...
0
votes
1answer
47 views

Changed ownership of sudo and now I need to save files from the computer to reinstall

I was a newb and chown'd the usr/bin folder. I'm going to reinstall but I'd really like to be able to save a tarball I created of all the important files (passwords and such). However ubuntu refuses ...
1
vote
1answer
287 views

Why Ubuntu ask me for for root password while upgrading?

I frequently upgrade the desktop of my daughter (using ubuntu 12.04.1) through the official processes,but in the latest attempt the computer is asking for a root (or super user) password. In the past ...
1
vote
1answer
547 views

12.04 sudo testparm -s smb.conf.master >smb.conf fails on permsissions

When I run sudo testparm -s smb.conf.master >smb.conf bash: smb.conf: Permission denied I just need a simple samba configuration to share files among 4 linux machines behind a router on a very ...
1
vote
0answers
54 views

Execute custom bash script with sudo without passwd prompt [duplicate]

I run ubuntu-12.04 desktop x86_64. I have a simple script that needs to be accessible from the Desktop and run as root: $ cat ~/Desktop/flash.sh #!/bin/bash - cd ~/tools sudo ~/tools/fastboot-HW.sh ...
0
votes
2answers
3k views

How to give a new user permissions to call sudo without a prompt for sudo password?

I am setting up a server in Amazon EC2. I created an image from Amazon's provided images of Ubuntu x64 12 LTS. My goal is to set up a secure svn server there, where access is only possible by IP ...
2
votes
1answer
423 views

Suddenly, I Can't login with correct password (greeter & tty)

This might be a duplicate of other password related questions but it's somehow eccentric. I have three accounts in my Ubuntu 12.10 system (one standard and two administrators). One of the ...
5
votes
1answer
2k views

sudo su doesn't change users for mysql

Last night, on my server, I did: sudo su - mysql to change to the mysql user so I could run the mysql client, which is set up so it will only authenticate from the mysql account. I successfully ...
3
votes
2answers
2k views

How to set root proxy settings via command line?

I am using fabric to deploy a project and have run into an issue: fabric does not currently (as far as I'm aware) have the ability to specify options to it sudo command, therefore I cannot use sudo ...