Tuesday, June 21, 2016

how to resolve xauthority file is empty ?


[root@sugap01 vivv]# ls -ldZ /weblogic
drwx------ weblogic weblogic ?                                /weblogic
[root@sugap01 vivv]# chcon -R -t user_home_dir_t /weblogic
chcon: can't apply partial context to unlabeled file `.bash_logout'
chcon: can't apply partial context to unlabeled file `extensions'
chcon: can't apply partial context to unlabeled file `plugins'
chcon: can't apply partial context to unlabeled file `.mozilla'
chcon: can't apply partial context to unlabeled file `.gnome2'
chcon: can't apply partial context to unlabeled file `.bashrc'
chcon: can't apply partial context to unlabeled file `.bash_profile'
chcon: can't apply partial context to unlabeled file `/weblogic'

Solution :-

[root@sugap01 vivv]# chcon system_u:object_r:user_home_dir_t /weblogic
[root@sugap01 vivv]# ls -ldZ /weblogic
drwx------. weblogic weblogic system_u:object_r:user_home_dir_t /weblogic

Now you can

ssh -X user@host

.Xauthority file will be written properly.

No comments:

Post a Comment