[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Adding users /home



Mark Annandale wrote:

Hi Guys

I have installed debian (via a Knoppix CD), and overwritten a previous Linux distro. My /home folder exists from the previous distro and I have added myself as a user. However I cannot seem to be able to access all my old data on /home.

Has anyone experienced this, and if so, did you find a solution.


If you used useradd to add yourself, that script will create a directory for you if it doesn't exist. Since it did exist, it didn't do anything. But the directory ownership is going to be wrong. You can fix it with 'chown' -- I'm typing this from a Windows box so I don't have the exact command line. 'man chown' should give you the right info.

BTW, when I did this recently I renamed my old directory before calling useradd, and then added data from my old directory as needed.

HTH
Josh



Reply to: