How do I delete a user and password created using l4t_create_default_user.sh?

Hello

l4t_create_default_user.sh

How do I delete a user and password created using l4t_create_default_user.sh?

Thank you.

Do you mean through qemu? Or from a running system? The script itself is a rather nice work, and is human readable. I have not tried, but if you are able to edit bash shell script, then I’d look at the part where it has "useradd, and create something similar which has a “userdel” (and perhaps “groupdel”).

If I were to do this, then what I’d start with is adding a choice to delete instead of add, and then have it print what commands it would have performed (versus having it actually do this). Then go to a running Jetson and see if the command works to remove correctly (you would first want to add some disposable account since you wouldn’t want to delete your actual admin account on the running Jetson…for example you could “sudo useradd deleteme”, and then use your script echoed command and see if it removes user “deleteme”).

If it works, then you could have the actual delete occur, preferably after a “confirm” step.

1 Like