Re: [gentoo-user] Question regarding dual boot accessibility... (SOLVED)

2007-02-27 Thread Chris
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

I'd like to thank Mick and Peter for their replies to this question.
I've been able to solve the problem with users not being able to access
the NTFS volume.  I will consider the ntfs3g package, so I can write to
that partition.

Regards,
Chris
-BEGIN PGP SIGNATURE-

iD8DBQFF5DGPUx1jS/ORyCsRCHF5AJ4iMWA5Uw+cFS5U9JQGG1wBPSyyqQCff0aQ
4ZtVuHZD9ArES60mcJvPD2c=
=G4q0
-END PGP SIGNATURE-
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Question regarding dual boot accessibility...

2007-02-26 Thread Mick

On 26/02/07, Chris [EMAIL PROTECTED] wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Hello,

I have a dual boot windows / Gentoo system.  I have my NTFS (windows)
main partition listed in fstab with user,noauto,nosuid, noatime.  A
normal user can mount and umount it, but cannot change directories, look
at files, etc. as they'll get a permission denied error.  When I list
the files and dirs, they all show up as belonging to root:root, with
no access for group and others.


You may want to try speciying umask, or uid as described here:

http://gentoo-wiki.com/HOWTO_Mount_Windows_partitions_%28DOS%2C_FAT%2C_NTFS%29


My question is:  Is there a way to allow normal users to at least read
these files and change dirs, short of chown and/or chmod on the NTFS
partition?


and/or here:

http://gentoo-wiki.com/TIP_Fix_NTFS_Permissions

HTH.
--
Regards,
Mick
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Question regarding dual boot accessibility...

2007-02-26 Thread Alan McKinnon
On Monday 26 February 2007, Chris wrote:
 Hello,

 I have a dual boot windows / Gentoo system.  I have my NTFS (windows)
 main partition listed in fstab with user,noauto,nosuid, noatime.  A
 normal user can mount and umount it, but cannot change directories,
 look at files, etc. as they'll get a permission denied error.  When I
 list the files and dirs, they all show up as belonging to
 root:root, with no access for group and others.

 My question is:  Is there a way to allow normal users to at least
 read these files and change dirs, short of chown and/or chmod on the
 NTFS partition?

ntfs does not understand unix permissions, so there is no concept of a 
unix owner and group. You use the uid and gid options to fudge one - 
normally root:root is ok.

Then to set permissions, use the umask option. 0555 should be OK - 
read/execute for all. It must be 5 otherwise you can't cd into a 
directory.

Actually you want fmask and dmask options like as in vfat, but mount -t 
ntfs doesn't support that, so you have to make do with umask.

alan




-- 
Optimists say the glass is half full,
Pessimists say the glass is half empty,
Developers say wtf is the glass twice as big as it needs to be?

Alan McKinnon
alan at linuxholdings dot co dot za
+27 82, double three seven, one nine three five
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Question regarding dual boot accessibility...

2007-02-26 Thread Mick
On Monday 26 February 2007 19:18, Alan McKinnon wrote:
 On Monday 26 February 2007, Chris wrote:
  Hello,
 
  I have a dual boot windows / Gentoo system.  I have my NTFS (windows)
  main partition listed in fstab with user,noauto,nosuid, noatime.  A
  normal user can mount and umount it, but cannot change directories,
  look at files, etc. as they'll get a permission denied error.  When I
  list the files and dirs, they all show up as belonging to
  root:root, with no access for group and others.
 
  My question is:  Is there a way to allow normal users to at least
  read these files and change dirs, short of chown and/or chmod on the
  NTFS partition?

 ntfs does not understand unix permissions, so there is no concept of a
 unix owner and group. You use the uid and gid options to fudge one -
 normally root:root is ok.

 Then to set permissions, use the umask option. 0555 should be OK -
 read/execute for all. It must be 5 otherwise you can't cd into a
 directory.

 Actually you want fmask and dmask options like as in vfat, but mount -t
 ntfs doesn't support that, so you have to make do with umask.

Whilst you're at it you may want to consider ntfs-3g which can also write to 
ntfs:

 http://packages.gentoo.org/search/?sstring=ntfs3g

I haven't had any corruption or failures so far (keeps fingers crossed) but I 
am not sure that I would trust a production environment to it.  You mileage 
may vary.
-- 
Regards,
Mick


pgp6b7IQtrurK.pgp
Description: PGP signature