Answer the question
In order to leave comments, you need to log in
[[+content_image]]
How to allow hepldesk user to run command as backup user?
the task is this:
Allow the helpdesk1 user to run the newbackup command as the backup user.
newbackup is an alias command, I wrote it like this:
[[email protected] Загрузки]$ cat ~/.bashrc
# .bashrc
...
# Custom aliases
alias newbackup='bash /home/user/bash-script10'
helpdesk1 ALL=(ALL) /usr/bin/passwd, !/usr/bin/passwd sysadmin, !/usr/bin/passwd root, /home/user/.bashrc backup1
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question