How to reset the password in an LXC container

Question: I created an LXC container, but I cannot log in to the container as I forgot the default user’s password and the root password. How can I reset the password on an LXC container? When you create an LXC container, it will have the default username/password set up. The default username/password will vary depending […]
Continue reading…

 

How to force password change at the next login on Linux

Question: I manage a Linux server for multiple users to share. I have just created a new user account with some default password, and I want the user to change the default password immediately after the first login. Is there a way to force a user to change his/her password at the next login? In […]
Continue reading…

 

How to use sudo without password prompt on Linux

Question: How can I use sudo without entering a password on Linux? sudo allows a system administrator to grant certain users (or groups) a permission to run privileged commands on Linux system. In order to run a command with sudo, users have to type their own password at a password prompt. To allow a specific […]
Continue reading…