Environment
- Red Hat Enterprise Linux (RHEL) 6
- GNOME Desktop Environment
Issue
- When root user is logging in to GNOME, the following error occurs if a
normal user runs df.
$ df -kl
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 24670076 3751464 19665444 17% /
tmpfs 1030908 100 1030808 1% /dev/shm
/dev/sda1 99150 25491 68539 28% /boot
df: `/root/.gvfs': Permission denied
Resolution
- To disable
gvfs-fuse-daemon
, the GVFS_DISABLE_FUSE
environment needs to be set.
- Create the file /etc/X11/xinit/xinitrc.d/00-gvfs-disable-fuse.sh with the
follwing contents:
GVFS_DISABLE_FUSE=1
export GVFS_DISABLE_FUSE
Root Cause
- On GNOME desktop environment, a hidden directory
~/.gvfs
exists
under home directory, gvfs-fuse-daemon
mounts special filesystem to
~/.gvfs
using FUSE system.
# mount
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)
- An error occurs because a normal user cannot access other user's
directories.
No comments:
Post a Comment