Hello,
I am currently working on a task in Linux where I need to create a user with a non-interactive shell. However, I encountered an issue and the task failed. I have written the following command to create the user:
sudo -m -s /sbin/nologin username
Despite this, the task is not completing as expected. Could someone kindly guide me on what might be causing the issue or if there’s something I may be missing in the process?