Thursday, June 3, 2021

Linux Pending A-Z ::: Sudoers :: Login Shell : Non Login Shell :: Grep Regex :: Alias

sudo visudo

source /etc/sudoers


To put it very simple, it is “who where = (as_whom) what”.

https://medium.com/kernel-space/linux-fundamentals-a-to-z-of-a-sudoers-file-a5da99a30e7f

coraca ALL=ALL:ALL  /usr/bin/cat /etc/shadow



https://www.hostinger.in/tutorials/sudo-and-the-sudoers-file/

https://phpraxis.wordpress.com/2016/09/27/enable-sudo-without-password-in-ubuntudebian/


kk   ALL=(ALL)  NOPASSWD: ALL

user1 ALL=NOPASSWD: /bin/systemctl start vsts, /bin/systemctl stop vsts, /bin/systemctl restart vsts, /bin/systemctl status vsts



Using /etc/sudoers.d #

Instead of editing the sudoers file you can create a new file with the authorization rules in the /etc/sudoers.d directory.


https://www.garron.me/en/linux/visudo-command-sudoers-file-sudo-default-editor.html

https://www.linux.com/training-tutorials/configuring-linux-sudoers-file/

https://toroid.org/sudoers-syntax

https://medium.com/kernel-space/linux-fundamentals-a-to-z-of-a-sudoers-file-a5da99a30e7f

http://www.softpanorama.org/Access_control/Sudo/sudoer_file_examples.shtml

http://www.freekb.net/Article?id=269

https://www.hostinger.in/tutorials/sudo-and-the-sudoers-file/

https://www.tecmint.com/create-alias-in-linux/

https://linuxize.com/post/linux-xargs-command/

https://shapeshed.com/unix-xargs/

https://www.geeksforgeeks.org/alias-command-in-linux-with-examples/

https://www.techrepublic.com/article/linux-101-the-different-types-of-sudo-and-su/

https://www.blogger.com/u/1/blog/posts/2528866210673694202

https://unix.stackexchange.com/questions/384700/what-is-the-difference-between-su-username-and-sudo-su-username

https://unix.stackexchange.com/questions/38175/difference-between-login-shell-and-non-login-shell

https://linuxhint.com/list-only-files-not-directories/

https://medium.com/@rajsek/zsh-bash-startup-files-loading-order-bashrc-zshrc-etc-e30045652f2e

https://www3.ntu.edu.sg/home/ehchua/programming/howto/Regexe.html

https://regex101.com/

https://askubuntu.com/questions/815066/whats-the-difference-between-bashrc-and-etc-bash-bashrc 

No comments:

Post a Comment

Azure - Pipeline - Add Approver for Stage

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass