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

How to install the “sudo” command? [closed]

I am trying to install a program on my Linux computer using this command sudo sh/arb_installubuntu4arb.sh and the error message is that it does not know the command sudo. How can I fix it?
0
votes
1answer
109 views

sudo service status message missing in ubuntu 15.04

i made an update to ubuntu 15 i dont get status messages of the service system anymore. On the old ubuntu 14.04 when i did: $sudo service apache2 restart * Restarting web server apache2 ...
10
votes
5answers
1k views

Security risk in everyday use of an admin account (not root)?

The only thing that distinguishes my admin account from normal accounts is that my admin account is a member of the sudo group and can run sudo. Is it any less secure to use my admin account for ...
4
votes
0answers
125 views

Not allowed to delete a encfs-encrypted empty folder

I have an encfs-encrypted folder and just cut the content of a subfolder of it and pasted it into another folder outside the encfs-encrypted one. While doing that, I got an error message, saying that ...
0
votes
2answers
737 views

sudo command not found

I'm new to this. I'm trying to install apache2 on an Ubuntu 15.04 server. Running as root. But when giving the command: $ sudo apt-get install apache2 -bash: sudo: command not found Can anyone ...
1
vote
0answers
77 views

sudoers problem

I'm using Ubuntu Mate for my raspy. I'm using my raspy to run a program 24/7, which requires to be started with sudo. Because I don't want to do this manually, I added a script to "startup ...
0
votes
1answer
48 views

Cannot login to Ubuntu, Pkexec and sudo isn't working

I am completely new to Linux and I just realize that what I have done is extremely screwed up. I was run around finding a way to get some installing package on my machine to work out. Unfortunately, ...
4
votes
1answer
76 views

Removing PPA causing GPG error

When I run sudo apt-get update I get the following error: W: GPG error: http://download.opensuse.org ./ Release: The following signatures were invalid: KEYEXPIRED 1436387333 How can I locate ...
0
votes
1answer
121 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
57 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
1answer
107 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
33 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
154 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
2answers
2k 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
49 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
47 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
1k 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
62 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
142 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
56 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
48 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
336 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
27 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
19 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
302 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 ...
3
votes
2answers
714 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
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
35 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
68 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
224 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
527 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
120 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
413 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
901 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
42 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
508 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
65 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
215 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
177 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
76 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
149 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
48 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
251 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 ...