Modify User in Linux Use usermod command to modify/update existing user account in Linux. Syntax: $ usermod [options] USER_NAME Example: Change the default shell of user myuser to /usr/sbin/nologin. Use -s or –shell to update default shell. $ usermod –shell “/usr/sbin/nologin” myuser Change Home Directory Use -d or –home switch to change the current home directory of user. The new directory will create automatically, but the parent directory of new home must be exist. $ usermod –home “/var/home/myuser” myuser You can also use -m or –move-home with above switch to…
Read More