Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sudo]

Questions related to the sudo command that allows users to run programs with the privileges of a different user (normally the root user).

0
votes
3answers
91 views

How to run sudo commands on start up?

After I start up, I open Terminal and run 2 sudo commands. I am trying to automate this step. I issue these 2 commands (to activate a 3Dconnexion SpaceMouse 3D mouse): sudo xhost + sudo /etc/init.d/...
3
votes
1answer
23 views

user is not in the sudoers file. This incident will be reported [duplicate]

I have tried creating a user through command line with sudo adduser user but when I log in using that user's credential I get some error saying user is not in sudoers file. How can I add new user to ...
2
votes
2answers
145 views

Accidentally created a bad source list- How to delete it?

I'm new to Linux and was attempting to install the Brave Browser using the instructions on the website, listed below: curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-...
0
votes
1answer
94 views

How do I remove a broken apt repo?

The system update stopped working, and now i can't update it nor from terminal nor from the via app store. This what happens when i update from the appcenter: This what happens when i update from ...
0
votes
0answers
38 views

Failed Installation - FreeOffice on Loki

Tried a few methods to install .deb files on elementary OS: eddy (install), sudo apt install [location], dpkg, etc. They all failed.
0
votes
0answers
142 views

Trying to use `sudo -i pantheon-files` to restore files from the trash. Trash Folder Opens with: “Unable to show folder”

I'm trying to follow these directions and these directions to restore files I accidentally deleted. When I open my trash folder with the command suggested the folder has this message it instead of the ...
8
votes
1answer
1k views

How to disable terminal feedback when writing password for sudo?

when I write my password on terminal for sudo command, it gives me writing feedback even if I didn't modify the sudoers file. How can I fix this? This is my situation:
0
votes
1answer
2k views

How to move folder in /usr/share/themes

I want to put a folder on /usr/share/themes but it says permission denied. How can i paste a folder on this location?
0
votes
0answers
53 views

Making the GUI authentication persist through login session

I'm talking about the 'Authentication required' dialog that pops up when meddling with System settings, etc. I remember vaguely that there was a method in Ubuntu, to make it persist through a login ...
1
vote
2answers
991 views

Terminal sudo apt-get update

I seem to be having a problem when I use sudo apt-get update & sudo apt-get upgrade. (Freya 32bits) I get this:- photos enclosed.]2
1
vote
1answer
381 views

how to automatically run a script as root to mount a network share

I'm rather new to *nix and have played a little with Ubuntu, Mint and now Elementary OS. I'm doing a mistake but I don't understand where. I'm mounting a network share via sudo mount -t cifs //xxx....
4
votes
3answers
423 views

GTK+ Incorrect Window Size

I'm not sure whether to ask this question on this site or on StackOverflow, because although this is programming related, I suspect that the behavior is influenced by the OS. So I have decided to ...
0
votes
1answer
38 views

My sudoers setting is not working

I tried to use visudo to edit the sudoers setting, and I added a line for my account below the root, here is how I do it username ALL=(ALL) NOPASSWD:/usr/bin/apt-get update,/usr/bin/apt-get dist-...
3
votes
3answers
943 views

I can't use sudo commands!

When I go to terminal and try to enter a sudo commands it say's "Username not in the sudoers file." So how can I be able to use sudo commands.
8
votes
1answer
717 views

What about sudo makes it less secure than pkexec?

I just heard that it isn't recommended to use sudo -i on GUI programs - because it's less secure. Is there any truth here - is there an advantage to this: sudo -i pantheon-files /location over ...
8
votes
2answers
4k views

Why is running commands with sudo dangerous?

I know that sudo can do some bad things - there are warnings everywhere: But I'm interested as to what is likely to happen when using sudo - why is it so dangerous, and what can I do to reduce that ...