I have installed CentOS and Redhat5 on a LVM partition and selinux is enabled. Both OS's share the same /home partition with one user with the same login(gc) and same uid (1000). The problem I am having is that gc can login with all permissions etc on the OS that was installed first (CentOS). For the redhat OS gc can login but cannot write to the home directory (or startx since X needs to write to Xauthority)
Here are outputs - 1st CentOS
[gc@shuttle ~]$ ll -Zd $HOME
drwx------ gc gc system_u

bject_r:unlabeled_t /home/gc
[gc@shuttle ~]$ stat $HOME
File: `/home/gc'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: fd03h/64771d Inode: 300145 Links: 37
Access: (0700/drwx------) Uid: ( 1000/ gc) Gid: ( 1000/ gc)
Access: 2010-10-18 12:50:32.000000000 +1300
Modify: 2010-10-18 12:41:01.000000000 +1300
Change: 2010-10-18 12:41:01.000000000 +1300
and now with redhat5 :-
[gc@shuttle ~]$ ll -Zd $HOME
drwx------ gc gc system_u

bject_r:unlabeled_t /home/gc
[gc@shuttle ~]$ stat $HOME
File: `/home/gc'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: fd03h/64771d Inode: 300145 Links: 37
Access: (0700/drwx------) Uid: ( 1000/ gc) Gid: ( 1000/ gc)
Access: 2010-10-18 13:01:03.000000000 +1300
Modify: 2010-10-18 12:57:33.000000000 +1300
Change: 2010-10-18 12:57:33.000000000 +1300
both seem to be exactly the same
but under redhat
if i try :-
[gc@shuttle ~]$ touch : > newfile
-bash: newfile: Permission denied
no problem with CentoS
any ideas
thanks
GC