1 |
On Sun, Oct 3, 2010 at 10:19 PM, Mick <michaelkintzios@×××××.com> wrote: |
2 |
> |
3 |
> On Sunday 03 October 2010 20:00:23 Alan McKinnon wrote: |
4 |
|
5 |
[..] |
6 |
|
7 |
> > Assuming your uid is 1000, primary group 1000, you can then use options |
8 |
> > something like: |
9 |
> > |
10 |
> > uid=1000,gid=1000,dmask=0007,fmask=0117 |
11 |
> > |
12 |
> > which gives a sane unix-like set of permissions. Nothing close to windows |
13 |
> > but a) you don't have to be root to use it and b) the www user can't trash |
14 |
> > your files on the ntfs volume. |
15 |
> > |
16 |
> > Like I said, I've never used ntfs-3g but the above is a pretty common |
17 |
> > permissions model and it's reasonable to assume ntfs-3g probably implements |
18 |
> > it or something similar. As always, read the fine docs and 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. :) |