hi_this_is_dev
09-26-2009, 12:26 AM
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 x
root@Microknoppix:~# passwd x
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@Microknoppix:~# ls /home
knoppix
root@Microknoppix:~# su - x
No directory, logging in with HOME=/
x@Microknoppix:/$ ls
KNOPPIX bin debian etc lib mnt proc sbin srv tmp var
Sept boot dev home media opt root selinux sys usr vmlinuz
x@Microknoppix:/$
As it can be seen from the above output that no home directory was created for the user. Yet, the user can create files and can do any work.
So, I looked at the file: /etc/default/useradd and uncommented the following line:
Code:
# The default home directory. Same as DHOME for adduser
HOME=/home
Of course, /home is already in existance!
So, what could it be wchich is causing the problem? Where can the user's home directry be going then?
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 x
root@Microknoppix:~# passwd x
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@Microknoppix:~# ls /home
knoppix
root@Microknoppix:~# su - x
No directory, logging in with HOME=/
x@Microknoppix:/$ ls
KNOPPIX bin debian etc lib mnt proc sbin srv tmp var
Sept boot dev home media opt root selinux sys usr vmlinuz
x@Microknoppix:/$
As it can be seen from the above output that no home directory was created for the user. Yet, the user can create files and can do any work.
So, I looked at the file: /etc/default/useradd and uncommented the following line:
Code:
# The default home directory. Same as DHOME for adduser
HOME=/home
Of course, /home is already in existance!
So, what could it be wchich is causing the problem? Where can the user's home directry be going then?