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
1answer
9 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
9 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
16 views

How would I be able to access the ppp settings through terminal [on hold]

I'm trying to open the ppp settings in terminal so I can try connecting my dreamcast through the DC to PC server and I got up to the point where I need to open the settings and each time I put Sudo ...
0
votes
0answers
22 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.
2
votes
0answers
40 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
20 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
37 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
70 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 ...
-1
votes
0answers
19 views

Already Setup Up sudo NOPASSWD but Still Prompts Password

I've already set NOPASSWD option in sudoer file for my account, however it still prompts me to enter the password when I'm using sudo. My customized line is: nolan ALL=(ALL) NOPASSWD:ALL ...
-1
votes
0answers
24 views

sudo stopped asking for password on ubuntu 14.04 [on hold]

when I try to use sudo command there is no password prompt, just text typing displayed. Also I don't have permissions to view/edit sudoers file. Please let me know whether you have faced with the same ...
3
votes
1answer
46 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 ...
-1
votes
0answers
18 views

sudo cannot be executed in a terminal (14.10) [duplicate]

i want to update true terminal but when i enter sudo apt-get update i get the following respond: sudo apt-get update [sudo] password for tjarco: E: Type 'sudo' is not known on line 2 in source list ...
-1
votes
0answers
13 views

Everything is locked up, and I cant use the terminal or properties to change permissions [closed]

Everything on my Linux box is locked up, as in, root only, and I cant use the terminal or the properties, and yes i have tried sudo su, and chmod, and chown, nothings working. Here is an image.
0
votes
1answer
31 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
28 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
33 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?
0
votes
0answers
26 views

Ubuntu no desktop+sudo error [duplicate]

OK so I recently wanted to make my system run faster. What I did was wrote a script using gedit and I saved it in my etc/init. I also had to change up some permissions. When I rebooted my system and ...
0
votes
0answers
54 views

find only works with sudo?

I've been searching for a while now and I can't find an awnswer to this. Let's assume I created this dir /Desktop/things and I want to find it using find. If I do find . -name things -type d ( and ...
1
vote
0answers
15 views

Warning message when using sudo [duplicate]

So I'm on Ubuntu 14.04 and for some reason every time I use sudo or log in as root I get the following message: grant@grant-G551JM:~$ sudo apt-get build-dep python-pygame sudo: unable to resolve host ...
1
vote
1answer
28 views

Difference between su and sudo su [duplicate]

Asking because of curiosity. :) When I type sudo su It asks for my user password. And when I type just su It asks for the root user password. But both the commands directs me to the root ...
2
votes
1answer
95 views

Error, even with sudo: “dd: failed to open ‘/dev/sda1’: Permission denied” (dd input piped from gzip)

My command which doesn't work: sudo gzip -dc sda1.image.gz | dd of=/dev/sda1 returns the following error even before I've had a chance to enter my password: dd: failed to open ‘/dev/sda1’: ...
2
votes
0answers
22 views

Creating a normal user without sudo access but with ability to switch to another admin user

User A - can't be part of sudo or admin group, ssh keys based identity setup for ssh login, can't be a guest account User B - no home folder, must have a password, can't have independent ssh login, ...
4
votes
1answer
185 views

vim unable to write to files even though sudo is used

I find that with vim, if I try and edit a file which as a normal user I do not have write access with, even if I use sudo, I am unable to write to it, although if I use nano to edit the same file it ...
1
vote
0answers
47 views

Unable to install anything in Lubuntu [duplicate]

I recently downloaded Lubuntu on my laptop, and I used a CD to install it. My internet was not on. After I got an internet connection, I tried using sudo apt-get install... to install various ...
2
votes
3answers
36 views

Trying to install software from user account but getting denied

user@main-desktop:~$ sudo apt-get python-cheetah [sudo] password for user: user is not in the sudoers file. This incident will be reported. So that is what I get when trying to install something ...
0
votes
1answer
271 views

“gzip: stdout: No space left on device” error message when updating [duplicate]

My previous to last update was showing the following warning: Generating grub configuration file ... Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer ...
1
vote
0answers
21 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
40 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
15 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 ...
-3
votes
1answer
39 views

How can I edit the sudoers file since visudo command doesn't work properly [duplicate]

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

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

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
29 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
56 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
24 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
61 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 ...
2
votes
2answers
40 views

How can I find whether I am a sudo user or not [duplicate]

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

aliases not picked up when sudo in mac? [closed]

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
21 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
38 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
112 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
263 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
31 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
62 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
95 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
46 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
73 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.
11
votes
5answers
1k views

How could I list all super users?

I want a command to list all users who have root privileges i.e. sudo ? Suppose I'm a sudoer user. How could I know all other sudoer users?
3
votes
2answers
213 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 ...