Forrest logo
back to the useradd tool

useradd:ai:30d73

How to add user with home directory on nfs?
$ useradd -m -d /mnt/nfs_home/user_name -s /bin/bash user_name
try on your machine

This command adds a new user with a home directory on the NFS server. Replace 'user_name' with the desired username. The -m flag creates the home directory, -d flag specifies the home directory path, -s flag sets the shell for the user.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • how to add user with home directory on nfs?
back to the useradd tool