How to execute all sudo commands without password
Вставка
- Опубліковано 17 вер 2024
- ***You need to consider any security consequence of allowing a sudo command execute without a password.
Some times you may need to run a command with root privileges, but you do not want to type a password using sudo command. This can be achieved by editing /etc/sudoers file.
sudo cp /etc/sudoers /root/sudoers.bak
sudo visudo
your_username ALL=(ALL) NOPASSWD:ALL
For ex- mayur ALL=(ALL) NOPASSWD:ALL
mayur is my username
Subscribe our channel for more tech stuff.
Our Facebook Page - / easytechstudios
Instagram - / easytechstudios
Thank you so much for making this video. It helped me a lot. I am struggling to solve this from around 3 days. It got solved by performing the steps you shown in this video.❤
Glad it helped!
@@EasyTechStudios ☺️
Thank You So Much Works LIke a Charm
Thanks a lot it worked
Might as well be logged in as root, bad security practice
Yes it is not a best practice but helps in troubleshooting in sandbox env
root name will be ec2 instance name or dockerhub name?
user cant execute
pls for the password
It should be the password of the user you are currently using... Only you will have that.
Alex Gower i just wondering Alex what is the password phrase? I attempting to install ROZ but it doesn’t work I faced password problem please help me !
مهند المهدي whatever the root user default password is set to or for example if you are using digital ocean they email you the password