Stack Exchange Network

Stack Exchange network consists of 175 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]

The sudo command is a program for some Unix and Unix-Like operating systems, that allows a user to execute programs with the security privileges of another user. Typically those of a superuser or the root user.

0
votes
1answer
11 views

Executing command via sudo fails when multiple words

Running a command with two parts fails with sudo but not with su. root@hello:/var/www/hello# sudo -u root "echo hello" sudo: echo hello: command not found root@hello:/var/www/hello# sudo -u root "...
0
votes
1answer
15 views

grant access to a command only for certain arguments (chown for a path)

I have a script that require to change the owner recursively in a folder there is my specific sudoers file: /etc/sudoers.d/jenkins jenkins ALL=(ALL) NOPASSWD: /bin/chmod, /bin/chown and this is the ...
0
votes
0answers
25 views

arch-linux failed retrieving file error [closed]

i just recently installed arch linux and i installed everything through wifi-menu for connecting to the internet and after installing and rebooting when i run sudo pacman -S xorg it gives me this ...
1
vote
1answer
43 views

Run command from sudo su

On a machine I (tlous) have been given access to open a shell as another user (serviceAccount) Executing: sudo su - serviceAccount has the desired effect of opening a shell as this serviceAccount ...
0
votes
1answer
22 views

How to get debian apt to find packages correctly to install sudo

I've just installed debian 9 using the full disc image (debian-9.8.0-amd64-xfce-CD-1) to install on VirtualBox in a 64bit environment from a Windows 10 host. During the installation I unchecked the ...
0
votes
1answer
16 views

systemd service not executing the script?

My systemd service is as follows. /etc/systemd/system/caportal.service [Unit] Description=@CPACK_PACKAGE_DESCRIPTION_SUMMARY@ Before=network-pre.target Wants=network-pre.target DefaultDependencies=...
0
votes
0answers
11 views

Password not recognized while running sudo by script (C++)

I'm using this command line to call sudo: echo "PASSWORD\n" | sudo -S command line So when I run it by script, it says that the password is incorrect, but if I run the very same line from terminal ...
0
votes
0answers
57 views

sudo npm install command throw errors

sudo npm install always throws bunch or errors. I have done it with or without sudo, I tried it globally and locally, I did a clean uninstall and install both for the current version(11.13.0) and LTS(...
0
votes
0answers
23 views

Mysterious application running on port 8080 not found with lsof or sudo lsof

I'm using a Mac to attempt the following and ran into a blocker: Trying to run a docker container and have the port flag mapping port 80 in the container to port 8080 pn my machine. (using -p 8080:80 ...
0
votes
0answers
21 views

Run alien with setuid instead of sudo?

I tried to set up alien so it runs with root privileges, without requiring sudo. It looks like this: -rwsr-sr-x. 1 root root 16544 Feb 7 2018 /usr/bin/alien Trying the same thing with whoami ...
0
votes
0answers
35 views

How can I match on a specific bit using tc filter?

The goal: I'm trying to shape traffic that enters and exits a device using a Raspberry Pi bridge running Rapsbian Stretch. Primarily, I want to control the DHCP process (drop ACK packets to see how ...
0
votes
1answer
100 views

How to fix sudo: account validation failure, is your account locked?

First of all, I want to mention that I am running Manjaro Linux. Today when I wanted to install a new program I got the following error when trying to use sudo pacman: sudo: account validation ...
0
votes
0answers
16 views

Unable to run sudo comment even logged in as sudoers owner (/etc/sudoers is owned by uid 1321, should be 0) [duplicate]

Accidentally, I modified the owner for /etc ( sudo chown -R john /etc/ when logged in as admin ). I know this is wrong and this affected /etc/sudoers too. After this, i am not able to run the sudo ...
0
votes
0answers
40 views

kdesu on KDE5 not functioning properly inside a bash script

I made a front-end for rtcwake cause I need it on multiple computers but I found a weird behavior of kdesu. Here is my working script for gnome based systems: #!/bin/bash userinput=`zenity --title "...
1
vote
3answers
52 views

Sudo alias doesn't work on my custom command

in my .bash_profile I have extra command : trash () { command mv "$@" ~/.Trash ; } It's basically my safe rm. Unfortunately sudo doesn't work on it. I've looked up a fix for that and added alias ...

15 30 50 per page
 Microsoft office activator |  windows activation crack |  windows product key |  windows 10 product key |  windows 7 ultimate product key |  windows 7 keygen |  activate office 2010 |  office Project keys |  project professional product key |  office 365 office 2016 office 2013 key |  office 2016 office 2013 key |  windows 7 professional product key |  windows 8 professional product key |  windows 10 professional product key |  office 2016 professional product key |