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
0answers
9 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
2answers
43 views

wget: unable to resolve host address ‘sudo’

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-- ht tp://sudo/ Resolving sudo ...
0
votes
1answer
19 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
18 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
10 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
31 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
20 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
114 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 ...
8
votes
3answers
366 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
40 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
0answers
11 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
22 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
97 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
36 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
34 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
23 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
368 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
19 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
22 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
20 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
83 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
21 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
10 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
55 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
31 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
55 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
79 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
239 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
20 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
251 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, ...
-1
votes
0answers
73 views

run sudo script at startup [duplicate]

Im trying to run this script at startup #!/bin/bash sudo iwconfig wlan0 power off Unfortantly I dont know how to put my password in the script to run it at startup with sudo privelages assuming ...
0
votes
1answer
19 views

Registering another user

I need to know the correct command to register another user. When I tried to do this using sudo adduser username it returned NAME_REGEX[_SYSTEM] configuration variable
0
votes
0answers
22 views

Is there danger involved in running Firefox as sudo?

Is there danger involved in running Firefox as sudo? I do this because I sometimes use Firefox to browse my local drives, and my primary drive is encrypted. I am using Xubuntu 14.04. Thank you.
1
vote
1answer
26 views

How to uninstall a which did not get installed properly [duplicate]

when I tried to install dropbox it did not get installed properly it now only shows the icon and does not work too so I want to uninstall it if I do it using gui nothing happens and it is still there ...
1
vote
0answers
16 views

My sudoer can not login using GUI

I only have one sudoer and it can login into the terminal or through GUI terminal. But I can not use it to log into the GDM login screen. Any possible causes?
0
votes
1answer
43 views

Converting .pcap files to .txt using tshark

I am trying to convert my .pcap packet capture files generated by tcpdump into a text format. I am getting a permission error whenever I try to convert the .pcap file or even just port ">" the stdout ...
1
vote
2answers
80 views

sudo and apt-get not found

I'm handling server as RA which was passed down to me by another graduated RA but I'm new and fresh to this environment facing a few issues right now. The server is setup by the graduate RA from ...