Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133683 - external usb ntfs harddrive mount with wrong permissions
Summary: external usb ntfs harddrive mount with wrong permissions
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-18 06:20 UTC by Paul Chatzidimitriou
Modified: 2009-11-06 01:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Chatzidimitriou 2006-05-18 06:20:51 UTC
I have an external usb harddrive with ntfs and when i plugin it it gets mounted by g-v-m but with wrong permissions and i can't see its files as user :
medic ~ # ls -l /media/
total 8
dr-x------ 1 root root 8192 May 13 23:11 Pethamenos

The device is getting mounted like this :
/dev/sdc1 on /media/Pethamenos type ntfs (rw,noexec,nosuid,nodev)

dbus-monitor as user gives me this :
signal sender=org.freedesktop.DBus -> dest=:1.68 interface=org.freedesktop.DBus; member=NameAcquired
 string ":1.68"
method call sender=:1.68 -> dest=org.freedesktop.DBus interface=org.freedesktop.DBus; member=AddMatch
 string "type='method_call'"
method call sender=:1.68 -> dest=org.freedesktop.DBus interface=org.freedesktop.DBus; member=AddMatch
 string "type='method_return'"
method call sender=:1.68 -> dest=org.freedesktop.DBus interface=org.freedesktop.DBus; member=AddMatch
 string "type='error'"

I don't setup any mount command in gconf-editor->desktop->gnome->volume_manager

My /etc/dbus-1/system.d file is this :
   1.
      <!DOCTYPE busconfig PUBLIC
   2.
       "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
   3.
       "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
   4.
      <busconfig>
   5.
       
   6.
        <!-- This configuration file specifies the required security policies
   7.
             for the HAL to work. -->
   8.
       
   9.
        <!-- Only root or user haldaemon can own the HAL service -->
  10.
        <policy user="haldaemon">
  11.
          <allow own="org.freedesktop.Hal"/>
  12.
        </policy>
  13.
        <policy user="root">
  14.
          <allow own="org.freedesktop.Hal"/>
  15.
        </policy>
  16.
       
  17.
        <!-- Allow anyone to invoke methods on the Manager and Device interfaces -->
  18.
        <policy context="default">
  19.
          <allow send_interface="org.freedesktop.Hal.Manager"/>
  20.
          <allow send_interface="org.freedesktop.Hal.Device"/>
  21.
       
  22.
          <allow receive_interface="org.freedesktop.Hal.Manager"
  23.
                 receive_sender="org.freedesktop.Hal"/>
  24.
          <allow receive_interface="org.freedesktop.Hal.Device"
  25.
                 receive_sender="org.freedesktop.Hal"/>
  26.
        </policy>
  27.
       
  28.
        <!-- Default policy for the exported interfaces -->
  29.
        <policy context="default">
  30.
          <deny send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
  31.
          <deny send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
  32.
          <deny send_interface="org.freedesktop.Hal.Device.Volume"/>
  33.
          <deny send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
  34.
        </policy>
  35.
       
  36.
        <!-- This will not work if pam_console support is not enabled -->
  37.
        <policy at_console="true">
  38.
          <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
  39.
          <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
  40.
          <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
  41.
          <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
  42.
        </policy>
  43.
       
  44.
        <!-- You can change this to a more suitable user, or make per-group -->
  45.
        <policy user="0">
  46.
          <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
  47.
          <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
  48.
          <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
  49.
          <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
  50.
        </policy>
  51.
       
  52.
        <!-- Gentoo specific rules to allow 'plugdev' group access to Volumes, etc -->
  53.
        <!-- NB: not sure if we should use a different group for SystemPowerManagement and LaptopPanel ... -->
  54.
        <policy group="plugdev">
  55.
          <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
  56.
          <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
  57.
          <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
  58.
          <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
  59.
        </policy>
  60.
       
  61.
      </busconfig> 

I am in the plugdev group and use sys-apps/hal-0.5.7-r2 sys-apps/dbus-0.61-r1 in gnome 2.14.1 .There is also a bug in gnome's bugzilla http://bugzilla.gnome.org/show_bug.cgi?id=335903

Here is my emerge --info :
Portage 2.1_rc1-r2 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16-gentoo-r7 i686)
=================================================================
System uname: 2.6.16-gentoo-r7 i686 AMD Athlon(tm) XP 3000+
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://files.gentoo.gr http://ftp.ntua.gr/pub/linux/gentoo/ ftp://ftp.uoi.gr/mirror/OS/gentoo/ http://ftp.physics.auth.gr/pub/mirrors/gentoo/"
LINGUAS="en el"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/opt/overlays/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib alsa apache2 apm asf audiofile avi berkdb bitmap-fonts bonobo bzip2 cairo cdr cli crypt cups curl dbus dga divx4linux dlloader dri dv dvd dvdr dvdread eds elibc_glibc emboss encode esd ethereal fame fbcon ffmpeg fftw flac flash foomaticdb fortran gdbm gif gimp gimpprint glitz glut gmp gnome gnutls gpm gstreamer gtk gtk2 gtkhtml guile hal howl idn imagemagick imlib ipv6 isdnlog jabber java jpeg kdeenablefinal kerberos kernel_linux krb4 lcms libg++ libwww mad mikmod mmx mng motif mozilla mp3 mpeg mplayer msn ncurses nls nptl nvidia ogg opengl oss pam pcre pdflib perl pic png ppds pppd python quicktime readline reflection samba scanner sdl session slang speex spell spl sqlite sse ssl subtitles svg tcltk tcpd theora tidy tiff truetype truetype-fonts type1-fonts udev usb userland_GNU v4l v4l2 vorbis win32codecs wxwindows x86 xine xml xml2 xmms xorg xv xvid zlib input_devices_keyboard input_devices_mouse linguas_en linguas_el video_cards_vesa video_cards_fbdev video_cards_nvidia video_cards_nv video_cards_v4l video_cards_vga"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Patrik Kullman 2006-09-30 08:11:06 UTC
Same problem here, works fine with other filesystems..
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2007-08-14 21:30:55 UTC
is this fixed in newer releases ? If not, please specify your version of hal, gnome and gnome-mount
Comment 3 Rémi Cardona (RETIRED) gentoo-dev 2008-05-27 18:12:16 UTC
Please get back to us with the information requested by Gilles in comment #2.

Thanks
Comment 4 Leeman Strout 2009-01-22 23:39:45 UTC
This is still an issue.  fat32 works, ntfs doesn't.

I'm using Thunar-volman plugin with Thunar on xfce rather than gnome-volume-manager, but same result.  NTFS gets mounted root:root dr-x------  no matter what policy changes I attempt in /usr/share/hal/fdi/*

Formatting the same device to fat32 results in a mount of:  user:root drwxr-xr-x  and I can use it as expected.


hal version: 0.5.11-r6
Thunar v: 0.9.3
Thunar-volman v: 0.2.0


Portage 2.1.6.7 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r1, 2.6.28-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r1-x86_64-Intel-R-_Core-TM-2_CPU_T7400_@_2.16GHz-with-glibc2.2.5
Timestamp of tree: Thu, 22 Jan 2009 20:45:01 +0000
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.4-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.2
sys-apps/sandbox:    1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64 ~x86"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://lug.mtu.edu/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en_US en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X accessibility acpi alsa amd64 bash-completion bzip2 cddb cleartype cli cracklib crypt curl dbus dell fam glx gtk hal iconv jpeg laptop libnotify logrotate midi mmx multilib ncurses nls nptl nptlonly nsplugin ntp nvidia opengl pam pcre perl pmu png python qt3support readline samba session sqlite sse sse2 ssl ssse3 startup-notification tcpd tiff truetype unicode xcomposite xinerama xorg xscreensaver xulrunner xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-11-05 00:20:20 UTC
Please try with ntfs3g-2009.4.4-r1