Skip to main content

All Questions

Tagged with
0 votes
1 answer
61 views

sudo passwordless in ssh session not working

In RHEL7, I have the same local users on all machines within my cloud tenancy. That local user is configured in sudoers to be able to: run all commands, run sudo commands without password EDIT: ssh ...
Lou Lee's user avatar
0 votes
1 answer
31 views

Permission denied when running a mv command as user after entering into sudoers file

I have a user which needs to move a file to a dated folder. I have an entry into the sudoers file as follows: backupuser ALL=(ALL) NOPASSWD: /usr/bin/mv /var/lib/pgsql/base_backup/*.tar.gz /var/lib/...
Dale's user avatar
  • 3
0 votes
1 answer
26 views

sudo Acting Differently on Two Machines - same account

RHEL 8.8 on VMWare (eSXI) on two different VM's (server01 and server02) So we have an administrative account in our AD "pfsadmin" used for various purposes including stopping and starting ...
Pitchfork Guy's user avatar
-1 votes
2 answers
830 views

running systemctl via ssh without asking for password [closed]

I want to run ssh without asking for a password and invoke systemctl without a password I tried doing the following: ssh -t <user>@<host> "echo <password> | sudo -S systemctl ...
Daniel's user avatar
  • 50
0 votes
1 answer
238 views

Red hat visudo read logs for regular user

It is necessary to allow reading logs /var/log/.* by a regular user. I do according to the documentation. This manual mkdir -p /etc/sudoers.d/ visudo -f /etc/sudoers.d/mikelogger inside visudo ...
Александр Инженер's user avatar
3 votes
1 answer
537 views

How do I remove reboot, halt and shutdown privileges using visudo?

I am trying to take reboot privileges away from the user Rick. I have tried both ! and NOEXEC. Is there another way to do this? Rick ALL = (ALL) !/sbin/reboot Rick ALL = NOEXEC: /sbin/reboot
Carolina's user avatar
2 votes
1 answer
6k views

ldconfig --> sudo: you do not exist in the passwd database

Ok, I made a mistake and I'm struggling to fix it: I was looking for a libGL.so to link a project, and found it in a (conan-related) package that is mounted during build time. The default system /usr/...
StarShine's user avatar
  • 131
2 votes
1 answer
5k views

Running "su command" as another user

I have a user user1 which is part of wheel group and has all the root privileges . user1 is able to change password for user2 using the below command (My understanding is that here passwd is run as ...
meallhour's user avatar
  • 181
1 vote
0 answers
918 views

Yum as root only works if I use the sudo command

This is for RHEL 7.8... I support a VM for a customer where another third-party uses the root account to update packages. When they use yum as root, they receive a timeout, like this (note: this is ...
adam fink's user avatar
3 votes
1 answer
3k views

How to run a systemctl command without sudo?

Background: My developers are installing an informatica product in a RHEL8.3 server. The services are running using a user called infa_admin, and this user is already in the wheel group. This user is ...
screenslaver's user avatar
2 votes
1 answer
6k views

sudoers is world writable

I wanted to modify the sudoers file, and by mistake, to be able to open it, changed the permissions from 440 to 777. Now when wanting to open it, it no longer allows me, and the error that comes out ...
Salvador's user avatar
1 vote
1 answer
576 views

Run wall command as another user RHEL8

How do I send a wall message as root (or any other user) and it not identify the original user? Looking at the below I would have expected wall to display message from root but it still shows admin1, ...
Koffee's user avatar
  • 29
3 votes
2 answers
5k views

system locale are setting improperly on Redhat

On Redhat 7.9 (fresh installation) many command returns warning like on example: # yum repolist Failed to set locale, defaulting to C When check locale it returns: # locale locale: Cannot set ...
Chris's user avatar
  • 4,221
1 vote
2 answers
3k views

How to allow only a specific script to run as root, using a non-root user account, without sudo access to everything?

I have a bash file that the web developer would need to run once in a while, which contains commands to reset some file permissions. These commands have to be run under the root security context. I ...
user3323142's user avatar
0 votes
0 answers
42 views

PATH broken when trying to add directory permanently for all users [duplicate]

What specific changes need to be made to the following in order to safely add the /home/myapp-host/bin directory location to the $PATH permanently for all users on Amazon Linux 2, which is based on ...
CodeMed's user avatar
  • 5,269

15 30 50 per page
1
2 3 4 5