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

Stuck on Sudo Immersive Lab

I'm working through the Immersive Labs Sudo lab, and I need to read the /etc/sudoers file to find what a users permissions are. The lab sets you up to be a sudo user and lets you use cat, although we ...
0
votes
0answers
15 views

Giving a user sudo power except over files owned by root

On one of my servers, I accidentally chown'd the root directory as admin/root and had to completely reset the server. I was attempting to fix an issue where I wasn't allowed to remotely upload files ...
1
vote
1answer
30 views

sudo and environment variables acting differently in Debian vs. Ubuntu

So, this is something I can't wrap my head around. I know how to configure sudo to keep all envs intact, I'm now baffled what causes the different behaviour on Ubuntu vs. Debian. So in Debian I have ...
0
votes
2answers
38 views

sudo command is not working on Ubuntu 16.4

I have a linux Ubuntu laptop (16.4) that was not supporting any command starting from sudo and I have googled but not getting any solution because we don't know root user and password, so I am totally ...
0
votes
1answer
40 views

Encrypted Sudo Password for Ansible-Playbook

I'm trying to run a Ansible playbook from cron (hence no interaction possible) on a group of servers with sudo. Several tutorials and posts throughout the internet recommend to set the sudo password ...
0
votes
0answers
12 views

SVN requires sudo permisions

I need to download some files from my uni's SVN. Running the svn co command in sudo makes it work perfectly, however with my base account it gives a 500 internal server error. I would like to be able ...
1
vote
1answer
64 views

How do I get my expect statement to not output the stdout of the first command?

What I'm trying to do is execute an ssh command that prints out the /etc/shadow file. Obviously that file requires root or sudo permission, and I don't have root creds, therefore I have to use sudo. ...
0
votes
0answers
9 views

New server registration error in pgadmin3

I could successfully install pgadmin3 and also postgresql 11 and postgis in ubuntu 18.04. But i am not able to create a new server for creating a new database in pgadmin3. The installation is done as ...
0
votes
1answer
31 views

Script doesn't remember root password

I created a script (I'm running it as root) that builds and installs some packages what takes some time, so around third package I had to re-enter root password. I added while :; do sudo -v; sleep 60;...
0
votes
0answers
20 views

How to allow a non-root user to have only sudo-less capabilities for mkdir

My deploy user needs to create folders for my deployment method using shipit.js. I cannot find a way to give shipit.js the deploy password. So, I would like to allow deploy to make directories without ...
1
vote
0answers
21 views

How to connect with SSH2 and public keys with “sudo” permissions

I'm doing a computer security application for GNU / LINUX in Symfony 3.4. but when connecting to PCs I can execute any command, except those that require root permissions, obtaining the following ...
0
votes
0answers
17 views

command 'sam' not found using sudo

I have installed sam using following https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install-linux.html I can run following sam build But not ...
0
votes
0answers
33 views

Kali linux “sudo strip” command not found

when i run a sudo strip command it only displays sudo: strip: command not found. This is the command: sudo strip --remove-section=.note.ABI-tag /usr/lib64/libQt5Core.so.5
0
votes
0answers
34 views

sudo su ask target user's password

sudo su asks for invoking user's password as default sudo behaviour. With Defaults rootpw it will ask root's password. But is there a way, to make sudo su behave like su? Like it'll ask password of ...
0
votes
1answer
64 views

How to simulate a shell without tty?

I'm facing trouble with a system which I'm maintaining via SSH. When I test commands which require a TTY they work, probably because of the SSH session. Under some unclear circumstances there's no TTY ...

15 30 50 per page