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
0answers
58 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
73 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
47 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 ...
5
votes
2answers
378 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
27 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
40 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
40 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
45 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
45 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
19 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
94 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
57 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
23 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
23 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
27 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
22 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
80 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
37 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.
52
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
72 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
94 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
381 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
28 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
311 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, ...
0
votes
1answer
21 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
25 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
28 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
120 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
166 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 ...
1
vote
0answers
38 views

How do I get Super User access in guest

I have recently installed Ubuntu via Wubi Installer. The dual-boot works fine but when I can't login as Admin, it only allows me to enter via "Guest". To do any administrative activities such setting ...
0
votes
2answers
22 views

What is the proper way to enable sudo for myself on a new installation?

Is booting into recovery console to gain root access to "sudoers" file the proper way to enable "sudo" for myself on a clean Ubuntu 14.04 LTS installation? If yes, how do I do it? If no, what is the ...
0
votes
1answer
26 views

x11vnc - How can I allow only certain users to have a VNC session

On my server, all but port 22 (ssh) are closed. VNC is possible, but only with a VNC-over-ssh method. Right now x11vnc is started -forever at boot. With the right ssh tunnel, anybody can initiate a ...
0
votes
0answers
11 views

how to install canon capt driver in ubuntu 14.04LTS [duplicate]

i have downloaded the canon CAPT driver but i do not know how to install the driver
0
votes
0answers
31 views

I can't update using apt-get update in the terminal [duplicate]

i want to update ubuntu using sudo apt-get update but when i do i get this: sudo apt-get update E: Type 'sudo' is not known on line 2 in source list /etc/apt/sources.list.d/mono-xamarin.list E: The ...
0
votes
0answers
12 views

How do I make myself admin? [duplicate]

My dad made himself admin, and locked me out when he gave me this computer about 5 years ago (running Ubuntu 12.04, can't update). He no longer has his sudo password, and now I can't install new ...
0
votes
1answer
25 views

How do I enabel my VPN on my standard account?

I use a VPN client named MullvadVPN I have to use from time to time. I use a Standard profile for my day to day work and the problem is that the VPN client have to have Sudo access to run. And since I ...
0
votes
1answer
12 views

Allow users in the “exampleuser” group to run su -c exampleuser

I want to modify sudoers so that users in the group www-data can switch to the user www-data without a password. I know it is possible, but I don't want to break my system. Here's what I have so far: ...
0
votes
0answers
32 views

How to whitelist commands to certain users in Ubuntu

I have heard that there is a way to whitelist certain commands to users in Ubuntu. Such as allowing a user to run rm but not rm -r or rm -f. Hope someone can help.
3
votes
0answers
77 views

How to add flags and/or arguments to a command in the 'sudoers' file

How would I add flags and/or arguments to allow users in the sudoers file to run certain parts of commands, such as only allowing a user to run sudo rm and not sudo rm -rf? I am using 14.04. # # ...
1
vote
1answer
106 views

Sudo: sessions still open not unmounting

Ubuntu Trusty Tahr 14.04 is running on my computer. By mistake the sudoers file on my computer was edited and now looks like this: Defaults env_reset Defaults ...
0
votes
1answer
57 views

error in running bash script as root

I have a simple shutdown script which i want to run as root shutdown -h +30; echo "succesfull"; I have followed these answer1,2 to make my script root. first I run this command sudo chown ...
3
votes
2answers
186 views

Certain commands not working for a user with sudo after adding to `sudoers` file

I cannot seem to allow the user (In this case Ruby) to run sudo rm -rf, sudo rmdir, or sudo mkdir. I have tried it with other commands and it works fine allowing that user to run sudo apt-get update ...
3
votes
1answer
94 views

Suddenly can't run sudo

I didn't do anything on the computer except Internet for a few days and suddenly when I tried to do: $ sudo apt-get update I got: sudo: effective uid is not 0, is /usr/bin/sudo on a file system ...
0
votes
1answer
41 views

My server can only be run in sudo su [closed]

I have a Ubuntu server 14.04 and I can only use any user from Sudo su but I want to use a use normal without sudo su. Is there a way to disable sudo su (root)
0
votes
1answer
38 views

Can a user with ssh keys set their own password after logging in with keys without knowing their password?

I'm playing around with a script to create a user across a number of machines. I'd like to not know the users password at any time, but having the public SSH keys is quite acceptable to me. The user ...
1
vote
1answer
60 views

Ubuntu Server Change Username [duplicate]

I currently only have 1 user account on my ubuntu server. I would like to change the user name without creating another account. Is there a way to do this? Any help would be greatly appreciated.
2
votes
0answers
29 views

How to change the timeout between sudo sessions? [duplicate]

What is the default timeout interval of a sudo session? How to edit that?