All Questions
121
questions
1
vote
1
answer
75
views
Is it safe to do "snap install" with sudo
I am a root user on a workstation; I give access to others on this system.
They are requesting me to install:
sudo snap install google-cloud-cli
An experienced friend of mine had earlier suggested to ...
0
votes
0
answers
17
views
Why would sudo complain about DNS name resolution? [duplicate]
I'm running on Ubuntu 22 Linux. When I try to manually fix my /etc/resolv.conf file using
sudo vi /etc/resolv.conf
# or
sudo cp $HOME/tmp/working-resolv.conf /etc/resolv.conf
The command appears to ...
0
votes
0
answers
64
views
Why 892 bytes altered not 446 bytes? 446x2=892 bytes [duplicate]
Experiments were done, before re-purposing a disk:
re-purposing = delete all data
re-purposing = delete all partitions
re-purposing = fill disk with all zeros
re-purposing = confirm all zeros, confirm ...
0
votes
1
answer
670
views
Getting error while downloading Java
I am trying to install Java in my AWS EC2 instance by using this below command:
sudo yum install java-1.8.0-openjdk-devel
But I'm facing the below error:
No match for argument: java-1.8.0-openjdk....
0
votes
1
answer
912
views
how to stop apache2 via kill -9
I know the normal method to start or stop apache2 on linux is:
sudo /etc/init.d/apache2 start|stop
Or…
sudo service apache2 start|stop
Or…
sudo systemctl start|stop apache2
But, in an emergency, I ...
1
vote
1
answer
679
views
Running updatedb as a nomal user (using the plocate package)
I want a normal user to be able to update the database used by the locate command in Linux. With the previous version of locate (provided by the package mlocate), I achieved this by adding the ...
0
votes
0
answers
150
views
Default path for RScript terminal command changes with sudo
I am trying to execute Rscripts from the terminal, but I can only get them to work by adding the sudocommand. Running --verbose, I have been able to narrow down the problem to a difference in the ...
1
vote
1
answer
878
views
How to correct sudo fatal error on Ubuntu after wrong permissions given?
I made a mistake giving wrong permissions on folders (chown I think on the wrong folder) when using wsl and ubuntu.
Now I have the following errors when I launch Ubuntu. I really don't know what to do:...
2
votes
0
answers
3k
views
No new privileges flag is set error
I created a new user called jump using sudo adduser jump and then gave it root permissions using: sudo usermod -aG sudo jump. I then switched to my user using: su - jump, and ran: sudo curl -fsSL ...
4
votes
1
answer
14k
views
ping: socket: Operation not permitted Ubuntu docker image
Hi i am new to docker and linux. I am trying to ping a particular ip address from a python file in a container built on ubuntu 18.04 base.
I get the following error when the kubernetes pod container ...
1
vote
1
answer
707
views
Why is root in sudoers file?
I couldn't help but notice the line in the sudoers file:
root ALL=(ALL:ALL) ALL
From what I understand root already has superuser privileges and doesn't really need to use sudo at all. Am I missing ...
2
votes
1
answer
287
views
Modify sudoers to bypass password requirements but it's not taking effect
I need to run a script with sudo without entering my password. I'm editing /etc/sudoers (using sudo visudo) and on the last line, I'm adding:
MY-USER-NAME ALL=(ALL) NOPASSWD:ALL
I just want to make ...
1
vote
1
answer
979
views
deleting history in server using history -cw
I have deleted my history in server as a user history -cw
Will this delete history for all users including superuser and will he see that I used the history -cw ?
0
votes
0
answers
1k
views
Sudo PM2 command not found but works without [duplicate]
I have a PM2 process for my NodeJS server and it crash after few minutes. I read somewhere I need to run PM2 as root to not crash.
So I do :
debian@vps:~$ pm2 start server
[PM2] Applying action ...
0
votes
0
answers
36
views
How do I get Ubuntu to display permission errors when I forget sudo?
I've recently started working on a server running Ubuntu 14. Whenever I forget to use sudo for a command that requires elevated privileges, no permission errors are ever displayed. This is ...