![]() |
KNOPPIX Linux - User's Home Directory Not Getting Created
Hi Guys,
I have just installed KNOPPIX Linux on a Virtual Machine. This Linux Distro is great in the sense that I didn't find any difficulty in running its Live CD and then installing it. Well, so here I am. I created a couple of user accounts but no directory was created for them under /home directory. Here's an example: Code:
root@Microknoppix:~# useradd xSo, I looked at the file: /etc/default/useradd and uncommented the following line: Code:
# The default home directory. Same as DHOME for adduserSo, what could it be wchich is causing the problem? Where can the user's home directry be going then? |
From: man useradd: -m, --create-home
Create the userīs home directory if it does not exist. The files and directories contained in the skeleton directory (which can be defined with the -k option) will be copied to the home directory. so...it'd be : useradd -m yourloginname |
Thanks for your help! Yes, it works!
Code:
root@Microknoppix:/home/knoppix# useradd -m x |
try adduser.
It's a script which let you create the home directory, password, etc |
Well, there is a problem now. The users which I created previously, for example: the account of the user x
I delete it recursively and then create it again as shown below: Code:
root@Microknoppix:/home/knoppix# userdel -r xKindly, consider the underlined lines in the commands and their outputs given above. If we are to remove the mail box manually then how do we do that? Thanks in advance! |
I think I have found it:
Code:
root@Microknoppix:~# find / -name mail |
Thanks again! adduser command is great! So, I would like to use the useradd command as a short-hand.
Code:
root@Microknoppix:~# adduser --force-badname Me |
| All times are GMT -5. The time now is 06:56 PM. |