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)

4
votes
1answer
46 views

How do I allow a user to only run the apt-get update command with sudo?

I cannot figure out how to allow a user (in this case test) to only be able to run the apt-get update command with the sudoers file. When ever I try to add the user and then test it out it still does ...
1
vote
1answer
16 views

sudoers file corrupted

My server crashed and I had to restart it from the power button. However once I restarted it i can no longer run sudo. When I try I get >>> /etc/sudoers: syntax error near line 1 ...
5
votes
2answers
70 views

How do I tell a shell script my password?

I've been trying to create a script that runs sudo apt-get update and sudo apt-get autoremove whenever I log in. It goes like this: #!/bin/bash (sudo apt-get update) (sudo apt-get autoremove) But ...
2
votes
2answers
42 views

When one disables the root account via the terminal, what output can one expect?

When I used Ubuntu for the first time, my friends told me to enable the root account, and I enabled it. But, I know that I already reinstalled Ubuntu few times, but in this last time, I don't know if ...
54
votes
7answers
4k views

What does `!!` mean in `sudo !!`?

I am a user of Ubuntu with not much experience and I have been using sudo. What does sudo !! do and how?
10
votes
5answers
911 views

How could I list all sudoers?

I want a command to list all sudoer users in Ubuntu 12.04. In other words, how could I list all users who have sudo ability? Suppose I'm a sudoer user. How could I know all other sudoer users?
0
votes
1answer
3k views

Starting and Shutting down LAMPP with sudo access

I have read somewhere on net that we can install LAMPP (apachefriends.org/en/xampp-linux.html) in such a way that any user can start and/or stop LAMPP server using nobody Is is possible? Let me know ...
4
votes
2answers
83 views

deleted the only sudoer user by mistake

I have a xubuntu pc at work, so I wanted to remove all users and create just one sudoer user with the name of the new person using the pc, so that he would be able to install programs etc. without ...
3
votes
2answers
68 views

Are there any security issues with making my /etc/sudoers publicly readable?

I've recently started to use my GitHub account as a way to synchronize my various config files across computers, including my /etc/sudoers. Are there any security vulnerabilities that this exposes? ...
3
votes
2answers
167 views

Why can't sudo find a command after I added it to PATH?

I want to add some command to PATH so that I can use them conveniently, such as: export $PATH = "$PATH:/opt/storm/bin" but sometimes storm need root authority, but when I use it with sudo, Ubuntu ...
0
votes
0answers
13 views

list all users in a specific group [duplicate]

How to list all users in a specific group, in many scenarios: I'm a user in that group I'm a sudo user outside that group I'm a normal user outside that group I'm the root user.
1
vote
1answer
28 views

Desktop files with superuser privileges

I have Matlab installed under /home/fer/Matlab, with the main exec file being /home/fer/Matlab/R2014b/bin/matlab. There is something weird with it and it only works if I open it with the terminal ...
2
votes
1answer
127 views

unable to edit /etc/hosts file in ubuntu 14.10

I changed the hostname from default name, set during installation to something short and nice, but didn't change it in /etc/hosts file. /etc/hostname is changed after restart but sudo is not working. ...
-1
votes
0answers
18 views

i get this error when i type sudo apt get update [duplicate]

W: Duplicate sources.list entry <http://us.archive.ubuntu.com/ubuntu/ precise-security/main> amd64 Packages ...
3
votes
1answer
42 views

Can't start program without using sudo

I have monodevelop 5.7 installed on my computer with ubuntu 14.10, but when I tried run it from launcher and from the command ~$ monodevelop they didn't work. But when I used the command ~$ sudo ...
3
votes
1answer
403 views

Use one password for administration and another for system login

How can I give a user one password for normal usage when logging in, and another password for system administration and sudo access? I want one user to have two passwords.
10
votes
5answers
53k views

how to remove symbolic link

i was doing sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin but i accidentally typed something else. So now I want to correct it but it says symbolic link already exist. Please help, Thanks in ...
0
votes
1answer
29 views

Couldnot able to install anything

I tried to use sudo apt-get install its not working. So I did ping google.com it gave me ping: unknown host google.com I have net connection and I able to access Internet in browser. How ...
2
votes
1answer
65 views

Is it possible to get ota updates after making system rw?

Is it possible to get ota updates after making system rw by "sudo mount -o remount,rw /"? I mean in this case: If I don't update system using "sudo apt-get update" and don't install any software using ...
0
votes
3answers
56 views

Get current ssh session's originating IP without being superuser

I am trying to find out the current ssh session's originating IP address. I found the following to be useful, but it requires sudo: $ sudo netstat -tapen | grep ssh | awk '{ print $5}' | sed ...
0
votes
3answers
11k views

no space in disk; sudo apt-get clean not working

I have been trying to update my xubuntu version but it keep saying there's no enough space on disk. The window says me to execute "sudo apt-get clean" but I have no answer. It just don't do anything. ...
78
votes
5answers
160k views

How do I add a user to the “sudo” group?

In /etc/sudoers I see this: # Allow members of group sudo to execute any command after they have # provided their password # (Note that later entries override this, so you might need to move # it ...
3
votes
2answers
117 views

What is “root” and how can I become it? [duplicate]

When I ran a command, I got the following error: You need to be root to perform this command. What is root and how can I become it?
6
votes
2answers
2k views

How do I make a sudo command start at start-up with a 1 minute delay?

I would like to make a sudo command (sudo service smbd restart) run after 1 minute of being logged on. How would I go about doing this? P.S. This is a system with no monitor, mouse, keyboard or ...
0
votes
1answer
155 views

How to install TREE in command line?

How do I install "TREE" via apt-get in Terminal? I have been trying to do apt-get update tree but nothing seems to happen. Is it necessary to include sudo in the command...?
0
votes
3answers
4k views

sudo pecl command not found

I'm using ubuntu 12.04 I installed php pear using this command sudo apt-get install php-pear php5-dev I got this results Reading package lists... Done Building dependency tree Reading ...
1
vote
1answer
63 views

Terminal commands are not working Ubuntu 14.10 [duplicate]

How do I fix this major issue: E: Type 'sudo' is not known on line 3 in source list /etc/apt/sources.list.d/libdvdcss.list What do I do to fix this? This is what I get when I open Synaptic Package ...
3
votes
1answer
46 views

Create zip files in /var/www/html using crontabs

As the title explains, I'd need to take a file and put it into a zip archive once a day; also, the zip file has to be moved in /var/www/html, where a .php scripts allow users to download it. Assuming ...
1
vote
1answer
15 views

Disable X support for emacs globally [duplicate]

First, I tried installing the latest emacs-nox, but that did not work. Then, I added -nw to my ~/.bash_aliases, which works in most cases, except when I need to run sudo emacs [file] I still get ...
0
votes
0answers
10 views

gksudo equivalent for Ubuntu Touch

Is there a gksudo equivalent (or Cpp / Qml api call) that lets you ask for a password in a graphical way on Ubuntu Touch? Thanks
7
votes
2answers
7k views

How can I get an interactive shell as another non-root user?

I'm using Ubuntu 10.04 LTS server, with the default security model (root locked, using sudo to elevate privileges). I occasionally enjoy using sudo -i when I'll need to run a series of commands with ...
0
votes
0answers
33 views

Can't change password Ubuntu 14.04 LTS after try many ways

I'm suffering with a suck problem. When I installed Ubuntu 14.04, I created a password but seem I tick start without log in. After few day using normally, I show a pop-up ask me to authentication for ...
13
votes
4answers
1k views

I change the last line in /etc/passwd and I can't use sudo

Here is what I have done: Change a username in the last line: tiny to abc tiny@tty7:~$ sudo vim /etc/passwd Change this: tiny:x:1000:1000:tiny,,,:/home/tiny:/bin/bash to this: ...
26
votes
2answers
50k views

Run a shell script as another user that has no password

I would like to run a script from the main ubuntu shell as a different user that has no password. I have full sudo priviledges, so I tried this: sudo su -c "Your command right here" -s /bin/sh ...
0
votes
0answers
34 views

sudo permission errors or “command not found” errors when working on a hybrid SSD/HDD setup? (specific example: MATLAB installer)

Since my SSD is small, I still relegate it to only holding the OS. So, during Ubuntu install, I created a 60 GB partition for / on my SSD, and a 500 GB partition for /home on my HDD. However, now I ...
1
vote
2answers
30 views

Accidentally took execute privileges off my /home

Afterwards I couldn't execute any commands without receiving a 'permission denied' error. Upon restarting the computer, when I enter my password Ubuntu will look like it's loading for a second but ...
0
votes
1answer
42 views

How to get a program to startup at start if it requires sudo to start

I have got a program which to start needs to be started with sudo, but as it would be very useful for this program to start up at startup without me having to manually start it, is there a way to get ...
0
votes
2answers
108 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
14 views

how to fix the following error? [duplicate]

How to fix this following error? /etc/sudoers: syntax error near line 21 sudo: parse error in /etc/sudoers near line 21 sudo: no valid sudoers sources found, quitting sudo: unable to initialize ...
2
votes
1answer
35 views

Deleting user from sudoers [duplicate]

Hi I executed this command sudo adduser username sudo and am wondering how do I take that username out from being able to execute sudo. I checked the sudoers file but the username that I added thru ...
1
vote
1answer
20 views

Program connects via USB only if called with sudo

I have downloaded JLink package and unpacked it to /home/mkru/ARM/JLink_Linux_V498a_x86_64. Then I have added this path to my PATH variable. When I try to execute JLinkExe I get the following error: ...
0
votes
1answer
51 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 ...
0
votes
0answers
16 views

How to build libgee (“undefined reference to 'g_get_num_processors'”)?

I am not able to install libgee. When I tried running on the command line sudo apt-get install libgee it said libgee is already in its latest version, when it is actually is not in its latest ...
0
votes
0answers
27 views

Allow sudo in default guest account

I am trying to run Microsoft Office for some public workstations. I have added the following entry to my sudoers file: %win ALL=(windows) NOPASSWD: /usr/share/playonlinux/ /home/windows/.PlayOnLinux ...
3
votes
1answer
69 views

sudo: can't open /etc/sudoers: Permission denied [duplicate]

sudo from a standard user works fine, but when I try to use it from root it returns this error: sudo: can't open /etc/sudoers: Permission denied sudo: no valid sudoers sources found, quitting ...
0
votes
1answer
171 views

Forever cannot be installed

While trying to install Forever using this command: sudo npm -g install forever I'm getting this error: npm WARN engine hawk@0.10.2: wanted: {"node":"0.8.x"} (current: ...
1
vote
1answer
23 views

mv: cannot move ‘/etc/default/keyboard.tmp’ to ‘/etc/default/keyboard’: Operation not permitted

I run: sudo mv /etc/default/keyboard.tmp /etc/default/keyboard I get this error: mv: cannot move ‘/etc/default/keyboard.tmp’ to ‘/etc/default/keyboard’: Operation not permitted How to fix this ? ...
0
votes
1answer
19 views

Allow nopasswd sudo for specific user

I am trying to set the scp as a specific user with NOPASSWD. alice ALL = (bob:ALL) NOPASSWD: /usr/bin/scp As I did understand from this question. However when I save using my visudo I still can't ...
0
votes
0answers
27 views

sudo apt-get update cannot fetch the server why?

I use Ubuntu 14.04.2 LTS (GNU/Linux 3.14.33-ti-r50 armv7l) in my device.When I try sudo apt-get update I see this error below: Err http://ports.ubuntu.com trusty InRelease W: Failed to fetch ...
0
votes
1answer
17 views

Terminal error output RE: editing .conf file in Xbuntu [owned by uid 1000 istead of 0]

Was curious as to the terminal error output from running sudo Kate. I read in a forum that directed me to open my notepad using gksudo. Realizing that this had not been installed I just went ahead and ...