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)

5
votes
1answer
225 views

How do I allow a group (except one user in that group) to use sudo without a password?

How do I allow an entire group, except a certain user in that group, to use sudo without providing password?
5
votes
2answers
1k views

How do I drop all elevated privileges through the terminal?

I did some authentication mounting where I added code like timestamp_timeout on sudoer. This setting will effect every mounting, where you must enter the user password. After entering the password ...
5
votes
2answers
519 views

How does the shutdown button works without asking for password? [duplicate]

Possible Duplicate: How to shutdown/restart/suspend … without authentication or confirmation? If shutdown asks for password (and so does every program which has the option to turn ...
4
votes
2answers
7k views

Run apt-get without sudo

This might be a very naive question, but I wanted to know how I could give multiple users access to a single computer without making them root users. How would I give them limitted sudo access such ...
4
votes
5answers
1k views

Should I use “sudo” before “make install”?

I am installing the latest FFmpeg from this guide: In some places it suggests performing make install without sudo, here is a single example of several: cd ~/ffmpeg_sources wget ...
4
votes
4answers
1k views

How to avoid prompt password for sudo?

I know I can go root (super user) via the su command but I have to authorize it after firing the commands. Is there a way I can go root and authorize (with password) in one line
4
votes
2answers
137 views

I have 2 different GEdits?

When I load GEdit, it is different from sudo GEdit. Normal GEdit gives me Gtk warnings in the console, and ithas a different look. When I install plugins on either version, it doesn't reflect on the ...
4
votes
3answers
13k views

Mounting filesystem with special user id set

I want to mount the device /dev/sda3 to the directory /foo/bar/baz. After mounting the directory should have the uid of user johndoe. So I did: sudo -u johndoe mkdir /foo/bar/baz stat -c %U ...
4
votes
4answers
14k views

Sudo doesn't work

I edited my sudoers file in /etc and after that I can't use sudo anymore. I get this whenever I issue the command: sudo: >>> /etc/sudoers: syntax error near line 30 <<< sudo: parse ...
4
votes
5answers
6k views

Always Sudo Privileges

I've searched for this, and the answer is probably in a million places on the 'net, but I can't find it... How do you give your account root privileges in Linux so that you don't need to sudo every ...
4
votes
2answers
575 views

How do I make a sudo command start at start-up with a 1 minute delay?

I would like to make a sudo command (sudo service smbd restart) run after 1 minute of being logged on. How would I go about doing this? P.S. This is a system with no monitor, mouse, keyboard or ...
4
votes
4answers
7k views

How do i transfer files over ssh after sudo?

I have access to a box over ssh and there are some files i'd like to transfer to another machine, but those are only accessible under another account so if i ssh with 1, then sudo 2 i can browse them ...
4
votes
2answers
543 views

Nautilus automatically browses as root

I used gksudo nautilus (not through the terminal but through the 'Open With' command) for some copy & paste stuff that requires root access. But now whenever I open the file browser (Nautilus) to ...
4
votes
3answers
254 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 ...
4
votes
2answers
4k views

Why does sudo not add root's PATH with Ubuntu 12.04?

I've recently upgraded my server to Ubuntu Server 12.04. Previously it was running 11.04. Ever since then I've been having trouble carrying out root user commands through sudo. An example of this ...
4
votes
1answer
221 views

Why does the terminal not hold my root password for sudo? [duplicate]

I stopped using Ubuntu for a while (since 12.10) and recently came back to it. From what I remember, it used to only ask for the root password once for a terminal session (for sudo commands). Now it ...
4
votes
2answers
1k views

Standards accounts are able to get root access using sudo without password request

I have installed a particular software using the installer present using the command sudo ./install.sh. After the installation now all the accounts on my ubuntu laptop can gain root access by ...
4
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 ...
4
votes
2answers
5k views

How can I get an interactive shell as another non-root user?

I'm using Ubuntu 10.04 LTS server, with the default security model (root locked, using sudo to elevate privileges). I occasionally enjoy using sudo -i when I'll need to run a series of commands with ...
4
votes
4answers
14k views

Deleted Myself from Admin Group - Now Getting Error usermod: cannot lock /etc/passwd; try again later [duplicate]

Possible Duplicate: Cannot lock '/etc/group' in recovery mode I have a laptop with Ubuntu 11.10 that is shared between myself and two other family members. My user id was setup as ...
4
votes
1answer
5k views

How to allow execution without using the sudo?

I am writing a Java application where i need to do a command line execution and get a result back, but when i execute the command, it ask for sudo password. So far i tried: $ sudo -s $ vim ...
4
votes
2answers
2k views

Problem installing ruby and gems

I just installed ruby using apt-get with the following command: sudo apt-get install ruby1.9.1-full But when I try to do sudo gem install ... it says that I have not installed gems and that I shoud ...
4
votes
3answers
2k views

I want a non admin user to install software. What commands do I need to add to sudoers?

I want to edit the /etc/sudoers file so that a non-admin user can install software via the Software Center in Linux Mint 10. The reason for this is that I want a user to have the capability to ...
4
votes
2answers
200 views

How can I change the default editor of the sudoedit command to be vim?

I'm trying to use sudoedit, but it keeps running the nano editor. My preferred editor is vim. How can I make it the default? Looking at the man page, man sudoedit, I've noticed the following: ...
4
votes
1answer
5k views

How to solve “sudo: /etc/sudoers.d is world writable”

How can I fix the following error with sudo? /etc$ sudo sudo: /etc/sudoers.d is world writable usage: sudo [-D level] -h | -K | -k | -V usage: sudo -v [-AknS] [-D level] [-g groupname|#gid] [-p ...
4
votes
2answers
8k 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 ...
4
votes
2answers
504 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 ...
4
votes
1answer
2k views

What is the equivalent of gksudo in Kubuntu/KDE?

In regular Ubuntu (Unity/Gnome), I use gksudo to run GUI programs with root privileges. I'm trying out Kubuntu (or KDE) now -- what do I use?
4
votes
1answer
4k views

/etc/environment and /etc/profile.d/* ignored for the root user [duplicate]

How do I set global environment variables in Ubuntu, in such a way, that they would apply also to root user? Setting PATH or JAVA_HOME in /etc/environment or in /etc/profile.d/my_settings.sh both ...
4
votes
1answer
6k views

problems with sudo permissions - /var/lib/sudo owned by uid

my system is a new 11.04 ubuntu and i recently started working with LAMP. some how, when i tried to change permissions of the var/www/ for netbeans to work on the local server, and did something that ...
4
votes
1answer
4k views

sudo does not ask for password [duplicate]

Whenever I issue command sudo apt-get install foo it does not ask for password. is it because of user groups? How to make it prompt for password? Edit: My sudoers file apple@Ascension:~$ sudo cat ...
4
votes
2answers
23k views

Launch Sublime Text 2 from terminal [duplicate]

I am new to Ubuntu and is trying to configure my environment so i can launch Sublime Text 2 directly from the terminal. I followed the solution on this post but no luck so far. These are steps I did ...
4
votes
1answer
907 views

What does this code do if entered in a terminal?

sudo add-apt-repository ppa:langdalepl/gvfs-mtp sudo apt-get update Then, launch Software Updater (previously known as Update Manager) and install the available updates. After you update everything ...
4
votes
2answers
603 views

Why doesn't $HOME change if I use sudo?

I expected the -H option to give me the target user's environment. nbest@geo:~$ sudo -H -u tanum echo $HOME /home/nbest nbest@geo:~$ sudo -u tanum echo $HOME /home/nbest nbest@geo:~$ sudo -i -u ...
4
votes
4answers
323 views

How can I prevent a user from changing their password? [duplicate]

I want to prevent a user from changing their own password. Additionally, if possible, I want to prevent them from changing it via sudo.
4
votes
1answer
3k views

I am no longer in sudoers? [duplicate]

Possible Duplicate: How do I add myself back as a sudo user? jiewmeng is not in the sudoers file. This incident will be reported. Whats happening? Its a home PC with me as the only ...
4
votes
1answer
2k views

How to setup sudoers for Apache web service?

# User privilege specification root ALL=(ALL:ALL) NOPASSWD: ALL apache ALL=(ALL:ALL) NOPASSWD: ALL me ALL=(ALL:ALL) NOPASSWD: ALL In Fedora both works: http://localhost/test echo ...
4
votes
2answers
2k views

Allow user to execute sudo commands

I've looked at Add user to "sudo" group and added user (say 'abc') to sudo group But now when user 'abc' tries to use sudo commands ubuntu says, 'abc' is not in sudoers list, this incident ...
4
votes
3answers
966 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 ...
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 ...
4
votes
1answer
258 views

Where are unauthorized sudo attempts reported to

Where are unauthorized sudo attempts reported to? When you attempt to use sudo, and are not allowed, a message says that the attempt will be reported. Is this only reported in var/log/auth.log ? or ...
4
votes
2answers
3k 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 ...
4
votes
1answer
2k views

Changed owner of /usr/bin

I did it... I guess everyone does it sometime, but this was my first. I executed sudo chown -R /usr/bin and before I realized my mistake, it was too late... Now I can't access sudo because I receive ...
4
votes
1answer
406 views

Can't login to my account, I know the password

I use Xubuntu 14.04 64 bit. I was watching a movie, the desktop froze (as usual duh!), I logged out using a terminal, and couldn't log in to my account after that, I'm using a terminal. I type my ...
4
votes
2answers
9k 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 ...
4
votes
2answers
599 views

Run script at user login as root, with a catch

I'm trying to run a PHP script as root on user login. The PHP script adds a Samba share to the Samba config, thus the need for root privileges. The only issue here, is that the user doesn't exist ...
4
votes
1answer
50 views

How to automatically opening terminal windows & tabs, ssh and sudo su?

When I start my day in front of my computer, I first have to do the following: In workspace 1: Open a new terminal window, ssh loginserver, then ssh serverA1 and sudo su account00 Open a new ...
4
votes
2answers
893 views

Unable to launch nautilus with sudo [closed]

When I run Nautilus with sudo, gksudo or Alt+F2, I get this error message: Initializing nautilus-gdu extension ** (nautilus:2352): WARNING **: Failed to get the current CK session: ...
3
votes
7answers
32k 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?
3
votes
3answers
26k views

How to run applications as root?

I am having some strange issue with Kate and Kwrite. When I click on Open File, it crashes with segmentation fault. I am a complete newbie to Linux, and I think the issue is that I am not running ...