All Questions
18
questions
0
votes
1
answer
50
views
Is this missing library something I can install without sudo privileges?
OS
I'm using a CentOS 7 system, which like a red hat system from what I observe (relevant further down the post.)
cat /etc/*-release
CentOS Linux release 7.8.2003 (Core)
NAME="CentOS Linux"
...
1
vote
1
answer
6k
views
sudo: no valid sudoers sources found, quitting
On Amazon Workspaces I ran sudo chmod -R 777 /etc in order to create a file to install Docker but now after every command with sudo I run into this error
sudo: /etc/sudo.conf is world writable
sudo: /...
0
votes
2
answers
22k
views
Why can't I use the sudo command with this user?
I am not a system engineer (I am more a software developer). I have the following problem trying to deploy an application on a Linux Centos system.
As the first operation, I need to install Java and ...
0
votes
1
answer
996
views
How do I release a blocked sudo user
I use a centos instance for a production system. I do not know how But the root password was enabled or centos user was removed from sudoers. Before I was able to run sudo commands or even run sudo su ...
0
votes
1
answer
1k
views
Sudo not working on CentOS 7
so my school had me try to disable root login by editing /etc/passwd file, root:x:0:0:root:/root:/sbin/nologin
the plan is to have me use sudo commands to then revert this change. but since doing ...
1
vote
1
answer
2k
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, ...
3
votes
1
answer
2k
views
uninstalling vim-minimal also uninstalls sudo in Centos 7.4
Setting up a new CentOS 7.4 machine. I installed vim using sudo yum install vim, and then I uninstalled vim-minimal with sudo yum remove vim-minimal. Now sudo has been uninstalled:
$ sudo
-bash: /...
1
vote
1
answer
783
views
CentOS7 change in visudo not accepted
This is my sudoers file. I am accessing it using sudo visudo. I have added this new user 'user' then logout/login back to the system but this user still need a password to run sudo commands.
## Next ...
2
votes
1
answer
7k
views
Linux - create screen as another user
I'm trying to create a new screen on my server (CentOS 5.11), but instead of starting it with my user, I would prefer to use another user with restricted permissions, just to be on the safe side.
So, ...
5
votes
1
answer
10k
views
Whitelisting commands a user can use with sudo
I've been attempting to set up a whitelist of commands a user can run on my system. The server I'm using is running CentOS 7. What is the syntax that should be used to only allow a certain group of ...
0
votes
1
answer
286
views
Make a group be able to run shutdown command without entering a password (CentOS)
I used the command visudo -f /etc/sudoers to edit the sudoers file.
How do I make a group be able to run the shutdown command without supplying password?
10
votes
8
answers
21k
views
Add a sudoer non-interactively from command line
(On Centos through Docker)
I know that I can add a sudoer using visudo. Is there a way to add a user to the sudoer list straight from the command line, so I don't have to do it interactively?
I'm ...
2
votes
1
answer
4k
views
Broken sudo on amazon web services ec2 linux centOS
So I had no idea of the dangers of messing with the /etc/sudoers file, and was just trying to make a simple change in there. However, I seem to have put something with incorrect syntax in there, ...
1
vote
4
answers
8k
views
"Wrapper" ssh script freezes when executing remote command
I am running OSX Mountain Lion and the remote server is CentOS 6. I have several scripts on my local machine that I want to run on the remote server and to that end, I thought to write one script that ...
0
votes
1
answer
255
views
How can I allow user A to run commands as user B if I don't have access to root?
CentOS 5.6
There are two users; user A and user B. I have permissions for both and can log in as either.
I would like to be able to log in as user B, and somehow run commands as user A without ...