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