LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-17-2008, 07:20 PM   #1
Cotobear
Member
 
Registered: Nov 2007
Location: Canada
Distribution: Slackware 12.0
Posts: 100

Rep: Reputation: 16
Auto-mounting external NTFS USB hard drive.


The problem:
Auto-mounting an NTFS external hard drive on Slackware 12.0 & Fluxbox 1.00 using Ivman and ntfs-3g.

The question:
Essentially, what is the best way to do this? Specifically, I have ivman working fine except that I require root privileges to use ntfs-3g (ntfs-3g-mount: failed to open /dev/fuse: Permission denied) which means if I load ivman through the startup script, it will not mount the hard drive. (Unless there is some way of accessing root privileges in the startup script? I tried "exec sudo ivman &" but that sure didn't work.)

I've noticed one such work around which would be to create a new group, call it fuse, and chgrp /dev/fuse and add myself to this group. Is this viable? Or is there a better solution?

One last thing:
Does anyone have some example IvmConfig*.xml files for examples? I have most of it going great, but I could always use some more resources.
 
Old 03-17-2008, 11:26 PM   #2
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
Originally Posted by Cotobear View Post
Specifically, I have ivman working fine except that I require root privileges to use ntfs-3g (ntfs-3g-mount: failed to open /dev/fuse: Permission denied)
SNIPPED
I've noticed one such work around which would be to create a new group, call it fuse, and chgrp /dev/fuse and add myself to this group. Is this viable? Or is there a better solution?
That should not be necessary, as the permission denied error shouldn't be happening.
If you're on Slackware -current, you should have /etc/udev/rules.d/99-fuse.rules causing the /dev/fuse node to have 0666 permissions.

If you're on 12.0 or older, then you should complain to whomever packaged fuse for you, as it's broken.

Code:
liberty $ cat /etc/udev/rules.d/99-fuse.rules 
KERNEL=="fuse", MODE="0666"
 
Old 03-18-2008, 11:15 PM   #3
Cotobear
Member
 
Registered: Nov 2007
Location: Canada
Distribution: Slackware 12.0
Posts: 100

Original Poster
Rep: Reputation: 16
Thanks rworkman. I realized I could simplify my life a little bit if I edited the sudoers file to allow mounting the hdd without a password. It seems to have taken care of any problems that I was having.

Though I'm not sure how good of an idea it is to allow mounting without a password. Live and learn I guess.
 
Old 06-10-2009, 11:41 AM   #4
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
Try this.
 
Old 06-10-2009, 12:29 PM   #5
Cotobear
Member
 
Registered: Nov 2007
Location: Canada
Distribution: Slackware 12.0
Posts: 100

Original Poster
Rep: Reputation: 16
Wow! Now that is some delayed response time .

Thanks though quanta. I'm not sure it'll help much at this point, but who knows.
 
Old 02-07-2010, 02:46 AM   #6
browseanddownload
LQ Newbie
 
Registered: Feb 2010
Posts: 2

Rep: Reputation: 0
Set suid bit of 'ntfs-3g'

I came across this thread while googling for a solution for the similar problem. I was hitting on the same error while trying to mount my local windows partition while running Debian.

Though I did not find a lead here I discovered later that my ntfs-3g binary no longer had it's suid bit set. Resetting it's suid bit restored the behavior of being able to local partitions without being root.

Code:
$ chmod 4755 /usr/bin/ntfs-3g
I thought that might help you in case you are still practicing using 'sudo' while mounting. Also I think the solution might be the same even though you use Slackware. Hope this helps

My actual problem is now to discover how and why the 'ntfs-3g' binary's suid bit keeps resetting itself every time I boot.

That the suid bit has to set so that unprivileged users can mount was learnt from "How to mount local ntfs partitions without being root"

-Abhijith Madhav

Last edited by browseanddownload; 02-07-2010 at 02:50 AM.
 
  


Reply

Tags
ntfs3g, permission denied


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mounting external hard drive through usb lackita Linux - Hardware 6 02-25-2008 11:10 PM
USB External Hard Drive not mounting bkone Linux - Hardware 1 10-19-2007 10:45 AM
Problems Mounting USB External Drive NTFS!!! dec009 Linux - Hardware 6 08-08-2007 01:17 AM
Trouble mounting external usb hard drive in openSuSe 10.2 birdofprey Linux - Hardware 3 04-19-2007 12:02 AM
Mounting root filesystem from an external USB hard drive? ChrisHart Linux - Laptop and Netbook 6 04-02-2005 10:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration