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)

18
votes
3answers
961 views

Is it possible to enter password for sudo only once, and configure it to not require for password on other terminals?

I enter my first sudo command. I enter my password. For a while, I wont have to enter my password for subsequent sudo commands. Now the question. I am someone who opens a lot of terminals. It would ...
0
votes
1answer
23 views

Drop/Undo sudo privileges on .py file which runs inside a program which runs from sudo previleges

I need to run a program from sudo privileges and I am running .py file inside the program. So when my program runs from sudo then it automatically calls/runs the .py file with sudo. I am running file ...
12
votes
5answers
71k views

how to remove symbolic link

i was doing sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin but i accidentally typed something else. So now I want to correct it but it says symbolic link already exist. Please help, Thanks in ...
20
votes
3answers
66k 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 ...
8
votes
1answer
13k views

Remove sudo privileges from a user (without deleting the user)

If you give a user sudo privileges how can I remove the sudo privileges and make the user become just a regular user? I used: sudo adduser username sudo Now I've changed my mind.
0
votes
1answer
19 views

How to change sudo passwords [duplicate]

When I try to change a sudo password, it say it doesn't work even running the mount -rw -o remount / When you run that command it would say i worked from the root menu but would still be invalid when ...
0
votes
0answers
27 views

Sorry, user is not allowed to execute X as root on lt

Whenever I try to run a command from the termainal as sudo, I am now getting the error: Sorry, user {user} is not allowed to execute {command} as root on lt. lt is the name of my computer. The only ...
0
votes
1answer
3k views

What actually yum does? [closed]

I've seen yum used as a command for Cento OS Red Hat Linux platform. But, I tried with sudo too and it works. I want to know then what yum actually does. I am just curious to know.
12
votes
5answers
28k views

How can I fix broken sudo - sudo: parse error in /etc/sudoers near line 23?

I am getting this error: sudo: parse error in /etc/sudoers near line 23 sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin I was trying to disable password ...
0
votes
2answers
37 views

How to use the terminal commands? [duplicate]

when I type any command the terminal asks for password and then when I write nothing show up .. how can I solve that ?
1
vote
1answer
34 views

launch ipython but not like root

ipython is launched like root (UID); ok, but I need that after ipython cann't run and don't allow, script/code that can gain root privilegies. eg I launch ipython, ok the UID is root. And in my ...
0
votes
1answer
19 views

No module named _curses

I am very new to both Ubuntu and python. I am trying to run a code and getting : ImportError: No module named _curses. I tried: sudo apt-get update sudo apt-get install build-essential sudo ...
1
vote
1answer
24 views

How to use shell variables after doing sudo su

I am writing a script to fix a missing 'F' letter in a mail log file. The mail log file is continuously updating. I am getting a file name, after that I am doing 'sudo su' to get superuser access. ...
1
vote
1answer
69 views

wget: unable to resolve host address ‘sudo’ [closed]

I'm new to these stuffs so I am asking this question. I'm trying to install Java v6 from terminal but I'm getting a couple of errors like: --2015-06-29 15:52:31-- http://sudo/ Resolving sudo ...
0
votes
1answer
27 views

How can I make the sudo GUI work without the admin group?

I have a group of users with sudo privileges. That group is not called admin. The users can use sudo on the command line without any problems, however, Unity GUI dialogs requesting root permission ...
0
votes
0answers
8 views

VMware: change file permissions for smb.conf

I am running Ubuntu via VMware on a windows host, i want to share a folder. When i try to edit smb.conf, i get the following error: (gedit:47899): IBUS-WARNING **: The owner of ...
0
votes
2answers
630 views

setresuid operation not permitted when calling via php

I've got following Problem: my Apache and PHP script are running as user www-data. I want to call a script that can only be executed as root, so I added a new File to /etc/sudoers.d to allow this ...
0
votes
0answers
21 views

Gtk-WARNING **: cannot open display: :0 Problem !

when i am using ' root ' , I can't run any **** -_- and that's what the terminal show as a problem I try many thinks like gksu , sudo .. , pkexec , ... but no solution No protocol specified ** ...
0
votes
1answer
28 views

How to add user to sudo group in ubuntu server [duplicate]

I tried to add user to sudoers with adduser username sudo, as well as in /etc/sudoers, but it cannot be change because is read only. Can someone help me please?
0
votes
0answers
14 views

Unable to login as root amazon ec2 instance

When I try to login as root in ubuntu using sudo su I get this error sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set I googled to solve it and I was suggested to logout from ...
51
votes
6answers
3k views

When using && and sudo on the first command, is the second command run as sudo too?

If I run a command. sudo some-command && some-other-command Is the second command being run with sudo previlege also?
0
votes
1answer
24 views

sudo unable to resolve host error message [duplicate]

I changed my hostname in: /etc/hostname And then also changed it with: sudo hostname MATRIX But I experienced a problem because (and I don't know if this is related or not) non of my ...
0
votes
0answers
15 views

npm -v return Segmentation fault

nodejs, npm works fine before. When I try to upgrade it sudo npm cache clean -f sudo npm install -g n sudo n stable And type npm -v, it throw "Segmentation fault". I restart system and I type a ...
0
votes
1answer
27 views

can't access the user account

Mistakenly I wanted to change the ownership or /usr and /etc and /home by chown -R username because I thought in this case, I won't see any error saying permission denied in installing softwares ...
9
votes
3answers
442 views

sudo permission doesn't time out durring apt-get upgrade

Consider this: You type $sudo apt-get upgrade and get a list of things that need upgrading with a "Y\n" confirmation. before you can read the list, and type "Y" or "n", the phone rings, or your boss ...
0
votes
1answer
3k views

Starting and Shutting down LAMPP with sudo access

I have read somewhere on net that we can install LAMPP (apachefriends.org/en/xampp-linux.html) in such a way that any user can start and/or stop LAMPP server using nobody Is is possible? Let me know ...
1
vote
1answer
36 views

I changed the permission for /etc folder. Sudo is not working after that

I changed the permission for /etc folder to 777 with chmod. When I try to run Sudo after that it refuses to work. I found a few fix, such as going to recovery mode to fix things but recovery mode is ...
1
vote
1answer
27 views

Upgrade python packages with pip: use “sudo” or “--user”?

I have a question about installing/upgrading Python packages using the tool pip. I can either run sudo pip install -U PACKAGENAME or pip install -U PACKAGENAME --user What is the difference ...
1
vote
2answers
125 views

How to use sudo from a standard user?

If I try using sudo as a non-privileged user, I get a message that the user is not in the sudoers file. I know the Administrator password, but I do not know, how to use it from a non-privileged ...
4
votes
1answer
24 views

Who are incidents really reported to, and how can a sudo user access the reports?

When my non-sudo account tries to run a sudo command: nonsudo@Hairy14:$ sudo hello An incident is reported: [sudo] password for nonsudo: nonsudo is not in the sudoers file. This incident will be ...
4
votes
1answer
4k 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 user. ...
13
votes
2answers
9k views

How do I prevent PolicyKit from asking for a password?

For years, I've had the following in my sudoers file: scott ALL=NOPASSWD: ALL For those who don't know, this prevents sudo and friends (gksudo, etc.) from asking for a password. However, over the ...
0
votes
1answer
46 views

User Groups Best Practices in Ubuntu Server

I reciently decided to manage my own web server (Ubuntu/Nginx) and as best practices I went and disabled the root user and created a new one with root privileges. When I created the new user I didn't ...
0
votes
1answer
32 views

How to sudo git clone and safely change permission to another user

On Raspberry Pi, I log in as the default user Pi. I do a sudo git clone on a repository, because it needs to create directories. This is specific for DNU/DNX, because we cannot run sudo dnu restore ...
-1
votes
2answers
46 views

using a sudo command without a password for a certain app

I'm using a python script to run docker, but docker requires sudo commands to run and it's bad practice to store the sudo password in the file or give the whole python script sudo rights, I've seen a ...
5
votes
2answers
101 views

what 'sudo' means for root?

I'm running the following commands in Ubuntu 14.04: root@ubuntu:~# service rpki-ca restart stop: Unknown job: rpki-ca start: Unknown job: rpki-ca root@ubuntu:~# sudo service rpki-ca restart rpki-ca ...
1
vote
0answers
41 views

Enable shutdown from another computer on LAN without entering sudo password

I'm trying to execute this script from my laptop to shutdown the server without having to enter the sudo password. (Both are running Ubuntu 14.04.2 LTS) ssh -t lachlan@192.168.0.xxx sudo shutdown -h ...
0
votes
3answers
267 views

how to make /usr/lib owned by root again [duplicate]

I chowned -R username /usr/lib and now i cannot sudo or do any thing really due to sudoers.so belonging to username. How do i fix this and make /usr/lib owned by root again?
0
votes
0answers
19 views

problem removing mysql

I am getting this error: E:Sub-process /usr/bin/dpkg returned an error code (1) At the end when i try uninstalling mysql using the command: sudo apt-get remove –purge mysql-server mysql-client ...
0
votes
0answers
47 views

Problems with sudo apt-get update

I am new to Ubuntu and I have a problem installing, updating, etc. a program. The VirtualBox network is NAT. The type of adapter is PCnet-FAST III (Am79C973). For example: :~$ sudo apt-get update ...
3
votes
4answers
6k views

`pip: command not found` but it's installed

sudo easy_install pip Searching for pip Best match: pip 1.4.1 Processing pip-1.4.1-py2.7.egg pip 1.4.1 is already the active version in easy-install.pth Installing pip script to ...
4
votes
2answers
373 views

Why can I remove a file as user which is owned by root?

As the title says: Why can I remove a file as user wich is owned by root? Here is an example: % sudo touch ~/test % ls -la ~/test -rw-r--r-- 1 root root 0 Jun 18 20:31 /home/aboettger/test % ...
1
vote
1answer
22 views

can't resolve 'ph.archive.ubuntu.com'

I am trying to install cmake and it said try running sudo apt-get install cmake. Then I entered Y but after a while the terminal displayed can't resolve 'ph.archive.ubuntu.com'. Is there really an ...
1
vote
0answers
28 views

Problem installing reader software for Estonian ID card for ubuntu 14.04

I updated my ubuntu 13.10 to 14.04 and now I have problems to install Estonian ID card reader software. When I trie to use the installation script, that I have downloaded from ...
0
votes
1answer
25 views

Sudo comes up with an error, cannot run anything as root

For some reason, when I try to run any programs (I am trying to run a rootkit hunter: rkhunter) as root on the command line with sudo like this: sudo rkhunter Then I get this message: You must be ...
10
votes
2answers
5k 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
60 views

apt-get update fails in Ubuntu 14.04 due to GPG Error

I am currently on Ubuntu 14.04 (new to Ubuntu, migrated recently). 'apt-get install' works fine, and my connection is working fine as well. But when I run apt-get update, this is what happens 100% ...
0
votes
2answers
41 views

Syntax error when add user in sudoers

I am going to execute all commands without sudo and entering password.So I added: user All = NOPASSWD : ALL But it shows me syntax error.
2
votes
2answers
81 views

Accidental changing of permissions to run sudo, leading to its inability to function

I ran sudo chmod 777 -R /usr/bin as I had a few programs there I wanted to be able to run with more ease, without continuously entering my root password but now /usr/bin/sudo keeps giving me an error ...
2
votes
1answer
36 views

How do I enable my application to write in home/**user**/.config?

I recently downloaded Sublime Text and when I entered the license into it. It replies Unable to write license file: /home/scaffrey/.config/sublime-text-3/Local/License.sublime_license and then ...