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
108 views

Ubuntu “1 time password on login” solution [duplicate]

Possible Duplicate: Why is it bad to run as root? I recently fully switched from Windows into Ubuntu. And of course I loved Ubuntu. But the most annoying thing is, system requires password ...
3
votes
2answers
114 views

Security practice regarding users [closed]

Please understand that I've migrated to a Ubuntu Desktop from Win7 some months ago and while I have been reading about sudoers and Linux in general my understanding is still limited. This is how I ...
1
vote
0answers
2k views

How can I run Sublime as a normal user? [closed]

I've installed Sublime Text using this method and the installation seems to have went through just fine. However, I can't seem to run sublime as a normal user. I can only get it to run when I run it ...
0
votes
1answer
245 views

Difference between /etc/security/pam_env.conf and /etc/environment + making sudo read pam_env.conf

I struggle to see the difference between pam_env.conf and /etc/environment. To me they both do the same thing, with a difference syntax. The manpages were no help. So what is the difference? ...
1
vote
2answers
112 views

Is there key infrastructure allows one running as sudo remotely without prompting password?

For example, I can use ssh-id-copy to get the key and login to the remote server without entering the password. Is there a similar mechanism to run as root without prompting password? I don't know. ...
7
votes
1answer
20k views

How do I remove Ubuntu's password requirement?

Here are my circumstances: I am running Ubuntu 12.04. I have one user account. I absolutely hate the password requirement. How do I disable this requirement such that my Linux computer will behave ...
7
votes
1answer
2k views

How to use a python virtualenv with sudo?

I am trying to make a python environment separate from the system one (using virtualenv) in a directory which is not under /home, because I need to use it to build other software that has to be ...
2
votes
1answer
848 views

Can I have a user execute sudo commands without being an administrator? [duplicate]

Possible Duplicate: How do I add a user to the “sudo” group? I recently became a UNIX admin for some relatives, and they are quite far up the creek on how to use ubuntu. I know that one key ...
2
votes
2answers
4k views

How do I deal with 'sudoers.so must be only be writable by owner'?

Whenever I try to install or remove something using terminal it gives the following error message: bluebird@bluebird:~$ sudo apt-get update sudo: /usr/lib/sudo/sudoers.so must be only be writable by ...
0
votes
3answers
115 views

apt-get upgrade says sudo needs to be upgraded, is this correct?

I have a Ubuntu Server running 10.04 - to be precise, Ubuntu 10.04.4 LTS according to lsb_release -a. I just ran sudo apt-get update and sudo apt-get upgrade and got this output: Reading package ...
-3
votes
1answer
225 views

How can i recover sudo permission?

I am new to Ubuntu. I have installed Ubuntu 12.10 on a fujitsu amilo 1536 notebook, and it works just fine. To extract a tar archive I need root privileges but I can't get them. I can't use sudo ...
0
votes
1answer
103 views

Having a Problem After Installing Mac-osx Theme and setting it up With Cairo dock

When i write sudo apt-get upgrade This message Shows Up:"dpkg: error: cannot scan updates directory `/var/lib/dpkg/updates/': No such file or directory E: Sub-process /usr/bin/dpkg returned an error ...
-1
votes
1answer
69 views

How to finish setting up to boot from LiveUSB?

Katies-iMac:~ KatieBaer$ sudo dd if=/Users/KatieBaer/Downloads/ubuntu-12.04.1-desktop-i386.dmg of=/dev/rdisk4 bs=1M WARNING: Improper use of the sudo command could lead to data loss or the deletion ...
-1
votes
1answer
442 views

How do I get past a 'frozen' terminal with a sudo password prompt? [duplicate]

Possible Duplicate: Nothing shows up in the terminal when I type my password When running the Terminal and asked for password the terminal freezes - cannot type in or paste. What is the ...
9
votes
1answer
6k views

rm: cannot remove `/run/user/root/gvfs': Is a directory

Whenever I type a command which is similar to sudo apt-get install or anything like this I get this kind of error: $ sudo su # exit exit rm: cannot remove `/run/user/root/gvfs': Is a directory How ...
5
votes
2answers
9k views

How do I become a “superuser”?

The following command fails with an error: $ dpkg -i libmotif*i386.deb dpkg: error: requested operation requires superuser privilege How do I become a superuser? I thought I was the superuser?
0
votes
1answer
5k views

sudo su command not working

Previous happenings here: Ubuntu is booting into terminal instead of GUI Interface For some reason when I boot my computer up, instead of automatically entering into my normal interface, I have to ...
2
votes
1answer
433 views

Ubuntu 12.10 password don't works after login

During a complete fresh installation I choosed a case sensitive password with an "!" inside the string, it works fine for the normal login, but when I try to use sudo or su or passwd or some GUI stuff ...
6
votes
1answer
188 views

Lost sudo privileges

Last night I was working on installing vsftpd on my Ubuntu 12.10 server. I shutdown last night and when I booted up this morning I seemed to have lost the abilities to sudo anything. It just says, "** ...
3
votes
1answer
1k views

What causes “pam_unix … conversation failed” in auth.log

There are thousands of entries in my auth.log like this: sudo: pam_unix(sudo:auth): conversation failed What causes these to occur? I'd like to fix whatever it is but I'm a bit mystified as to ...
31
votes
4answers
7k views

When using sudo with redirection, I get 'permission denied'

When using sudo to allow edits to files, I regularly get 'permission denied'. For example, my mouse is jittery and sluggish, so I want to disable polling: sudo echo "options drm_kms_helper ...
0
votes
1answer
606 views

Make sudoers work with only certain parameter?

I'm trying to make my sudoers file allow a user to adjust the backlight without having to enter in the password. This is what I have: # User alias specification Cmnd_Alias ADJBL = /usr/bin/su -c ...
3
votes
2answers
2k views

sudo command and how to auto get password

I got a problem that: I have a file .sh #!/bin/bash var=$(zenity --forms --title="Tắt giờ vợ yêu nhé" \ --text="Vợ muốn tắt máy sau bao nhiêu phút nữa" \ --separator="," \ ...
4
votes
1answer
2k views

apt-get could not open lock file

I am trying to get an nfs client running on a Sheeva-plug running debian 2.6.22. The host is Ubuntu 12.04 and claims (from showmount -e) to be exporting the desired directory. There is no showmount ...
10
votes
2answers
5k views

What does sudo service do?

As far as I know and it seems that other people have the same opinion sudo is a command that executes something with administrative privileges. However when I run rcconf I can see this line: [*] ...
2
votes
2answers
481 views

Running text editor as sudo uses another config

I've created a Nautilus Action to edit files as sudo (gksudo) and the text editor that opens the file is always using a different configuration from the normal user. The same thing happen when I run ...
1
vote
1answer
1k views

Help recovering broken OS (permissions issue)

(At the bottom there is an important update.) I was doing experiments in order to backup a remote account to my local system, Ubuntu 12.04 LTS. I'm not confident with duplicity and probably, due to ...
1
vote
0answers
42 views

Give permissions for packages downloaded from the internet and lock them in Ubuntu 12.04 sidebar

I downloaded NetBeans IDE and Eclipse IDE from the internet and installed then. Well, the Eclipse IDE works fine, but when I execute NetBeans IDE directly from the shortcut, without sudo permission, ...
2
votes
1answer
130 views

linux-headers-3.5.0.19 needs to be installed but I can't find a archive for it. Please help!

This error keeps showing up. I can't update through the little red circle caution symbol and when I open the software center it stalls and then shuts down. I tried to do the sudo apt-get install -f ...
1
vote
2answers
4k views

Cannot change permission for /var/www/ [duplicate]

Possible Duplicate: problems with sudo permissions - /var/lib/sudo owned by uid I recently installed Ubuntu Server and put the GUI on so I can get the hang of Linux. However, I can't seem ...
2
votes
1answer
160 views

I want one of my users to be able to 'sudo init 5' without being asked for a passwd. How to do it?

I want one of my users (let's call him: pn) to be able to start X by sudo init 5.I don't want to give him access to any other commands. I read man sudoers, but I don't understand too much of it. Can ...
4
votes
2answers
494 views

What's the difference between root account and simulated roots?

So if I disable my root account with sudo passwd -dl root I still have access to sudo {su,bash} or sudo -{s,i} conceptually how are the elavated rights different from the root account? I know the ...
0
votes
1answer
63 views

Why do I see a “SIGHUP or SIGTERMa:” error while trying to pass my password to sudo using echo and “|”?

Edit: echo and sudo used together as shown below can have unexpected consequences. Please avoid such usage as far as possible. I'm on Lubuntu 12.10 fully updated. I know that what I'm asking could ...
2
votes
1answer
142 views

My system is broken I guess — issues with libqt4-test

So here's the problem, every time I try to install a package, I receive an error that says: Reading package lists... Done Building dependency tree Reading state information... Done You might ...
1
vote
3answers
95 views

Do I have to do a new installation?

I was in the /etc/sudoers and might done something wrong, beacuse after I couldn´t use the commandline again. Maybe i deleted sudo in /etc/sudoers. It said something was wrong i line 28. What can I do ...
2
votes
0answers
250 views

Eclipse Juno won't open gui java apps when run with gksudo

I have Eclipse Juno installed on Ubuntu 12.04. When I run from the command line with sudo, everything works fine. However, when I follow the advice I see everywhere and run it with gksudo, I get the ...
0
votes
2answers
285 views

Problem with the “sudo apt-get update” command

I'm a beginner when it comes to the Linux environment. I recently tried to install some extensions in Linux. I've entered some commands like: sudo apt-get install gnome-tweak-tool and then when I ...
2
votes
1answer
187 views

How do I create another user?

I am new to Ubuntu. On login only my single user with guest is displayed. Is it possible to show multiple user names including admin user? sudo sh -c 'echo "greeter-show-manual-login=true" >> ...
1
vote
2answers
229 views

Error when using “sudo Nautilus”, how do I solve it?

Here is the terminal log. http://pastebin.com/xTEK13B7 How do I fix it? What does it do? Is it safe or okay?
1
vote
1answer
792 views

Unable to use :NOPASSWD in sudoers

I have the following sudoers file: misha@misha-K42Jr:~$ sudo cat /etc/sudoers [sudo] password for misha: # # This file MUST be edited with the 'visudo' command as root. # # Please consider adding ...
2
votes
2answers
281 views

Does sudo really make you root for a while?

On Ubuntu, in what kind of situations, if any, running a command as a non-root to access a file/folder or create/delete a file/folder using sudo may result in "permission denied" while running the ...
0
votes
3answers
2k views

Want to execute sudo command on shell startup

I've put a command sudo do something in my ~/.bashrc, this works but everytime I open the terminal I have to type in my password. How do I make it so there is no password-typing?
1
vote
1answer
2k views

Unable to launch gedit with sudo

While trying to follow these instructions, I encountered the following error while attempting what seems like a simple sudo edit operation: $ sudo gedit /var/lib/dpkg/status ** (gedit:14898): ...
1
vote
2answers
252 views

No root account

Okay, here's my problem. I was being an idiot and installed compiz-core on my Xubuntu 12.10. So there I was, trying to figure out how to fix my issue, and I did sudo xfwm4 --replace. Then I was ...
3
votes
2answers
2k views

I cannot delete files from root's Trash

I deleted some large files from nautilus launched as sudo. They still show in /home/.Trash-0/files/<foldername> when I type sudo sh -c "du -h /home | grep -P '[0-9]G\t'" but when I type sudo rm ...
7
votes
1answer
245 views

How disable mysql command in sudoers file?

How can I disable /usr/bin/mysql command in sudoers file? I've tried to use it this way: %tailonly ALL=!/usr/bin/mysql But when I access user 'tailonly' of group 'tailonly', this command is still ...
1
vote
1answer
377 views

installing apache 2 in ubuntu

Hello I am new to ubuntu. I am trying to install Apache2 using "sudo apt-get install apache2" command.I have set my java path as per rules but still its showing me this following errors: sha256sum ...
6
votes
1answer
1k views

Opening terminal asks for sudo password

Whenever I open a new terminal within 12.04, I am prompted to enter my sudo password. Why is this happening?
4
votes
2answers
14k views

Can I add myself to group `root'?

$ id uid=1000(kev) gid=1000(kev) groups=1000(kev),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),109(lpadmin),124(sambashare) $ ls -l /etc/sudoers -r--r----- 1 root root 723 Jan 31 2012 /etc/sudoers ...
13
votes
3answers
33k views

How to configure ADB access for Android devices?

I'm using Ubuntu 12.10 and I have installed Android SDK, set it's path in my user .bashrc and it works. The problem is that my phone requires adb to be ran by root for permissions, but running adb ...