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)

2
votes
2answers
129 views

Accidental changing of permissions to run sudo, leading to its inability to function

I ran sudo chmod 777 -R /usr/bin as I had a few programs there I wanted to be able to run with more ease, without continuously entering my root password but now /usr/bin/sudo keeps giving me an error ...
0
votes
0answers
15 views

how do you see list of administrators [duplicate]

how do you see administrators list or sudo's list / group
3
votes
1answer
455 views

Need an Ubuntu 15.04 sudoers file

I accidentally deleted mine by trying to edit it with emacs. Can anyone share a default copy?
0
votes
1answer
36 views

messed up my /user directory permissions an now cannot run sudo or gksu

while changing the permissions for the /usr folder of owner to root read and write of group to root read and write of other to read and write i ignoratly checked to box to propagate to all contained ...
-1
votes
2answers
330 views

Why gedit can't be used with sudo? [duplicate]

I read this answer explaining that "sometimes" root can own something at /home/$USER directory. Can anyone give an example how to prove it. Just give a test case when something really bad happens, ...
0
votes
1answer
22 views

Registering another user

I need to know the correct command to register another user. When I tried to do this using sudo adduser username it returned NAME_REGEX[_SYSTEM] configuration variable
0
votes
0answers
26 views

Is there danger involved in running Firefox as sudo?

Is there danger involved in running Firefox as sudo? I do this because I sometimes use Firefox to browse my local drives, and my primary drive is encrypted. I am using Xubuntu 14.04. Thank you.
1
vote
1answer
32 views

How to uninstall a which did not get installed properly [duplicate]

when I tried to install dropbox it did not get installed properly it now only shows the icon and does not work too so I want to uninstall it if I do it using gui nothing happens and it is still there ...
1
vote
0answers
18 views

My sudoer can not login using GUI

I only have one sudoer and it can login into the terminal or through GUI terminal. But I can not use it to log into the GDM login screen. Any possible causes?
0
votes
1answer
241 views

Converting .pcap files to .txt using tshark

I am trying to convert my .pcap packet capture files generated by tcpdump into a text format. I am getting a permission error whenever I try to convert the .pcap file or even just port ">" the stdout ...
1
vote
2answers
356 views

sudo and apt-get not found

I'm handling server as RA which was passed down to me by another graduated RA but I'm new and fresh to this environment facing a few issues right now. The server is setup by the graduate RA from ...
1
vote
0answers
46 views

How do I get Super User access in guest

I have recently installed Ubuntu via Wubi Installer. The dual-boot works fine but when I can't login as Admin, it only allows me to enter via "Guest". To do any administrative activities such setting ...
0
votes
2answers
23 views

What is the proper way to enable sudo for myself on a new installation?

Is booting into recovery console to gain root access to "sudoers" file the proper way to enable "sudo" for myself on a clean Ubuntu 14.04 LTS installation? If yes, how do I do it? If no, what is the ...
0
votes
1answer
40 views

x11vnc - How can I allow only certain users to have a VNC session

On my server, all but port 22 (ssh) are closed. VNC is possible, but only with a VNC-over-ssh method. Right now x11vnc is started -forever at boot. With the right ssh tunnel, anybody can initiate a ...
0
votes
0answers
11 views

how to install canon capt driver in ubuntu 14.04LTS [duplicate]

i have downloaded the canon CAPT driver but i do not know how to install the driver
0
votes
0answers
31 views

I can't update using apt-get update in the terminal [duplicate]

i want to update ubuntu using sudo apt-get update but when i do i get this: sudo apt-get update E: Type 'sudo' is not known on line 2 in source list /etc/apt/sources.list.d/mono-xamarin.list E: The ...
0
votes
0answers
13 views

How do I make myself admin? [duplicate]

My dad made himself admin, and locked me out when he gave me this computer about 5 years ago (running Ubuntu 12.04, can't update). He no longer has his sudo password, and now I can't install new ...
0
votes
1answer
28 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
12 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
36 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.
4
votes
1answer
106 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
175 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
68 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
235 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 ...
3
votes
1answer
143 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 ...
0
votes
1answer
46 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
50 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
64 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
30 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
71 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
67 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
575 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
60 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
247 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
48 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
61 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
508 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
24 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
42 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
19 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
134 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
87 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
425 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
35 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
104 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
123 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
70 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" ]; ...