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

Long wait times logging in as other user using sudo

Any clues to why it takes 20-30 seconds for me to log in using sudo+su? $ time sudo su ida -l exit ida@timbuktu:~$ exit logout real 0m18.076s $ time sudo su ida exit ...
1
vote
1answer
28 views

Is there a way to feed commands to ubuntu at runtime? [duplicate]

what I want is way to feed commands to Ubuntu at runtime that is to so that i don not have to wait for resources that gets locked to be free for example during during update we get this error ...
1
vote
0answers
11 views

Caffeine and system settings and upper right hand corner

I was able to go to the terminal and type in the command for caffeine, but I don't find caffeine anywhere in the system settings and it doesn't show up anywhere on the upper right hand corner of the ...
-2
votes
1answer
27 views

how can i edit the sudoers file since visudo command doesn't work properly

i tried to edit the etc/sudoers ,while trying to add myself to the sudoers file,but iam unable to edit it. As i entered the command visudo the following came as output $ visudo visudo: ...
0
votes
0answers
17 views

How to use Sublime Text 2 to edit file in /var/ directory

Recently I've switched over to Ubuntu 12.04 because I really like the GUI and the way it operates apposed to Windows 8. I just set up a Apache server on here so that I am able to continue my hobby of ...
0
votes
0answers
21 views

Issue when running from terminal

I've tried running GParted from the terminal but after requesting for my password nothing happened. Now I'm trying to install Eclipse following the instructions here but I'm stuck on Step 4. When I ...
0
votes
2answers
38 views

Executing root commands without root password within a shell script [duplicate]

Is it possible to write a shell script in which we can include the root commands, and execute it without entering the root password over the terminal.
0
votes
0answers
21 views

how can i detect the sound card as i am not a sudo user?

i have to detect sound card in my laptop,but i am not a sudo user so i cannot execute any sudo commands. i am also unable to detect the soundcard,thus i don't know the way of solving this problem. ...
0
votes
1answer
47 views

how can i find out my password for root since i am not a sudo user? [duplicate]

i am asked for the password for root to edit my account settings,upgrade,especially for authentication,but i am not a sudo user.so i don't know how to solve this password asking problem if i enter ...
3
votes
2answers
35 views

How can I find whether I am a sudo user or not

I am asked for sudo password frequently while entering sudo commands in the terminal, but I can't remember whether I am a sudo user or not. Similarly I don't know any superuser do password. I am ...
0
votes
2answers
27 views

aliases not picked up when sudo in mac? [on hold]

I have the following aliases in /etc/profile. # System-wide .profile for sh(1) if [ -x /usr/libexec/path_helper ]; then eval `/usr/libexec/path_helper -s` fi if [ "${BASH-no}" != "no" ]; ...
0
votes
0answers
20 views

Disable Root — what password will it ask for when I do Sudo

My web-host recommends disabling root. I've created a non-root-user with a non-root-user's-password in the sudo group. So far so good. Here's my question. Usually, when I do sudo, Ubuntu asks for ...
1
vote
0answers
24 views

Reset sudoers file

I want to add a new user to run all commands without a password, so I went to edit /etc/sudoers (using visudo of course) by adding the line myuser ALL=NOPASSWD: ALL. Everything is OK, but 15 minutes ...
0
votes
0answers
61 views

Recurrent segmentation fault errors after upgrade to 15.04

After I upgraded from Ubuntu 14.10 to Ubuntu 15.04, on an amd64 system, many applications that I run force-close because of a segmentation fault. I have tracked down the errors with dmesg and I can ...
1
vote
1answer
62 views

gksu: Gtk-WARNING **: cannot open display: :0

All of the sudden gksu stopped working for me: ~$ gksu gparted (gpartedbin:24252): Gtk-WARNING **: cannot open display: :0 The same happens with gparted-pkexec: ~$ gparted-pkexec No protocol ...
1
vote
1answer
21 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 ...
4
votes
1answer
49 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 ...
5
votes
2answers
84 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
43 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 ...
3
votes
2answers
72 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? ...
0
votes
0answers
14 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.
10
votes
5answers
1k 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?
3
votes
2answers
182 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 ...
2
votes
1answer
144 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
vote
1answer
43 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 ...
-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
45 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 ...
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
87 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 ...
3
votes
2answers
132 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?
4
votes
2answers
91 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 ...
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
3
votes
1answer
48 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 ...
0
votes
0answers
34 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 ...
1
vote
1answer
17 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
38 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 ...
14
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: ...
1
vote
1answer
74 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 ...
1
vote
2answers
33 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
46 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
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
37 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
0answers
19 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
33 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
76 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 ...
1
vote
1answer
29 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
23 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
32 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 ...