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).

Filter by
Sorted by
Tagged with
0
votes
1answer
33 views

How to delete a file named -something with rm [duplicate]

When I have a file named -19-5-20674., how can I delete that file? When I use sudo rm: $ sudo rm -19-5-20674. rm: invalid option -- '1' Try 'rm --help' for more information. What can I do?
0
votes
0answers
28 views

What's the difference between sudo -s , sudo su and su root

They all do the same, logging into root but it doesn't make sense to me because while su root requires root password, sudo -s and sudo su requires only user password. I know the difference between ...
1
vote
0answers
27 views

touch: cannot touch '/var/lib/dpkg/info/format-new': No such file or directory

When I try to run sudo dpkg --configure --pending I am getting error dpkg: error: unable to create new file '/var/lib/dpkg/info/format-new': No such file or directory Then I try these commands sudo ...
0
votes
0answers
16 views

I can not install oracle database in linux ubuntu 20.4lts

i can not install oracle database in my Linux Ubuntu.. i am a new Linux user so error i also do not understand, i also do not want to use Virtual machine . please help me it is so urgent.
0
votes
2answers
60 views

How can I run a script with sudo? I get “.: command not found”

I want to run a script, but the script has some cds in it so I have to run it like this . /scriptfile This works but I also have some sudos in the script as well. While everything is working but I ...
2
votes
2answers
63 views

Is there something as events in Ubuntu?

I would like to know if Ubuntu has something like events. I need to run a Jenkins job but Jenkins has no sudo privileges and I dont want to give it to him. But job needs to run some actions which ...
0
votes
0answers
14 views

Ubuntu 18.04 unable to login as user, but can login in tty3

I accidentally messed up the permissions by typing sudo chown -R root:root /usr. It was supposed to usr instead of /usr. anyway, I lost sudo function and showed the error message sudo: /usr/bin/sudo ...
0
votes
0answers
22 views

How to add permission to user for one specific command

I have a Jenkins job which runs as Jenkins user. The script it runs need to delete one folder which owns www-data user. Jenkins user has not sudo privileges and I dont want to give it to him. The ...
0
votes
1answer
36 views

sudo mkdir -p parent/child | Permission Denied

This seems like such a Day 0 problem. I need to create a 2-level folder structure. I tried: sudo mkdir parent/child >>> mkdir: cannot create directory ‘parent/child’: No such file or ...
2
votes
1answer
55 views

allowing all users to execute kill command on kubuntu 20.04LTS

on kubuntu 20lts sudo sh -c ' echo "ALL  ALL=(NOPASSWD: /usr/bin/kill" >> /etc/sudoers' I have some machines with Kubuntu 20.04 LTS, everyday when the machines start, and the users ...
1
vote
1answer
54 views

Cheated by a friend using remote login

Me and my flatmate connect over the same network. Recently, I brought a new PC. Since I didn't want to spend money on Windows, I installed Ubuntu 20.04 on it. Since my friend knew way more about ...
0
votes
0answers
48 views

Dell xps 17 9700 internal microphone not working

BIOS version: 1.7.2 OS version: 20.04 LTS Kernel version: 5.10.0-1029-oem. I had the sound issue with XPS 17 9700. I updated the kernel with linux-oem-20.04b package. sudo apt-get install linux-oem-20....
0
votes
1answer
58 views

Allow a user to run a script as sudo with sudo commands in the script

So I created a script that live in /usr/local/bin called Linux-Permissions. In the script, there are some sudo cp commands. I need a user to be able to run the command as sudo, which I was able to do ...
1
vote
0answers
32 views

How do I ask password by GUI prompt while using commands using sudo in terminal?

I am using Ubuntu 20.04 focal. I have been wanting the GUI password prompt for executing command with sudo in terminal.Example consider following command to be runned by terminal : sudo nautilus So ...
-1
votes
0answers
122 views

/etc/sudoers: command not found error on Ubuntu 20.04

I recently opened my /etc/sudoers file and without any changes I closed it but now get like this sudo: /etc/sudoers: command not found My sudo command works normally. Can anyone help me. Here is ...
0
votes
0answers
15 views

WebKit theme copy and paste issues

Im trying to add a theme to lightdm-webkit and when i copy and paste to the root folder of lightdm, it says permission denied. I then tried to copy through sudo cp -R, but now there is an x next to ...
1
vote
0answers
25 views

Sudo doesn't work, pkexec visudo neither

When I try to run any command with sudo I get this: sudo: /etc/sudoers is owned by uid 1000, should be 0 sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin I ...
0
votes
2answers
52 views

How do I edit a write-protected file?

I downloaded the Garfield toolkit in the /opt/applications folder. Some examples are present inside the folders which I downloaded with the toolkit, and I want to modify some code inside of them (...
0
votes
1answer
34 views

what is the command to open encryped file of image, mp3,mp4 in terminal?

i tried using super user command in front of many commands like feh ,eog , VLC ,display etc but nothing is shown . please help .!
1
vote
1answer
38 views

Can you run only part of a script as sudo on startup?

I got a Lenovo Yoga 7i, there is a known issue with its audio card on the current kernels where it wont output sound through the speakers. There is, however, a hackish solution described here where, ...
0
votes
0answers
22 views

sudo apt-get update not working ,,showing error [duplicate]

it shows error E: Type 'sudo' is not known on line 2 in source list /etc/apt/sources.list.d/google-chrome.list E: The list of sources could not be read. tried to install google chrome ans it lead me ...
0
votes
0answers
29 views

My linux cant access the desktop and when i open a window the close miimise and maxmise options never show what can be the reason and solution to this

I installed as host operator in my elite book. Then i updated and upgraded it through sudo apt update && sudo apt upgrade -y. After some days I installed softmaker by downloading and typing ...
0
votes
1answer
54 views

simple paranoid question about sudo and passwd [duplicate]

using Linux at my home place, i wonder what if the end-user, say having just installed/deployed say Ubuntu, typed just (being messy while searching for the command, and thinking it's shorter so it's ...
2
votes
1answer
66 views

Where to translate sudo advice on Terminal's first run

I have been searching but I cannot find where this message is kept: Here is the message as text: To run a command as administrator (user "root"), use "sudo <command>". See &...
0
votes
1answer
55 views

Is it possible to remove login password and sudo password on 20.04 LTS permanently?

The situation arise when I want to exchange my used laptop which requires password authentication during login and while issuing sudo commands. The other party wants no password at all. Is that even ...
0
votes
2answers
59 views

I happend to chmod 755 my whole /usr/ dir [duplicate]

I happend to change my whole /usr/ dir files to -rwxr-xr-x with command "sudo chmod 775 -R /usr/" now I firguire out that some special binary files like "su" "chkpaswd"...
0
votes
0answers
37 views

apt-get works with sudo but not with root

I'm setting up a Vagrant box with Ubuntu 20.04 behind a proxy and using apt-cacher as repository. In the Vagrantfile I run (as root) these commands in this order: apt-get -qq install -y docker docker-...
0
votes
0answers
28 views

Root used directly doesn't work via ssh

I have a Linux system in which root is disabled by default. I managed to enable it (passwd root and enabled login into root via ssh). However, once I login into root via SSH there is nothing I can do. ...
-1
votes
2answers
58 views

Run local script on remote server with sudo privileges

On Ubuntu 16.04, using VS Code, I want to run a local script on a remote server with sudo privileges. Here is local.sh: #!/usr/bin/env bash echo $(ifconfig | grep -Eo "inet addr:([0-9]\.?)*")...
0
votes
0answers
15 views

Does Ubuntu 18.04 create entries in certain groups for the installer by default [duplicate]

WHat are the groups in which when installing Ubuntu 18.04 or 16.04, the installer is made a member by default. Is adm one such group? WHat about admin? What about sudo? If 18.04 has separate default ...
0
votes
0answers
116 views

There was an error while getting the sharing information

I’m Maya. I’m taking backup by Ubuntu 2.02 And it’s done. But when I open this folder’s properties then notification appears. Notification is given below: There was an error while getting the sharing ...
0
votes
0answers
56 views

error while loading plugin “sudoers_policy”

A few days ago I made some permissions changes to run NPM without using sudo. These were the commands: I checked where NPM writes using: npm config get prefix. Output was /usr. I made changes to ...
0
votes
0answers
22 views

Ubuntu 20.04 LTS / fix problem sudo apt update / is configuring multiple times [duplicate]

when I enter the line: sudo apt update, the Terminal shows me: (...) is configured multiple times... It is the first time I am using this operating system. Can anyone help me with this? Thanks you. ...
0
votes
1answer
40 views

How to give passwordless sudo through automated script

Anyone who has used Multipass or AWS is familiar with the ubuntu user who has passwordless sudo access. I am launching multiple virtual machines via multipass each with many users and I want ...
0
votes
1answer
198 views

Ubuntu 21.04 asking for password too often

On boot it looks like Ubuntu logs me in on its own without asking for password so I can see the desktop and then it asks for password 4 times to: create color profile refresh system repositories ...
1
vote
1answer
139 views

How to switch user (su) to the odoo account? (This account is currently not available error.)

How do I su to the odoo account? nicholas@mordor:~$ nicholas@mordor:~$ sudo su odoo - This account is currently not available. nicholas@mordor:~$ nicholas@mordor:~$ awk -F: '{ print $1 }' /etc/...
0
votes
0answers
33 views

sudo Nautilus error via xrdp Xorg - Ubuntu 20.04

I am facing a really annoying problem with Nautilus; the problem persist only via xrdp, since i tried the command "sudo nautilus" on the phisical machine and it works as expected. But ...
0
votes
1answer
43 views

sudo password for installation

I'm a quite new user of UBUNTU and when I try to install my Scanner Canon Lide300 under UBUNTU 20.04.2 LTS, 64-bit GNOME 3.36.8. in the Terminal I'm always asked by the system to add the sudo password....
2
votes
2answers
1k views

Remove sudo access to specific file

I have a file on a ubuntu server which should only be accessible from one user. There are other users on the server with sudo permissions. I am trying to restrict the access of this file despite ...
0
votes
1answer
23 views

sudo -A ignoring my SUDO_ASKPASS variable

sudo -A ignoring SUDO_ASKPASS variable I have been using sudo -A and SUDO_ASKPASS for years without trouble. I have a newly installed Xubuntu Focal Fossa workstation and I cannot get sudo -A to work I ...
1
vote
0answers
31 views

Ubuntu 21.04 the repository «http://ppa.launchpad.net/snwh/ppa/ubuntu hirsute Release» does not have a realease file [duplicate]

I just installed Ubuntu Budgie 21.04 and i tried to do a sudo apt-get update but it gave me the next error: sudo apt-get update Obj:1 http://ppa.launchpad.net/numix/ppa/ubuntu hirsute InRelease Ign:2 ...
0
votes
1answer
25 views

Prevent local admin from installing any blacklisted package on Ubuntu (Desktop)

At our company there is a need for Ubuntu clients. However there are some issues regarding security. In our case, most Ubuntu users are local admin (listed in /etc/sudoers) but we would like to ...
0
votes
0answers
22 views

when I type “sudo apt upate” it shows an eror it is below [duplicate]

E: Type '“deb' is not known on line 53 in source list /etc/apt/sources.list N: Ignoring file 'some-ppa.list.save.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: ...
-2
votes
1answer
86 views

I believe I was hacked over night [closed]

I believe I was hacked last night. I am a little bit new to the Linux world so I don't know if this is normal or not, but there were a lot of random things in my command line history. Here a Google ...
0
votes
3answers
95 views

Automate Updates and Upgrade?

Is there a way to automate updates and upgrades with apt or some other package manager: Instead of writing these commands below: sudo apt update sudo apt upgrade sudo apt-dist upgrade. I mean like the ...
0
votes
0answers
33 views

My method to run a bash script automatically when any Desktop Manager is landed,does not work as expected

I would like to run a shell script automatically when my ubuntu 18.04 installation has landed and I see the desktop manager fully loaded. The script should be executed regarless of the desktop manager ...
3
votes
0answers
98 views

Oracle Cloud - Why can I use sudo without a password?

I have a new user account created on an oracle cloud free tier VM, called testacc. This account is a member of the sudo group, and the testacc group. Password login is disabled, and I log in with a ...
1
vote
1answer
79 views

Rosa Image Writer on Kubuntu 20.04 is missing kdesu

I am using Rosa Image Writer to write ISO images to USB Sticks. The website says that it needs sudoer rights and that kdesu is supported. However on newer Kubuntu versions, kdesu is not available ...
0
votes
1answer
110 views

Fix ownership of directory on Ubuntu 20 server

My client's WordPress website is hosted at Digital Ocean. I have set the permissions they recommended on this page, but have run into permission issues accessing the example.com directory on the ...
0
votes
0answers
12 views

Add text from file into root owned hosts file [duplicate]

I am trying too add some text into my host file. I tried this. echo xx | sudo -S cat AddTo_hosts.txt >> /etc/hosts I still get permission denied. How can I get it to work?

1
2 3 4 5
52