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
14 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
17 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
2answers
34 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 ?
14
votes
1answer
814 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 ...
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. ...
0
votes
1answer
24 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
0answers
20 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 ** ...
1
vote
1answer
62 views

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

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
24 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
11 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 ...
0
votes
1answer
20 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
11 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 ...
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
23 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
118 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 ...
9
votes
3answers
431 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
44 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
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 ...
0
votes
1answer
26 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
100 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
38 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
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
38 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 ...
1
vote
1answer
27 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 ...
4
votes
2answers
370 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
21 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
25 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
24 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 ...
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
1answer
34 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 ...
0
votes
0answers
16 views

I cannot access removable media in Ubuntu 14.04

When I inserted a pen drive and attempted to open it, it said that I don't have enough permissions to view its contents. When I used the command: "sudo nautilus" I was able to view its contents. I ...
4
votes
1answer
85 views

How to get sudo to prompt you for a password each time

I find that if I execute something using sudo that then if I execute something else soon after also using sudo, that it does not prompt me for my password, and although this can be inconvenient in ...
1
vote
1answer
46 views

How to install simplegui using terminal?

I am currently learning Python at Coursera, where we use simpleGUI (Hit play on top left) to creat intractive games. So, I wanted to use it on my machine. I found YouTube video installing simpleGUI ...
0
votes
1answer
21 views

problem with sudo somehow disabled

This is for an Ubuntu 15.04 on a laptop (Dell inspiron 3135). Somehow the capability to use sudo got lost, and probably connected, I can no longer log in on a locked screen. There is no problem to ...
0
votes
0answers
22 views

Is there any way to add myself to the sudo's file, again?

Accidentally, I must have removed myself from the sudo's file in Ubuntu 15.04. This has resulted in that I cannot use tools like chown or alike. The OS is running on my laptop, and I'm the only user ...
0
votes
1answer
23 views

Problem with sudo and low graphics mode

I have a problem and I think is a big one, involving sudo and the low graphics mode. Everything started after I format a USB stick. It doesn't appear anymore and then I asked for help here on the ...
1
vote
1answer
11 views

I deactivated zeitgeist and need help reactivating it

All I have been able to do is to activate it in the startup programs, but not in the privacy settings, it looks different now. I also run from a terminal: sudo chmod -x /usr/bin/zeitgeist-daemon sudo ...
2
votes
1answer
58 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% ...
1
vote
2answers
32 views

I'm unable to add password to newly created user

I just created a new account with Administrator privileges but cannot set up the password to activate account. I don't know how to set-up the account password via terminal.
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?
4
votes
2answers
62 views

Ubuntu 14.04 Update Fail Error

So I'm having an issue with trying to run "sudo apt-get update". After running the command, I get the error Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty/Release Unable to find ...
2
votes
2answers
80 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 ...
0
votes
0answers
15 views

how do you see list of administrators [duplicate]

how do you see administrators list or sudo's list / group
3
votes
1answer
250 views

Need an Ubuntu 15.04 sudoers file

I accidentally deleted mine by trying to edit it with emacs. Can anyone share a default copy?
0
votes
1answer
21 views

messed up my /user directory permissions an now cannot run sudo or gksu

while changing the permissions for the /usr folder of owner to root read and write of group to root read and write of other to read and write i ignoratly checked to box to propagate to all contained ...
-2
votes
2answers
257 views

Why gedit can't be used with sudo? [duplicate]

I read this answer explaining that "sometimes" root can own something at /home/$USER directory. Can anyone give an example how to prove it. Just give a test case when something really bad happens, ...