AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
Expand all | Collapse all

useradd command specification

  • 1.  useradd command specification

    Posted Tue May 07, 2019 11:55 PM

    Originally posted by: KKKKIIDA


    The manual entry (man) of AIX useradd command states: " -m   Makes user's home directory if it does not exist. The default is not to make the home directory."

    Is the more correct description of the option "-m"  that "Makes user's home directory if it does not exist.  The default is not to make the home directory and to remove the home directory if it already exists. " ?

     



  • 2.  Re: useradd command specification

    Posted Fri May 24, 2019 07:41 AM

    Originally posted by: jpc@pt.ibm.com


    At least on AIX 7.1 that would be wrong.

    - "useradd m" doesn't touch /home/m (it neither creates nor removes the /home/m directory)

    - "useradd -m m" will create /home/m (if it doesn't exist) or ignore it (if it does exist)