as some of you may know i have installed centOS and im now adding new users
after googling around for a while i came across two methods of doing so
this command ran fine i then ran logout from root.
i then tried to log in as dave but it said wrong password
so i googled a bit more and found this
i executed this and it ran fine i then went onto the next command
it throws an error saying the directory already exists
i have only typed this once
anyone any ideas on where im going wrong?
after googling around for a while i came across two methods of doing so
Method 1
[root @ jon ~]# adduser dave -p password
this command ran fine i then ran logout from root.
i then tried to log in as dave but it said wrong password
so i googled a bit more and found this
Method 2
[root @ jon ~]# useradd -d /home/jon/dave2 -s /bin/bash -c "dave pc" dave2
i executed this and it ran fine i then went onto the next command
Method 2 cont...
[root @ jon ~]# mkdir /home/jon/dave2 && chown dave2 /home/jon/dave2 && passwd password
it throws an error saying the directory already exists
i have only typed this once
anyone any ideas on where im going wrong?