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]

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
0answers
4 views

sudo/pkexec vs sandbox: Differences & Pros/Cons

I am looking at running Jitsi on Debian. For security reasons, I want to isolate Jitsi from the rest of the system. I could use a VM, but I want a lighter solution. So I looked at sudo/pkexec vs. ...
0
votes
0answers
18 views

Plink sudo rootsh send password

I want to automate some tasks on a server and i'm having some issue with sending the password for sudo. Scenario: linux server can ssh with local user ( I can send this user's password via plink) ...
1
vote
1answer
10 views

windows network drive linux mount requires sudo after mounted

I am able to mount a drive to the linux box using sudo. sudo mount \ -t cifs \ -o 'vers=3.0,username=myuser,domain=mydomain' \ '//windows-ip/share-folder' ~/testmount/ This works great, ...
0
votes
2answers
14 views

Reenable Google Chrome updates on Mac

i was wondering if any of you guys is able to help me reenable Google Chrome updates ? Please note that i have no programming knowledge of any kind and i am a total noob. A friend of mine ran the ...
0
votes
0answers
15 views

sudoers: can´t run 2 command lists where the second has a glob * and denies the first

so, what I want is: to be able to run /sbin/print/managequeue.sh -p app1 --view as another user without asking password. to be able to run /sbin/print/managequeue.sh -p app1 --cancel (or --delete, ...
0
votes
1answer
37 views

Using git command without sudo on CentOS [closed]

I would like to use git without taping sudo everytime i tape a command on CentOS and i have no idea how to do it. I checked on google and i found this some command with chown but none of them worked ...
1
vote
1answer
48 views

How to send sudo password in a shell script

My shell script (don't have EXPECT, and is not possible) runs a shell script impersonating another user. Let's say the following script is named toto1.sh and is run with a user called MYUSERNAME1. #!/...
0
votes
1answer
76 views

sudo su with password provided in jenkins?

I am stuck with one requirement in which I am switching to some "xxx" user and it asks for password every time. I am trying to automate this process with password hardcoded in Jenkins job. ex: sudo su ...
0
votes
0answers
17 views

Sudoers Argument Parsing using Python

I am working on a project and I need to be able to limit the command line arguments for commands when they are called with sudo. The parsing we are doing is big enough that using glob would be painful,...
0
votes
0answers
20 views

Locked out while setting up nginx

It's my first time trying to setup a web server. I was trying to set up a Digital Ocean Droplet running CentOS. During nginx setup, I 'accidentally' changed the permission of '/' to the nginx user, ...
0
votes
1answer
30 views

Debain(buster) su not working properly, command not found

For example: I installed ifconfig First i become root with "su" Now I write "ifconfig" and get: "command not found". I write "sudo ifconfig" and now it works. This seems to happen with a lot of ...
0
votes
1answer
33 views

How do I create a window as sudo from .screenrc

I have created a .screenrc file to automatically setup my various windows when I run screen. In one window I'd like to: switch to the root user, then change to a certain directory. I currently do this ...
0
votes
3answers
119 views

How to provide password directly to the sudo su -<someuser> in shell scripting

I got a requirement to automate in shell script for sudo su -<someuser> which asks for password. How to provide password directly to the sudo su - in shell scripting for IBM AIX servers. I have ...
2
votes
2answers
24 views

Setting LD_LIBRARY_PATH to point to a backup of sudo does not work

I've accidentally removed the contents of the /usr folder, but I have a backup of it in /mnt/usr. To fix it I need sudo, but it was in /usr/bin. So I tried to use /mnt/usr/bin/sudo, but it throws a ...
0
votes
2answers
65 views

Execute a script as root when non root user logs in

I've seen this question asked before here and here but they're pretty old and I haven't been able to get any solution to work. Basically I need to run a script or command automatically as root each ...

15 30 50 per page