Find the answer to your Linux question:
Results 1 to 6 of 6
hello i want to mount a ntfs-partition as user. I want in visudo a entry which make this: sudo mount /mnt/winxp without asking password. Is this possible? set ntfs-3g to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2007
    Posts
    28

    mount ntfs without root


    hello

    i want to mount a ntfs-partition as user.

    I want in visudo a entry which make this:

    sudo mount /mnt/winxp

    without asking password. Is this possible?

    set ntfs-3g to setuid root don't work.

    any ideas?
    thanks

  2. #2
    Linux Engineer Kieren's Avatar
    Join Date
    Aug 2007
    Location
    England
    Posts
    848
    Adding the partition to your /etc/fstab file with the user option would allow users to mount it. For more information see the fstab man page
    Linux User #453176

  3. #3
    Linux Newbie grishi_111's Avatar
    Join Date
    Oct 2007
    Location
    Jafarpur Sitharra(U.P.)/New Delhi, India
    Posts
    188

    Thumbs up

    you can found a very good example here:
    don't forget to make changes according to your own system.
    http://www.linuxforums.org/forum/red...artitions.html
    Sorry, Linux is not my passion .
    Its addiction!!!

  4. #4
    Just Joined!
    Join Date
    Aug 2007
    Posts
    28
    thank you, but this don't work.

    in /etc/fstab is:

    Code:
        # Windows-Disks
        /dev/sda1 /mnt/winXP  ntfs-3g defaults,user 0 1
    if I try as user (not root)

    mount /mnt/winXP

    there is this failure:

    Code:
    raphael@dracona:~$ mount /mnt/winXP/
    Unprivileged user can not mount NTFS block devices using the external FUSE
    library. Either mount the volume as root, or rebuild NTFS-3G with integrated
    FUSE support and make it setuid root. Please see more information at
    http://ntfs-3g.org/support.html#unprivileged
    in the website of ntfs-3g is: Solution: Use at least NTFS-3G 1.2506 with setuid-root set and make sure the user has access rights to the volume and mount point.

    but: my ntfs-3g version is: 2009.2.1 and set this with setuid say this:

    Code:
    raphael@dracona:~$ mount /mnt/winXP/
    Mount is denied because setuid and setgid root ntfs-3g is insecure with the
    external FUSE library. Either remove the setuid/setgid bit from the binary
    or rebuild NTFS-3G with integrated FUSE support and make it setuid root.
    Please see more information at http://ntfs-3g.org/support.html#unprivileged
    hmm, it seems to be more difficult...

    any other idea?

  5. #5
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,630
    You and I seem to be having the exact same problem... Link
    Linux Mint + IceWM Registered: #371367 New Members: click here

  6. #6
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,592
    If you have sudo privileges, you should be able to mount this without the setuid bit. As the error message shows in raphi078's posting, you can fix that by rebuilding the ntfs-3g driver and mounter with FUSE support.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •