LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 12-04-2010, 06:49 AM   #1
xirtyllo
LQ Newbie
 
Registered: Oct 2009
Location: Netherlands
Distribution: Slackware 13
Posts: 23

Rep: Reputation: 0
Question HOW-TO allow normal users to write on NTFS external hard disk?


hello,
i have installed Salix 13.1 LXDE version (Salix 13.1 is compatible with Slackware 13.1).

I must use various external hard disks formatted with NTFS.
The hard disks are automatically recognized and mounted with PCmanFM file manager,
but only user root can write on them.

How can I allow normal users to write on automounted external ntfs drives?

Thank You
Tommaso

Last edited by xirtyllo; 12-04-2010 at 06:51 AM.
 
Old 12-04-2010, 09:07 AM   #2
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 538
Blog Entries: 7

Rep: Reputation: 54
If I am not mistaken the user has to be in the correct group "disk" to be able to write.
If thats not the case I found this from the slackwiki

Code:
Allowing users
NTFS-3G can let users other than root mount NTFS filesystems, but you'll have to set the suid flag in /bin/ntfs-3g. This applies even when using fstab with the users option.
So for this to work:
  /dev/sda1        /mnt/pendrive   ntfs-3g     noauto,users       0   0
You have to do (as root):
  # chmod 4755 /bin/ntfs-3g
http://www.slackwiki.org/NTFS-3G

Last edited by SeRi@lDiE; 12-04-2010 at 09:09 AM.
 
Old 12-04-2010, 06:14 PM   #3
rg3
Member
 
Registered: Jul 2007
Distribution: Slackware Linux
Posts: 508

Rep: Reputation: Disabled
First off, what I'm going to say applies to Slackware, so I have no idea if this applies to Salix too.

I'm pretty sure activating the SUID bit in /bin/ntfs-3g is not needed and you don't need to belong to the disk group. I have an external hard drive with a NTFS filesystem and I can use it normally. HAL mounts it and I'm able to write to it. I don't recall doing anything special to be able to handle this. Have you tried giving everyone "total control" to every file in the filesystem from a Windows machine?

Code:
$ groups
users lp uucp audio video cdrom plugdev power netdev
$ ls -l /bin/ntfs-3g
-rwxr-xr-x 1 root root 50392 Nov  6 22:09 /bin/ntfs-3g
 
Old 12-04-2010, 10:46 PM   #4
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
You definitely don't need to be in the 'disk' group, and while suid might be useful in some cases for the ntfs-3g binary, it's not needed for what you want. On stock Slackware, this "just works" as you expect.
 
  


Reply

Tags
automount, ntfs, ntfs3g, user, write


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
Mount an external ntfs usb hard disk dmpop Mandriva 5 03-03-2013 10:45 AM
Mounting external usb hard drive NTFS in write mode zermon Linux - Hardware 4 02-20-2010 12:26 PM
need to write to my NT4 server ntfs share as normal users kep51 Mandriva 3 06-13-2006 12:03 PM
mounting hard drive partition write for normal users jojotx0 Linux - Hardware 1 04-19-2005 12:10 PM
Cant read/write to second hard disk under normal user Nukem Linux - General 8 01-28-2004 07:03 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration