# User directory doesn't exist

**URL:** <https://community.unix.com/t/user-directory-doesnt-exist/308136>\
**Category:** Solaris\
**Created:** [April 11, 2012, 1:22am UTC](https://community.unix.com/t/user-directory-doesnt-exist/308136 "2012-04-11T01:22:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vipinkumarr89](https://community.unix.com/user_avatar/community.unix.com/vipinkumarr89/32/2589_2.png) [@vipinkumarr89](https://community.unix.com/u/vipinkumarr89)\
**Post date:** [April 11, 2012, 1:22am UTC](https://community.unix.com/t/user-directory-doesnt-exist/308136/1 "2012-04-11T01:22:01Z")

</div>

Hii all,

i create the user

```nohighlight
useradd -d /home/kk kk
passwd kk

```

when i tried to login to kk  
i get a error user directory doesn't exist

then i tried

```nohighlight
useradd kkk
passwd kkk

```

when i tried to login to kkk  
i get the same error user directory doesn't exist.

---

<div class="post-metadata">

**Author:** ![Corona688](https://community.unix.com/letter_avatar/corona688/32/5_5575768a8748004e209b776fc1b2916d.png) [@Corona688](https://community.unix.com/u/Corona688)\
**Post date:** [April 11, 2012, 1:27am UTC](https://community.unix.com/t/user-directory-doesnt-exist/308136/2 "2012-04-11T01:27:15Z")

</div>

You can create the directory yourself and chown it to the appropriate user and group...

---

<div class="post-metadata">

**Author:** ![methyl](https://community.unix.com/letter_avatar/methyl/32/5_5575768a8748004e209b776fc1b2916d.png) [@methyl](https://community.unix.com/u/methyl)\
**Post date:** [April 11, 2012, 8:19am UTC](https://community.unix.com/t/user-directory-doesnt-exist/308136/3 "2012-04-11T08:19:50Z")

</div>

There are more parameters to useradd. See `man useradd` .  
You were missing the `-m` parameter .

```nohighlight
useradd -c "Name of user" -d /home/kk -m kk

```

It's probably easier to delete the account and then re-run useradd with the correct parameters so that you get the profile files copied into the account automatically.

---

<div class="post-metadata">

**Author:** ![jlliagre](https://community.unix.com/letter_avatar/jlliagre/32/5_5575768a8748004e209b776fc1b2916d.png) [@jlliagre](https://community.unix.com/u/jlliagre)\
**Post date:** [April 11, 2012, 2:01pm UTC](https://community.unix.com/t/user-directory-doesnt-exist/308136/4 "2012-04-11T14:01:17Z")

</div>

Note also that /home might be an automount point in which case you need to create the directory on the shared location instead of using the previously suggested methods. Alternatively, you can of course disable this automount setting if unused.

---

<div class="post-metadata">

**Author:** ![coolboys](https://community.unix.com/letter_avatar/coolboys/32/5_5575768a8748004e209b776fc1b2916d.png) [@coolboys](https://community.unix.com/u/coolboys)\
**Post date:** [April 12, 2012, 6:45am UTC](https://community.unix.com/t/user-directory-doesnt-exist/308136/5 "2012-04-12T06:45:55Z")

</div>

hi kumar 99

create newone directory ..exp yourrnae  
mkdir /kumar  
then you can create user  
useradd -d /kumar/kk
