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
1answer
10 views

“cannot open display: :0” error when using sudo with any GTK app

I want to run gmsartcontrol (UI tool for smartctl) which needs to be run as root in order to access the drives and read their SMART status. However doing this: sudo gmsartcontrol I get this ...
0
votes
1answer
25 views

E: Type 'sudo' is not known on line 1 in source list /etc/apt/sources.list.d/mono-xamarin.list

Don't know what happened for this to happen. The content of /etc/apt/sources-list.d/mono-xamarin.list is sudo apt-get update
3
votes
0answers
40 views

chmod -R 777 /etc, I have no name! [duplicate]

I really screwed up and did sudo chmod -R 777 /etc After searching for hours for an answer I eventually booted into recovery mode and did: mount -o rw,remount / # because the file-system was ...
0
votes
0answers
19 views

ubuntu 12.04 booting freezing on “Booting system without full network configuration…”

I have Asus laptop with Ubuntu 12.04 on it, the problem start after I change the permission of /etc which result that I can't execute the sudo commands when I tried to change the permission I got this ...
0
votes
0answers
25 views

Can't Install or download anything in Pear OS 8 [on hold]

I recently installed Pear OS 8 and have ran into many problems since. Essentially, I can't download or install anything. At first I was getting a "failed to download repository information" error. I ...
0
votes
0answers
18 views

sudo password 14.04 after some maintenance

After an update and using system janitor I no longer have syncing password for sudo. initial ubuntu login works but screen lock password for admin account no longer provide sudo in terminal, system ...
0
votes
0answers
23 views

Cant install program from ubuntu software center-it says“check your internet connnection!failed to download repository information” [duplicate]

says..404 not found W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-updates/universe when enered sudo apt-get update
0
votes
1answer
23 views

GTK apps not respecting Kubuntu's oxygen-gtk theme when executed as sudo

I am using Kubuntu 14.10 and it's working quite well so far, but my problem is pretty much what it's stated in the title, when executing a GTK app that requires sudo privileges, such as Synaptic ...
0
votes
0answers
11 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
25 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
13 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
37 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
27 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
13 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
25 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
35 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
23 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
66 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
58 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
68 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
46 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
76 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
23 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
42 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
36 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
27 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
28 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
38 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
36 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
42 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
33 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
18 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
46 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' ...
0
votes
1answer
62 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
38 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
61 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
33 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
82 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
114 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
43 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
39 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 ...