Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-18-2011, 10:03 PM   #1
Registered: Mar 2006
Location: Nashville, Tennessee
Distribution: Salix 13.37 with KDE
Posts: 258

Rep: Reputation: 36
Re-using my existing home directory

I need your help. 4 years ago I burned my /home directory to a CD and then used the CD to copy my /home directory to my new release of Mandriva. The new release then told me that I didn't have the correct privileges to access the files within the old /home directory. I finally worked through the problem but I've forgotten how I done it. Now, today I need to copy the /home directory from my beloved Mandriva 2008 and use the contents within the /home directory on my new install of Slackware 13. The question is, how can I make sure I can access all my files in the /home directory when I load the old /home directory in the new install of Slackware ? Thanks in advance !
Old 11-18-2011, 10:15 PM   #2
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 190Reputation: 190
Im not sure exactly what your problem is, but if it is a permission problem, you may need to (as root) chown the contents that you copy across, to the uid/gid of the username on the new system.
As the newer system wont necessarily create the user/group names with the same numerical uid/gid

When you ls the contents from the CD, it will probably come up with a numerical uid/gid, meaning that the current system has a different uid/gid for that user name.

# chown -R $user:$group /home/$username
Old 11-18-2011, 10:18 PM   #3
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,789
Blog Entries: 17

Rep: Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317
I had a similar problem with my external USB drive when I replaced Ubuntu with Slackware. The files on it showed up as being owned by user "1001" and as being read-only (probably a side-effect of the ownership issue) even though I had no user "1001" under Slackware. I concluded it was an artifact from the past.

I fixed it with chown and chmod.
Old 11-18-2011, 10:31 PM   #4
Registered: Mar 2006
Location: Nashville, Tennessee
Distribution: Salix 13.37 with KDE
Posts: 258

Original Poster
Rep: Reputation: 36
To clarify my initial post

The directory names and structure will be the same on my new Slackware install as they were labeled in the old /home directory. Should I use the chown and chmod commands on the old files before I burn them to CD or after I copy the files to the new install ?


/home, directory

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] rename an existing user and his home directory cccc Debian 5 10-29-2009 12:05 PM
"Home directory already exists. Please enter another home directory path." Daravon Ubuntu 2 02-15-2009 11:26 PM
contents of 'home' directory found at sda5: mounted as /home, and also on sda6:/home leswatson Linux - Newbie 4 04-18-2008 05:02 PM
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 03:37 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration