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

`sudo apt-get update` returns connection errors with some repositories, and can't update

as i remember, after i uninstall some packages with ros with sudo apt-get autoremove <name package> i can't get sudo apt-get update anymore, this is the result after i text it on my terminal : ...
1
vote
0answers
46 views

user in sudo group can't run sudo

I've seen other similar questions but they don't solve my problem unfortunately. I've been added to the sudo group on my Ubuntu 14.04 with usermod -aG sudo testuser but I still can't run sudo: ...
2
votes
0answers
73 views

npm --version is different if use sudo npm --version

I have just upgraded nodejs in my machine. I uninstalled the node version (the one in ubuntu repositories) that I had. Then I installed nvm and installed nodejs 4.2.2. Everything goes without ...
0
votes
1answer
26 views

I can access my own home folder only with sudo

I am logging in to a machine via ssh. Is it normal that i need sudo for something like touch ~/test
1
vote
2answers
77 views

How to run a python script as sudo by double-clicking it?

Simply put, how can I do this, providing a graphical prompt? I tried creating a separate bash script that when opened, ran the Python script with super-user permissions - I used gksu -u root ...
0
votes
1answer
588 views

allowing user to run systemctl/systemd services without password

I want the default user, ubuntu to be able to run a specific service without being prompted for a password. Specifically systemctl restart unicorn_my_app.service. Have followed the instructions here ...
1
vote
1answer
48 views

Package versions in Ubuntu [duplicate]

I use Ubuntu through a virtual machine (VM Workstation Player) and sometimes download packages through the terminal. Some of the packages I download are not the latest version. For example, I ...
0
votes
0answers
10 views

Running sudo commands through scala [duplicate]

I have created one .sh file and inside of it I am using command to install .deb packages.When I run the .sh file through terminal its working fine .deb package is installed, now what my requirement is ...
0
votes
0answers
40 views

Do I have to use “sudo” befor “pyrit list_cores” or “./devicequery” to get cuda to work?

When I use pyrit list_cores or ./DeviceQuery or ./cudahashcat64.bin without sudo it doesn't recognize my cuda core But when I do use sudo one time in one of those commands, it recognizes cuda core ...
0
votes
1answer
837 views

Virtualbox * No suitable module for running kernel found [fail]

Previously I had ubuntu 15.04. I installed ubuntu 14.04 LTS as I was told the 14.04 was stable. Now when I try to install Virtual Box this error is shown: vatsa@code-8-21:~$ sudo apt-get install ...
0
votes
2answers
31 views

Giving software sudo permission

I have searched and can't find this. All the folders on my system require sudo permission to edit/save etc... I was wondering if there is a way to give sudo permission to software (geany to be ...
0
votes
0answers
141 views

Unable to install Wine 1.7 [duplicate]

I'm trying to set up wine via command line sudo apt-get install wine1.7. But somehow,I stumbled upon error: E: Unable to correct problems, you have held broken packages. It could be a general ...
0
votes
2answers
41 views

Start application as root (No command line)

How can I start and application with root privileges, just once. For example I need to start SublimeText with sudo privileges, then I write in a console: $ sudo subl But, I wonder if there's any ...
4
votes
1answer
45 views

Increase duration of Sudo [duplicate]

I want to extend the duration of sudo in Ubuntu 14.04. It is irritating to provide password repeatedly. How can I do it?
2
votes
0answers
148 views

-su: sudo : No such file or directory [closed]

-su: export: `/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/hadoop/bin': not a valid identifier hadoopmaster@dhruv-Inspiron-N5010:~$ sudo gedit ~/.bashrc -su: sudo: No such file ...
0
votes
0answers
24 views

sudoer restore into default after a few minutes

I just built a brand new virtual machine with Ubuntu 14.04, then create a new user new, run visudo to add new into sudoer list using root account. The new account gets the sudo permission, but loss ...
0
votes
1answer
16 views

hadoopmaster is not in the sudoers file [duplicate]

When I wanted to execute hadoopmaster@dhruvhadoop3-HP-Compaq-dc5800-Small-Form-Factor:~$ sudo gedit ~/.bashrc It gave me the following error sudo: unable to resolve host ...
2
votes
0answers
154 views

Why is neither /root/.bashrc nor /root/.profile executed after sudo -i?

I have export PATH="$PATH:/opt/local/bin" in /root/.bashrc and /root/.profile (nothing else in /root/.profile) and /bin/bash is the login shell for root in /etc/passwd. Yet invoking sudo -i (which ...
2
votes
2answers
277 views

sudo can't give ulimit command?

I am trying to write a solution for another user, when I noticed that sudo ulimit -c returns command not found. So then I tried this: $ sudo ulimit -c sudo: ulimit: command not found $ ulimit -c 0 ...
1
vote
1answer
29 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
2answers
43 views

Does sudo password protects me from networks hazards? [closed]

Do I need a good sudo password if I don't care about local unauthorized access (by another person) ?
0
votes
0answers
31 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
57 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
25 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
146 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
38 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
521 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
98 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
213 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
782 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
28 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
29 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
273 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
49 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
135 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
143 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
53 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
89 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
41 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
27 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
171 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
188 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 ...
0
votes
1answer
35 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
205 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
195 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
55 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
100 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 ...