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

How to keep users out of system files?

I'm trying to build a system that will be as idiot proof as possible. This will include keeping regular users out of system files to prevent them from rendering the system inoperable. And hopefully ...
0
votes
0answers
34 views

problems with TERMINAL and executing commands [duplicate]

i am experiencing a major problem with terminal ... each and every time i attempt to execute a sudo command i keep recieving this TrueType core fonts for the Web EULA ...
1
vote
1answer
65 views

sudo apt-get update message

When I'm doing the sudo apt-get update I get this message: W: Failed to fetch http://ppa.launchpad.net/chris-lea/node.js/ubuntu/dists/vivid/main/binary-i386/Packages 404 Not Found E: Some index ...
0
votes
1answer
26 views

Recover lost video

I used youtube-dl to download a video. It saved in my Home directory. Then I did sudo mv file_name /Videos but it's not in my Videos directory and also not in Home. I am using sudo find / but it's ...
2
votes
1answer
211 views

How to run `chmod` command form script with sudo permissions?

I want the change the permissions of /dev/ttyACM0 from a script. I have tried this command: su -c "chmod -R 777 /dev/ttyACM*" -m "$user". When I execute the script it is asking for a password. I ...
23
votes
5answers
2k views

How important is the sudo password?

I know that the sudo password protects my computer from being locally hacked by someone having physical access to it (edit : actually, it doesn't). My password is strong enough for that purpose, but I ...
0
votes
0answers
45 views

How do i regain sudo privilege after adding my user name to a group in samba

I installed samba to share folders in my network. i created a group lab1group in samba and added my user name to that group. Everything worked fine. But I cannot use sudo the following day. I think I ...
13
votes
1answer
526 views

Is there any way to allow user to execute commands for 2 days only

How to give a sudo command permission for a specific time? is there any way to give rights to perform a specific command for 2 days only in sudoers file.?
-1
votes
2answers
111 views

What type of file is the README file in sudoers.d?

Just curious...figured would be a nice file to read with all my administrative privileges and not...LOL. Will not open since Ubuntu can't identify file type. Don't worry, im not gonna change it, i ...
0
votes
1answer
361 views

ubuntu drop to root shell prompt asks for password

I'm using ubuntu 14.04 and I messed visudo and now sudo code is not working. So, I tried to fix it but because I'm not root user, I can't access to visudo to fix what I messed. so I tried reboot and ...
2
votes
4answers
865 views

Is there any difference between sudo password and the one I used to login? [duplicate]

I was under the impression that both the sudo password and the password that I use to login to Ubuntu are the same. But it happened that after logging into the system, tying the password in terminal ...
0
votes
0answers
38 views

Admin locked out of sudo and cannot access GRUB

When using sudo to execute admin permissions I receive the following error: "sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set" I know the solution to this problem lies in ...
0
votes
1answer
34 views

Redirection operator priority in Bash [duplicate]

This command does not work: $ sudo echo 3 > /proc/sys/vm/drop_caches bash: /proc/sys/vm/drop_caches: Brak dostępu But when I gain root priviliges separately everything works. root@pc:~# echo ...
1
vote
1answer
441 views

sudo: Forcing Primary Group to 'Domain Users' for [username]

I have been setting up an ubuntu server and at some point this started to happen: Every time I sudo and am prompted for a password I get this: sudo echo "test" [sudo] password for [username]: ...
1
vote
1answer
62 views

sudo doesn't request a password after installing PiNet

After installing PiNet on my Ubuntu machine, I noticed that sudo is no longer prompting me for a password. This is still the case after rebooting or after running sudo -k: $ whoami thang $ sudo ...
-1
votes
2answers
191 views

How does usermod allow you to bypass sudo?

My team had a show-n-tell recently and I presented my findings on Docker. I explained how you can install Docker with: curl -sSL https://get.docker.com/ | sh I then explained that, with this ...
0
votes
0answers
175 views

sudo apt-get update not working

E: Some index files failed to download. They have been ignored, or old ones used instead. Ubuntu 14.04 ; trusty What sould i do? that's the error.txt file Ign http://archive.ubuntu.com trusty ...
0
votes
0answers
17 views

GUI missing and sudo not found for ubuntu virtualbox [duplicate]

I have windows 10 and am trying to have an ubuntu VM. I was able to install ubuntu and restarted it. After restarting, I see the command prompt only and no GUI. I tried sudo apt-get install xfce4, but ...
-1
votes
2answers
74 views

difference between sudo su - and su - [duplicate]

I have tried in Google but couldn't get exactly what I need. Could somebody explain the difference between sudo su - & su - Thank you.
1
vote
1answer
133 views

How to make work such a command: “$ sudo php -v”?

I have installed and working PHP53 from source. PATH is set in ~/.profile like this: export PATH=$PATH:/usr/local/php53/bin $ php -v # works good BUT: $ sudo php -v # sudo: php: command not found ...
0
votes
1answer
45 views

Convert Ubuntu to _not_ using sudo

I've searched this forum but not found an answer. I've a user that uses sudo I've set a root password so I can use su What I would like to do is remove the use of sudo, so that the system asks for ...
1
vote
1answer
43 views

How to run command as another user or keep file attributes?

I run command: find /var/www/html/wp-content/uploads/2015/file.jpg | xargs /usr/local/bin/jpegoptim --max=90 --all-progressive --strip-all --strip-com --strip-exif -- strip-iptc --strip-icc and ...
1
vote
1answer
238 views

How to prompt for sudo password using GUI?

I have written a Python script that executes several sudo-requiring actions. How can I make the script provide a GUI prompt for the sudo password when executed? I've tried placing gksudo -s python ...
0
votes
1answer
340 views

Cannot run any sudo command

I am getting an error when trying to run any command in sudo mode. Error: sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set I found a number of questions and accepted ...
3
votes
1answer
55 views

How to disable the password prompts?

I've have Ubuntu 15.04 on my laptop and just about everything I do requires me to enter my password. What do I have to do so I don't have to keep entering my password?
0
votes
1answer
38 views

User account no longer exists, unable to login to Ubuntu 12.10

I have Ubuntu 12.10 installed on external hard drive. Earlier, I was able to login to my account without any problem. Now, suddenly, I am unable to do so. The only account available is "Guest". With ...
0
votes
0answers
387 views

ssh prompts for password when passing sudo command, even with ssh key

I'm trying to expedite restarting some services across several ubuntu servers. I've: added the command to the sudoers file generated an ssh key and copied it to one of the test servers wrote a ...
4
votes
1answer
253 views

sudo mkdir creates directory as nobody nogroup on mounted directory, then chown not permitted

Could someone please help with the following? If I create and "ll" a directory on a mounted disc, I get the following xyz@c1:/home/Data6:sudo mkdir test xyz@c1:/home/Data6:ll drwxr-xr-x 2 nobody ...
0
votes
1answer
65 views

unsuccessful sudo apt-get update not working

still new to Linux and trying out Ubuntu. Was able to get it installed however when I tried updating in terminal with $sudo apt-get update I would get the following: wave@Wave:~$ sudo apt-get update ...
1
vote
0answers
20 views

Unable to fix “The system is running in low graphs mode” because sudo command does not work [duplicate]

I have a problem with Ubuntu 14.10, after powering off my computer, when I turned it back on again, the window "The system is running in low-graphics mode" suddenly came up. There is plenty of ...
1
vote
1answer
149 views

Cannot install NetBeans 8 in Ubuntu 14

I am trying to install NetBeans 8 in Ubuntu 14. When I execute the .sh file using ( I have already set the file as executable ) ./netbeans-8.0.2-linux.sh I get this ( Out of memory error ) I ...
2
votes
1answer
80 views

Which are the advantages of `sudo` defaulting to keep $HOME? [closed]

This question is a side-effect of Default owners/permissions of files in user home directory, and after a search which found this Q&A on Unix&Linux SE. When you use sudo command only a ...
5
votes
2answers
253 views

Exit from both root and user with one command

I know about "not using sudo su -" etc. But let's be honest, almost all of us do it. So, here is the issue. We can't have root logins enabled, so we have to ssh in as our user then su to root. Here ...
0
votes
1answer
171 views

Error messages in terminal when using sudo to run apps as root [duplicate]

When running gedit with sudo, editing and saving a file causes the following error to appear (twice). Note that the first time it appears is when the file is edited in any way - even just pressing the ...
1
vote
1answer
130 views

Does udev need sudo in run?

I've got a udev rule that is properly matching, but it is not executing the command in the RUN+="/usr/bin/synclient TouchpadOff=1" properly. If I change that to be some sort of test shell script then ...
0
votes
1answer
33 views

can I use the command “sudo apt-get install something” in a USB pen drive plugged to my PC?

I want to install a programm in my USB pen drive. I know there is enough storage in my PC to install what I need but I want to install that thing in my USB drive, just to keep it not in my primary ...
1
vote
2answers
119 views

Removing the need to sudo with a password

Disclaimer: I know this question has been asked a lot, i've read a bunch of ways and tried a bunch of ways, but i'm still running into issues, please feel free to refer me to a dupe question if you ...
2
votes
1answer
570 views

User in sudo group cannot perform sudo operations

Using Ubuntu 14.04 on AWS and Ansible 1.9 and getting the following permission error: $ whoami >> ubuntu $ mkdir -p $HOME/.ansible/tmp/testfolder >> mkdir: cannot create directory ...
-1
votes
1answer
96 views

By mistake change sudoers owner

So, i by mistake change ownership for a lot of files. I asked my provider to reinstall OS but their answer was that i will have to pay 50 EUR an hour for technician. i need to get back sudo ...
21
votes
6answers
1k views

How to make super-user permissions last longer than using sudo? [duplicate]

Is there a way through which I can make the sudo command give me permissions for a longer period than its default time? It can be a pain having to keep entering the sudo password, when requiring the ...
0
votes
0answers
53 views

ltunify broken pipe error?

My mouse recently broke and I tried to resync an old one that somehow got disconnected from the mouse and I get the error write: Broken pipe Failed to retrieve notification state when trying to ...
0
votes
0answers
50 views

cannot open Grub mode on ubuntu 14.04

I forgot my sudo password. As far i as read on forum i should open my machine holding shift to recover this password. Unfortunately it doesn't work. I tried left shift and right shift. Any idea how ...
0
votes
1answer
207 views

sudo and gsettings

I have read some questions and answers regarding the behavior and some potential solutions to the following issue: When calling gsettings set to update the launcher, even though the command succeeds, ...
0
votes
1answer
157 views

How to make one shortcut to compile and execute cpp file

I'm using Ubunru 15.04 GCC : 4.9.2 I usually use this command to compile my cpp files : g++ /path/file.cpp -o /path/output and it's cool ! so I made this into a shortcut with .desktop file ...
-1
votes
2answers
1k views

sudo: /var/lib/sudo writable by non-owner (040777), should be mode 0700

I get error message always when i work with sudo command. It shows always sudo: /var/lib/sudo writable by non-owner (040777), should be mode 0700. A while ago i changed the permission of /var ...
0
votes
0answers
24 views

How do I use the Sudo command with ubuntu live?

I am trying out Ubuntu studio w a USB live disk and am having trouble running commands requiring sudo administrative access since the live disk doesn't seem to allow for me to log into my own account ...
0
votes
0answers
56 views

Ask root password instead of user (sudo) password

The privilege to use a Ubuntu machine was given to me. Previously there was another user in the system. I logged in with the "anotheruser" account and created the password for the root account (sudo ...
0
votes
0answers
85 views

Bitmask only starts with sudo

When launching bitmask through Unity it won't launch, it will only work if launched from terminal with sudo. How should I proceed?
0
votes
1answer
372 views

getting error for knife bootstrap on ubuntu chef node

Getting knife bootstrap error on ubuntu chef node $ knife bootstrap 52.8.178.221 -x ubuntu -i ~/Keys/chef1.pem mkdir: cannot create directory ‘/etc/chef’: Permission denied 52.8.178.221 bash: ...
-1
votes
1answer
119 views

Do we need to reboot after adding an user to sudoers?

Do we need to reboot after adding an user to /etc/sudoers