View Single Post
  #1   (View Single Post)  
Old 3rd February 2009
Crotalus's Avatar
Crotalus Crotalus is offline
New User
 
Join Date: May 2008
Posts: 7
Default Permission problems after restore

After moving the /home and /tmp file systems to a new hard drive I have permission problems. I started with two of the smaller files systems in case I had problems. I get the errors when logged on as a “user”. No problem with “root”. Transfer was done using tar as follows:

I created a partition on a new hard drive called /tmpn and /homen
cd /tmp
tar cvf /storage1/backup/tmp_backup.tar
cd /home
tar cvf/storage1/backup/home_backup.tar
cd /tmpn
tar xpvf /storage1/backup/tmp_backup.tar
cd /homen
tar xpvf/storage1/backup/home_backup.tar
umount /tmp
umount/home
Using disk label rename mount points /tmp to /tmpo and /tmpn to /tmp
Using disk label rename mount points /home to /homeo and /homen to /home
Updated /etc/fstab and rebooted with out any problems
--------------------------------------------------------
ERRORS
--------------------------------------------------------
$ whoami
Keith
drwxr-xr-x 15 root wheel 2048 Feb 3 15:37 tmp
drwxr-xr-x 6 root wheel 512 Feb 3 13:38 home
drwxr-xr-x 20 Keith wheel 1536 Feb 3 15:38 Keith
and a file in my home directory
-rw-r--r-- 1 Keith wheel 2604 Oct 8 2000 README.trim

$ view README.trim
ex/vi: Error: Log file: Permission denied
$

When trying “startx” the following error occurs:

kdeinit: DCOPServer could not be started, aborting.
Warning: connect() failed: : Connection refused
The following installation problem was detected
while trying to start KDE:

Writing to the temp directory (/tmp) failed with
the error 'Permission denied'

KDE is unable to start.
----------------------------------------------------------
All the file permissions appear to be correct. It appears that /tmp may be the problem but I can not find any permissions that are set wrong and what log file would it be having a problem with. The -p option should keep the original file permissions. I have been using tar for backups but have never had the need to do a restore. I have not lost any data as it is still on the old hard drive.

Anybody have any idea where the problem would be? I have three more to go.

Thanks!

Keith
Reply With Quote