Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: ntfs-3g access rights
Date: Mon, 04 Oct 2010 06:26:25
Message-Id: 201010040726.16967.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] Re: ntfs-3g access rights by Nganon
1 On Sunday 03 October 2010 20:48:09 Nganon wrote:
2 > On Sun, Oct 3, 2010 at 10:19 PM, Mick <michaelkintzios@×××××.com> wrote:
3 > > On Sunday 03 October 2010 20:00:23 Alan McKinnon wrote:
4 > [..]
5 >
6 > > > Assuming your uid is 1000, primary group 1000, you can then use options
7 > > > something like:
8 > > >
9 > > > uid=1000,gid=1000,dmask=0007,fmask=0117
10 > > >
11 > > > which gives a sane unix-like set of permissions. Nothing close to
12 > > > windows but a) you don't have to be root to use it and b) the www user
13 > > > can't trash your files on the ntfs volume.
14 > > >
15 > > > Like I said, I've never used ntfs-3g but the above is a pretty common
16 > > > permissions model and it's reasonable to assume ntfs-3g probably
17 > > > implements it or something similar. As always, read the fine docs and
18 > > > YMMV.
19 > >
20 > > Thanks Neil, much appreciated. I'll have a play with the dmask, fmask
21 > > settings as you suggest and see what gives.
22 > > --
23 > > Regards,
24 > > Mick
25 >
26 > Here it is in action...
27 >
28 > Sun Oct 03 | 22:38:57 ~ $ grep ntfs /etc/fstab
29 > #/dev/hda3 /mnt/hda3 ntfs-3g
30 > dmask=007,fmask=117,gid=6,locale=en_US.UTF-8 0 0
31 > Sun Oct 03 | 22:39:11 ~ $ ll /mnt/hda3/
32 > total 461
33 > -rw-rw---- 1 root disk 0 Mar 7 2004 AUTOEXEC.BAT
34 > -rw-rw---- 1 root disk 4952 Aug 4 2004 Bootfont.bin
35 > -rw-rw---- 1 root disk 210 Apr 28 13:54 boot.ini
36 > -rw-rw---- 1 root disk 0 Mar 7 2004 CONFIG.SYS
37 > drwxrwx--- 1 root disk 4096 Feb 20 2010 Documents and Settings
38 > drwxrwx--- 1 root disk 32768 Dec 25 2009 f66ab2f450887cbdbce72b4ac54c5a
39 > -rw-rw---- 1 root disk 0 Mar 7 2004 IO.SYS
40 > drwxrwx--- 1 root disk 4096 Mar 27 2009 MinGW
41 > -rw-rw---- 1 root disk 166 Dec 13 2009 mp4log.txt
42 > -rw-rw---- 1 root disk 0 Mar 7 2004 MSDOS.SYS
43 > drwxrwx--- 1 root disk 0 Mar 29 2010 My Photo
44 > drwxrwx--- 1 root disk 0 Mar 29 2010 My Video
45 > drwxrwx--- 1 root disk 4096 Jul 11 2009 nrn71
46 > -rw-rw---- 1 root disk 47564 Aug 4 2004 NTDETECT.COM
47 > -rw-rw---- 1 root disk 250560 Sep 28 2008 ntldr
48 > drwxrwx--- 1 root disk 28672 Apr 28 13:43 Program Files
49 > drwxrwx--- 1 root disk 4096 Mar 9 2004 pyqt
50 > drwxrwx--- 1 root disk 12288 Dec 7 2009 Python25
51 > drwxrwx--- 1 root disk 4096 Jul 10 2009 Python31
52 > drwxrwx--- 1 root disk 0 Sep 12 2008 Qt
53 > drwxrwx--- 1 root disk 0 Apr 28 13:35 RECYCLER
54 > drwxrwx--- 1 root disk 4096 Jan 7 2010 System Volume Information
55 > drwxrwx--- 1 root disk 61440 Apr 28 13:43 WINDOWS
56 > Sun Oct 03 | 22:39:42 ~ $
57 >
58 > ..huh! I just noticed, it seems I havent booted the damn thing since
59 > August.. [snigger]
60 >
61 > Btw, his name is Alan, not Neil. WB Alan. :)
62
63 Of course Alan! Neil sounds totally different ... Sorry, should have gone to
64 bed earlier!
65 --
66 Regards,
67 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
[gentoo-user] Re: ntfs-3g access rights James <wireless@×××××××××××.com>