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
8 views

LightDM does not ask for login password

I have an auto-logged in non-sudo user called "screen". I have a passwordless sudo but login-protected user called "support". I'm pretty sure this was working fine before, somehow maybe the latest ...
1
vote
0answers
22 views

Cannot go into Root

When I enter sudo su or sudo -i in terminal on Ubuntu 12.04, I cannot become superuser. When I enter the password nothing happens. Its like: user@host~: sudo -i enter passwd: ****** user@host~: ...
0
votes
1answer
12 views

Lazy right management for package installation

You can install a package (here package), by running sudo apt-get install package Some installation scripts written in bash perform such actions and require the user to enter the password every ...
0
votes
0answers
11 views

How to re-enable the only admin

I have one account on my Ubuntu and it's the admin but I accidentally disabled it. How do I un-disable it?
0
votes
2answers
35 views

Shall I delete this line in sources.list?

This line deb-src-src http://us.archive.ubuntu.com/ubuntu/ utopic main restricted, Line 63, in sources.list is not known on sudo apt-get update and is causing Synaptic Package Manager and Ubuntu ...
0
votes
0answers
24 views

What is this fprint log doing when I sudo?

A while ago I was trying to get my fingerprint reader to work, compiling an experimental version of fprint. Since then, every time I sudo, in stead of asking for my password I get an fprint log. ...
0
votes
1answer
10 views

Start an appli with sheduled task not work

I have a seedbox unders a ubuntu desktop server. I run rtorrent correctly but if I restart the server I need to relaunch rtorrent with this command : sudo -i #mypassword" screen -fa -d -m rtorrent ...
0
votes
1answer
30 views

Permissions of a new User changed mine

I have a pc which is running Linux Ubuntu 14.04 and few weeks ago a colleague of mine added him to the pc and since then I can do sudo something but I can't perform certain actions like: installing ...
1
vote
1answer
20 views

How to get the long 'less' prompt with sudo?

I have added the following to my user's .bashrc file to get a longer prompt in less: export LESS="-M" This is added to the root user's .bashrc file as well, so when I sudo bash to get a root shell, ...
0
votes
0answers
19 views

'sudo' is not known after moonlight install

yesterday I tried install moonlight (silverlight) and something going wrong. Now i have problem with update and Ubuntu software center. E: Typ "sudo" is not known in line 1 list sources ...
0
votes
2answers
33 views

Simple question on sudo su -

What is wrong with the following? [cloudera@localhost zookeeper]$ sudo su - zookeeper [cloudera@localhost zookeeper]$ whoami cloudera In response to one of the comments: [cloudera@localhost ...
0
votes
0answers
22 views

Correct permissions or undo a command [duplicate]

I will start this question with I'm a noob and I broke linux. Probably shouldn't have ran the command I did but now I cannot use sudo for anything not sure how to undo fix what I did. The command I ...
2
votes
1answer
57 views

Run script with arguments as sudo without being asked for password

I have two programs in Java that I'm calling from bash script: java program1 arg ... arg sudo java program2 arg ... arg I want to run program2 as sudo without being asked for password. I'm aware of ...
0
votes
1answer
57 views

sudo error permission denied

I have started few days ago with Ubuntu Server and I've got a weird error: ubuntu@ubuntu: $ sudo -s sudo: /var/lib/sudo/ubuntu/ is accessible in write mode from not-owner (040777), should have ...
0
votes
4answers
66 views

Undo sudo rm -R /*

I stupidly ran sudo rm /* followed by sudo rm -R /* My sites still run, although the vast majority of commands like ls are now broken. Is there a simple way to get data off the server or reverse ...
0
votes
0answers
40 views

unable to resolve host address in ubuntu 14.04 with sudo

im trying the following: wget https://pypi.python.org/simple/ and its working fine. But if try the same with sudo as follows, its giving me an error: sudo wget https://pypi.python.org/simple/ ...
0
votes
2answers
60 views

“sudo su” does not pass the environment variables to the new shell? [duplicate]

su manual http://manpages.ubuntu.com/manpages/precise/man1/su.1.html The current environment is passed to the new shell. Obviously you cant use su in Ubuntu as in su but it has to be always ...
0
votes
1answer
21 views

modify another user's password entry with sudo power

what are the sequence of commands to modify another user's password entry with sudo power in ubuntu? I like to change the other user's pass in ubuntu with sudo power?
0
votes
1answer
38 views

Run interpreted commands within sudo

The question is how to run generic commands which may contain ; && | < > << >> $ and so on within sudo. Possible solutions could be: To use interpreters within sudo sudo ...
1
vote
1answer
31 views

Run sudo command within directory

Possible solutions could be: Starting interactive session. sudo -s <<< "cd dir ; command" or sudo /bin/bash -c "cd dir ; command" But I don't have /bin/bash /bin/sh /bin/su or other ...
0
votes
1answer
26 views

Why do I need sudo to run apt-mirror?

Why do I need sudo to run apt-mirror? Is there a way to run apt-mirror without sudo?
0
votes
0answers
14 views

IAM role in ubuntu

I am facing 'RepositoryException' when I tried to host snapshot data of elastic search data from a Windows to a Linux machine. I think it's due to user permissions. Browsing this link to github, i'm ...
0
votes
2answers
27 views

Cannot run this program neither with nor without sudo

I tried to run this program (texlive package manager): tlmgr install and got this error: You don't have permission to change the installation in any way, specifically, the directory ...
0
votes
1answer
35 views

sudo geany throws fatal error [duplicate]

I really like the Geany text editor, and would like to use it instead of gedit for all text editing. However, every time I try to launch Geany from the terminal using sudo geany file.conf, I get this ...
1
vote
1answer
31 views

Booting in single user mode

On 14.10 holding shift at boot time doesn't bring up the grub menu. Is there another way I can boot in single user mode? I have bricked my sudoers file so I can't use sudo btw. I don't get a grub ...
0
votes
0answers
19 views

User was deleted after reboot

Unsolved mystery - I was given a coworker's Ubuntu 12.04.1 LTS machine and set up my own (sudo/admin) user on there from the command line. I switched to my user and confirmed everything was okay using ...
2
votes
1answer
39 views

unix - disable “su” for ssh'ers

I'd like to disable getting root at all for users who ssh in - including "sudo su" cause that's pretty much the same thing... Can this be done? Assume that I'M not ssh'ing in, and have physical access ...
0
votes
0answers
30 views

How to leave root without exit command or ctrl+D

I'm logged in as root to do some stuff, and i have Tmux open. The trouble is, when I type 'exit' to leave root, it instead closes Tmux, because they use the same command. Is there a way to switch back ...
0
votes
1answer
14 views

installing software package for any user account and root user

Suppose I've two users in my system viz. USER1 and USER2. When I need to install any package for any user say USER1, I need to do "sudo su" which means root privilege. But is this software installed ...
0
votes
0answers
39 views

Broken /etc/sudoers file, can not use sudo [duplicate]

An edit to /etc/sudoers messed up the file. I can not use sudo anymore. Following error message is showing when attempting to use sudo, sudo chmod u+w /etc/sudoers >>> /etc/sudoers: syntax ...
-1
votes
1answer
44 views

sudo apt-get update in 14.04

I really need your help when i wrote this command (sudo apt-get update) in terminal , it give me this errors : E: Type 'See' is not known on line 2 in source list /etc/apt/sources.list E: Type 'dep' ...
-1
votes
0answers
107 views

sudo apt-get update problem for beaglebone black

I run ubuntu 14.04 on micro sd card for beaglebone black. I tried to update but i obtained a series of error and warning as follows ubuntu@arm:~$ sudo apt-get update sudo: unable to mkdir ...
0
votes
1answer
51 views

how to remove kubuntu plasma 5 dekstop?

I installed KDE 5 Plasma using this command $ sudo apt-add-repository ppa:kubuntu-ppa/next $ sudo apt-get update $ sudo apt-get install kubuntu-plasma5-desktop $ sudo apt-get upgrade How to remove ...
1
vote
0answers
15 views

SFTP as a different user than you logged in with

I connect to my work machine over SSH. Sometimes I transfer files back and forth using using Nautilus' "Connect to Server" feature. Sometimes I change to the root user and run commands. But I cannot ...
0
votes
1answer
39 views

I seem no longer to be a sudoer

On Sunday I let my son watch Netflix on my laptop as I was ill and in bed so couldn't watch it downstairs on the television with him. This may or may not be the root cause of my problem. Sudo no ...
0
votes
1answer
34 views

How to fix error temporary failure resolving 'archive.ubuntu.com'

I'm trying to install openvswitch on a Ubuntu VM(virtualbox) After executing sudo apt-get install openvswitch-switch I get the following errors: err http //archive.ubuntu.com/ubuntu/ trusty/main ...
0
votes
0answers
51 views

Can only commit changes to dconf as root

This is all over ssh. If I run gedit I get lots of dconf errors (gedit:35765): dconf-WARNING **: failed to commit changes to dconf: Could not connect: Connection refused If I run sudo gedit I get ...
0
votes
1answer
30 views

cannot switch to root

I cannot do "sudo su" It says "Cannot execute /bin/bash: No such file or directory". I have not bash file at /bin/bash. Please let me know how to recover it. I tried copying it from other system or ...
1
vote
0answers
74 views

Ubuntu 14.10 asks permissions for everything

I just made a clean install of Ubuntu 14.10, since I had a 14.04 that I had upgraded a few times. After the install, the OS asks root permissions for a lot of stuff I was able to do without issues ...
0
votes
3answers
107 views

Skype requires sudo access to run?

Okay, so I recently installed Ubuntu 14.04 and from there upgraded to 14.10. My installation is 64bit. I have installed several other programs and all work fine. For some reason when I try to run ...
0
votes
0answers
29 views

Install boto without password

I am new to Ubuntu. I have a virtual box on a Windows 7 computer. I went to this page. https://github.com/boto/boto I need to install boto. The commands are $ git clone ...
1
vote
1answer
38 views

Question about the sudoers file

This line is from my Ubuntu 14.04 root ALL=(ALL:ALL) ALL What is the meaning of the third ALL? What is the difference between the above line and root ALL=(ALL) ALL?
0
votes
1answer
33 views

Cannot run script at start-up because of dependecy

I want to make some scripts running at start-up, but one of them.. I read a lot of posts and tried lots of ways but still cannot make it. Let me explain what I want. I have a ubuntu 12.04. I need to ...
25
votes
5answers
5k views

What's wrong with using sudo?

In a comment here I've been told that unnecessarily using sudo should be avoided. While it wasn't needed in that particular case, I don't see any harm in using it. I think that when executing trivial ...
0
votes
1answer
32 views

User stopped being sudoer after release upgrade

I've upgraded one of web server, that was running Ubuntu from 11.10 to 12.04 (No downtime since it's creation, though serving 10-40k requests/daily). sudo apt-get install update-manager-core ...
0
votes
0answers
23 views

Cannot execute sudo command without correct password (Even though my account has no password). Why? [duplicate]

My account on my computer does not require a password, and I have admin privelages. As I understand it, so I'm trying to run sudo [...] and getting the following result when leaving the password field ...
1
vote
1answer
49 views

Asking for a sudo password in advance

I have some scripts for backing up data. Some of them need root access, so I use them with sudo. However, sometimes I get confused, e.g. for the mySQL backup, which also needs a mySQL root password. ...
0
votes
1answer
49 views

How can I have Wicd connect to my wireless network without having to enter a password?

In the context of my earlier deleted question below: Everytime I run WICD (Network Manager) it requires my password for permission. I'm not against Ubuntu asking for passwords in general but ...
0
votes
0answers
28 views

Whitelist a program as admin

Everytime I run WICD (Network Manager) it requires my password for permission. I'm not against Ubuntu asking for passwords in general but everytime I log in is a little excessive. Is there a way to ...
9
votes
1answer
776 views

How could I have dropped out of sudoers? [duplicate]

I started to receive a message dims is not in the sudoers file. This incident will be reported. about myself. How could this happen? The suspicious command I made was creating group "advanced" ...