Questions related to the sudo command that allows users to run programs with the privileges of a different user (normally the root user).
0
votes
1answer
47 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 ...
0
votes
0answers
17 views
Sudo Failures Increment
I am controlling login failures in /etc/pam.d/common-password and common-auth.
I am sudo user, I can log in without issues, but then when I try to run the Ubuntu Software Center to run updates, I'm ...
0
votes
1answer
39 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 ...
1
vote
2answers
55 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 ...
0
votes
0answers
21 views
sudo modprobe snd-hda-intel every start up
I have found since some change in some update that the sound gets lost. This is happening less and less and always results in me blundering about trying to get my sound working again.Generally ...
0
votes
0answers
22 views
cannot find name for group ID 26739201
I am using ubuntu 12.04 after adding a new user in sudoers list and i successfully logged in that user but now when i take terminal its showing
groups: cannot find name for group ID 26739201
...
0
votes
1answer
35 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
votes
0answers
16 views
Did not edit sudoers - but it is messed up [closed]
On my Raspberry Pi I seem to have a frequent problem with the sudoers file: The symptoms are that using sudo results in the three lines
sudo: parse error in /etc/sudoers near line 1
sudo: no valid ...
1
vote
2answers
173 views
sudo su fails with 'Unable to change to sudoers gid :operation not permitted.' fault
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 ...
9
votes
2answers
206 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 ...
0
votes
0answers
30 views
netbeans c++ debugging error: The program is not being run when debugging with gdb link
i have created soft link to gdb with
sudo ln -s /usr/bin/gdb /usr/local/netbeans-7.3/bin/
now in netbeans i set c++ debug command as /usr/local/netbeans-7.3/bin/gdb.
when i debug my program i get ...
2
votes
1answer
121 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 ...
8
votes
3answers
433 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
33 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
2answers
44 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 ...
0
votes
0answers
17 views
Authentication window in GNOME disappears before I have a chance to type in the password
Sporting 12.10 with Gnome Shell.
When I start graphical Software updater manager, and click "Install now", I got "Authentication Required" window prompt as per usual. However, after I've typed couple ...
0
votes
1answer
57 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
30 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
52 views
What is the right way to gain sudo privileges
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 ...
0
votes
0answers
18 views
'w' command not showing users list when not root ('who' does)
I have multiple users logged on my server (ubuntu 12.10), with ssh. None of them has root privileges.
If I then log in with my admin account and type (without sudoing)
admin1@server:~$ w
the ...
-1
votes
1answer
163 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
21 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
17 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
0answers
122 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 ...
2
votes
0answers
52 views
How to configure pkexec
Reading this question & answer When to use pkexec vs. gksu/gksudo? & Why is gksu no longer installed by default in Raring 13.04? brought me another one that will create problems for new users ...
0
votes
0answers
50 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
0
votes
5answers
446 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
39 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 = ...
25
votes
4answers
2k views
Why is gksu no longer installed by default in 13.04?
I have always recommended pressing ALT+F2 and typing for example gksu nautilus or gksudo nautilus both are equivalent; to run graphical programs with root privileges. However, I have just installed ...
0
votes
1answer
47 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 ...
0
votes
1answer
29 views
Why does xdg-open text_file differ from sudo -u me xdg-open text_file?
If I run the following command, the text file opens in my preferred editor (kate).
$ xdg-open /path/to/text/file
However, if I try the following, where sparhawk is my username, I get several ...
1
vote
1answer
45 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
27 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
31 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
72 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 ...
3
votes
2answers
177 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 ...
4
votes
1answer
88 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 ...
1
vote
0answers
88 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
47 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 ...
0
votes
0answers
66 views
Cannot run any pkexec-based applications in Gnome 3 (synaptic, gparted, …) [closed]
I'm using a fresh install of 13.04 Ubuntu Gnome with gnome shell 3.6 and I have a peculiar problem with programs that need pkexec to run, like gparted or synaptic. When I try to run them via the menu ...
1
vote
0answers
14 views
How to allow non-admin users to use Software Center and update the system? [duplicate]
I want to configure a laptop for someone who is not a technical person.
I want her to be able to:
install software from the Software Center
uninstall software
update the system
install printer ...
6
votes
1answer
289 views
whats the default sudo timeout?
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
0answers
27 views
Unable to launch an application in Ubuntu
I installed a software called NEDx in my Ubuntu 12.04. But when I try to launch it from the desktop shortcut or from DASH, it simply doesn't get launched. When i checked the properties of the ...
0
votes
1answer
33 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
70 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.
...
2
votes
2answers
282 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
62 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 ...
0
votes
0answers
14 views
Weird storage problems
I am totally unable to install, update, or remove anything. I can't even auto-report bugs!
I recently ran sudo nautilus and made the entire filesystem read-writable to everyone, so I could install ...
1
vote
1answer
59 views
Keep getting “sudo: unable to resolve host”
Everytime I type in sudo it says that after it. I tried following others instructions, but it says bash: /etc/host: permission denied.
0
votes
1answer
56 views
Ubuntu 12.10 damaged: access to partitions and internet connection are lost
My Ubuntu 12.10 is damaged. After I log in, the very right menu (of users, shutdown, etc.) doesn't have any item. The internet connection doesn't establish and the hard disks don't appear while I ...

