How to edit sudoers file in ubuntu [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Server Fault. Closed 8 years ago. Improve this question I accidentally changed the mode of the file /etc/sudoers and added a line to the file. Now every time I want to “sudo”, … Read more

can’t switch to root or use sudo [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Server Fault. Closed 6 years ago. Improve this question I’ve just come into the following problem: For some reason I can’t use su or sudo: usr@usr-MS-7816:~$ su Password: su: Authentication failure usr@usr-MS-7816:~$ … Read more

sudo -u … -i doesn’t preserve a user’s PATH

I’m trying to determine a user’s path when I’m root, but sudo, even with the -i flag, doesn’t seem to replicate the user’s environment correctly. Is this some sudoers policy setting? $ sudo bash # export PATH=$PATH:/dev/null/$RANDOM # printenv PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/dev/null/28718 # sudo -u david-ehrmann -i printenv PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/dev/null/28718 # Answer From man sudoers As … Read more

How to protect from coworkers [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Server Fault. Closed 1 year ago. Improve this question Hello how to protect linux account form other administrators(coworkers) in company who can use your account to steal data and point a police … Read more

sudo yum install httpd is throwing errors

Hello this is the command im typing and its returning the error you see, any suggestions please [ec2-user@ip-172-31-41-46 ~]$ sudo yum install httpd Loaded plugins: priorities, update-motd, upgrade-helper Resolving Dependencies –> Running transaction check —> Package httpd.x86_64 0:2.2.27-1.3.amzn1 will be installed –> Processing Dependency: httpd-tools = 2.2.27-1.3.amzn1 for package: httpd-2.2.27-1.3.amzn1.x86_64 –> Running transaction check —> … Read more