- Step -On my VM Debian Server I had to install the sudo utility first as root user I ran
apt install sudo
- Step is to add user you sudoers file. To do so you need to as root user run visudo and at the end of file add
username ALL=(ALL) NOPASSWD:ALL
- Step is to add user to the sudo group, again as root you run
usermod -aG sudo username
- Step you can now check if you can use sudo command as user you created before and if you followed those steps you should be able to run commands as trusted user
This is my very first blog with the posts about tutorials, walkthroughs and writeups for ethnical hacking and other cyber security themese
Tuesday, October 31, 2023
Debian Server 12 - adding user to sudoers
sudo is a command-line utility that allows trusted users to run commands as another user, by default root.
This tutorial shows two ways to grant sudo privileges to a user.
Subscribe to:
Post Comments (Atom)
How to Install PostgreSQL on Debian 12: A Step-by-Step Guide
PostgreSQL, commonly known as Postgres, is a powerful, open-source relational database management system renowned for its advanced features ...
-
Do you see ifconfig command not found error in Debian? Here is my quick tutorial on how to install it on Debian. I have made fresh instal...
-
This is my first writeup/walkthrough post for the TryHackMe website. TryHackMe is online platform for learning cyber security, using hand...
No comments:
Post a Comment