I'm using Fedora11.
Earlier today I removed my /home directory to a new partition with a procedure close to this one:
(as root on runlevel 1)
Code:
mkdir /newpart
mount /dev/sda4 /newpart
cd /home
cp -ax * /newpart
mv /home /home.old
mkdir /home
umount /newpart
mount /dev/sda4 /home
And added a line to /etc/fstab:
Code:
/dev/sda4 /home ext4 defaults 1 3
Later on (for other reasons) I changed UID of my user. So I changed it in /etc/passwd and /etc/group and recursively changed fileowners and -groups to the new uig/gid.
As a test find / -uid $OLD_UID gives no output at the moment and neither on the GID.
Now, my problem is, that when I start a terminal through GNOME, it starts in the "/" (root) directory. If I type "cd" it changes to the /home/user directory - but why doesn't it start there? May not be the biggest problem in the world, but it is still an indication that something is wrong :S
Don't know if it is relevant, but in /var/log/messages I found the line:
Code:
Jan 31 21:12:09 hostname gdm-simple-greeter[3051]: WARNING: Unable to query filesystem type for /home/user: Error getting filesystem info: Permission denied
Any ideas, how I can fix the terminal start directory?
---------- Post added 2010-02-01 at 01:52 AM CST ---------- Previous post was 2010-01-31 at 10:45 PM CST ----------
Well, it seems to be related to some SElinux labelling thing. At least I found the cure in the SElinx troubleshoot browser:
touch /.autorelabel; reboot (as root)
After that command (and reboot) the problem seems to be solved.