LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 11-18-2011, 09:03 PM   #1
Cara25
Member
 
Registered: Mar 2006
Location: Nashville, Tennessee
Distribution: Salix 13.37 with KDE
Posts: 257

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, 09:15 PM   #2
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 189Reputation: 189
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.

use
Code:
# chown -R $user:$group /home/$username
 
Old 11-18-2011, 09:18 PM   #3
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,731

Rep: Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459
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, 09:31 PM   #4
Cara25
Member
 
Registered: Mar 2006
Location: Nashville, Tennessee
Distribution: Salix 13.37 with KDE
Posts: 257

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 ?
 
  


Reply

Tags
/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 11:05 AM
"Home directory already exists. Please enter another home directory path." Daravon Ubuntu 2 02-15-2009 10:26 PM
contents of 'home' directory found at sda5: mounted as /home, and also on sda6:/home leswatson Linux - Newbie 4 04-18-2008 04:02 PM
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM


All times are GMT -5. The time now is 01:11 AM.

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