A colleague asks you to temporarily disable a user's access without deleting their account. Which Linux command allows you to achieve this?
- passwd -l
- userdel
- chmod 000
- usermod -s /sbin/nologin
To temporarily disable a user's access without deleting their account, you can use the 'passwd -l' command. This locks the user's password, preventing them from logging in until the password is unlocked.
Loading...
Related Quiz
- For VPN connections in Linux, which tool can be used to set up a tunnel based on SSL/TLS?
- For performance tuning, the ________ command provides a real-time view of the system's current network connections.
- The command ________ provides real-time statistics about network connections, both incoming and outgoing.
- To change the primary group of a user, the ________ command is utilized.
- To execute a script in Bash, you often need to make it executable and then use the ________ symbol before the script name.