Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #101102 > unrolled thread

Mac Question

Started bytdsperth@gmail.com
First post2016-01-01 02:56 -0800
Last post2016-01-01 10:02 -0800
Articles 6 — 4 participants

Back to article view | Back to comp.lang.python


Contents

  Mac Question tdsperth@gmail.com - 2016-01-01 02:56 -0800
    Re: Mac Question Chris Angelico <rosuav@gmail.com> - 2016-01-01 22:13 +1100
      Re: Mac Question tdsperth@gmail.com - 2016-01-01 03:27 -0800
        Re: Mac Question Chris Angelico <rosuav@gmail.com> - 2016-01-01 22:47 +1100
    Re: Mac Question William Ray Wing <wrw@mac.com> - 2016-01-01 10:21 -0500
      Re: Mac Question Michael Vilain <vilain@NOspamcop.net> - 2016-01-01 10:02 -0800

#101102 — Mac Question

Fromtdsperth@gmail.com
Date2016-01-01 02:56 -0800
SubjectMac Question
Message-ID<5d9432dc-220f-457b-945c-a864e7255520@googlegroups.com>
Hi All

I am trying to create a directory on a windows drive from my macbook air with python but get a permissions error because the windows ntfs drive is read only - does anyone know away to overcome this issue - I have looked for a utility but have yet to find an answer.

Regards and Happy New Year

Colin

[toc] | [next] | [standalone]


#101103

FromChris Angelico <rosuav@gmail.com>
Date2016-01-01 22:13 +1100
Message-ID<mailman.137.1451646804.11925.python-list@python.org>
In reply to#101102
On Fri, Jan 1, 2016 at 9:56 PM,  <tdsperth@gmail.com> wrote:
> Hi All
>
> I am trying to create a directory on a windows drive from my macbook air with python but get a permissions error because the windows ntfs drive is read only - does anyone know away to overcome this issue - I have looked for a utility but have yet to find an answer.
>

This isn't a Python question - it's a Windows question. I'll help as
best I can, but you might find better results elsewhere.

Is this a drive you've mounted across a network, or is it something
local to your computer? Is it a hard drive, a Flash drive (USB stick),
or some other device?

What are the mount options? (Typing 'mount' in a terminal might tell
you this.) Who owns the files and directories? Can you create stuff on
there using 'sudo'?

ChrisA

[toc] | [prev] | [next] | [standalone]


#101104

Fromtdsperth@gmail.com
Date2016-01-01 03:27 -0800
Message-ID<823e9751-2ca3-470c-8f2c-20ab82f09ed9@googlegroups.com>
In reply to#101103
On Friday, January 1, 2016 at 7:13:41 PM UTC+8, Chris Angelico wrote:
> On Fri, Jan 1, 2016 at 9:56 PM,  <tdsperth@gmail.com> wrote:
> > Hi All
> >
> > I am trying to create a directory on a windows drive from my macbook air with python but get a permissions error because the windows ntfs drive is read only - does anyone know away to overcome this issue - I have looked for a utility but have yet to find an answer.
> >
> 
> This isn't a Python question - it's a Windows question. I'll help as
> best I can, but you might find better results elsewhere.
> 
> Is this a drive you've mounted across a network, or is it something
> local to your computer? Is it a hard drive, a Flash drive (USB stick),
> or some other device?
> 
> What are the mount options? (Typing 'mount' in a terminal might tell
> you this.) Who owns the files and directories? Can you create stuff on
> there using 'sudo'?
> 
> ChrisA

Hi ChrisA

I know it is not a python issue - I just thought some other python programmers might have come across the problem.

I connect to a drive in a windows 10 computer smb://192.168.50.58/c from my mac but the drive is read only - i am looking for away to make the drive writable so  I can make a directory on the drive from my python script. 

Regards

Colin

[toc] | [prev] | [next] | [standalone]


#101105

FromChris Angelico <rosuav@gmail.com>
Date2016-01-01 22:47 +1100
Message-ID<mailman.138.1451648875.11925.python-list@python.org>
In reply to#101104
On Fri, Jan 1, 2016 at 10:27 PM,  <tdsperth@gmail.com> wrote:
> I connect to a drive in a windows 10 computer smb://192.168.50.58/c from my mac but the drive is read only - i am looking for away to make the drive writable so  I can make a directory on the drive from my python script.
>

You'll have to look into the permissions setup on both the Windows
computer and the Mac. Try connecting from a different computer to that
server, or from that Mac to a different server, and see what's going
on.

ChrisA

[toc] | [prev] | [next] | [standalone]


#101106

FromWilliam Ray Wing <wrw@mac.com>
Date2016-01-01 10:21 -0500
Message-ID<mailman.139.1451665323.11925.python-list@python.org>
In reply to#101102
> On Jan 1, 2016, at 5:56 AM, tdsperth@gmail.com wrote:
> 
> Hi All
> 
> I am trying to create a directory on a windows drive from my macbook air with python but get a permissions error because the windows ntfs drive is read only - does anyone know away to overcome this issue - I have looked for a utility but have yet to find an answer.
> 
> Regards and Happy New Year
> 
> Colin
> 
> -- 
> https://mail.python.org/mailman/listinfo/python-list

OS-X can read NTFS drives, but by default cannot write to them, hence the read-only mount.  If you have control over that external drive you can format it (on OS-X) as ExFAT, and it can then be written to and read from by both OS-X and Windows.  If the drive must be formatted NTFS, you can turn on writing via terminal commands (which works ONLY on a volume-by-volume basis) or using a third party utility.  There is a pretty good summary here:

  http://www.cnet.com/news/how-to-manually-enable-ntfs-read-and-write-in-os-x/

-Bill

[toc] | [prev] | [next] | [standalone]


#101107

FromMichael Vilain <vilain@NOspamcop.net>
Date2016-01-01 10:02 -0800
Message-ID<vilain-34AF36.10025601012016@news.individual.net>
In reply to#101106
In article <mailman.139.1451665323.11925.python-list@python.org>,
 William Ray Wing <wrw@mac.com> wrote:

> > On Jan 1, 2016, at 5:56 AM, tdsperth@gmail.com wrote:
> > 
> > Hi All
> > 
> > I am trying to create a directory on a windows drive from my macbook air 
> > with python but get a permissions error because the windows ntfs drive is 
> > read only - does anyone know away to overcome this issue - I have looked 
> > for a utility but have yet to find an answer.
> > 
> > Regards and Happy New Year
> > 
> > Colin
> > 
> > -- 
> > https://mail.python.org/mailman/listinfo/python-list
> 
> OS-X can read NTFS drives, but by default cannot write to them, hence the 
> read-only mount.  If you have control over that external drive you can format 
> it (on OS-X) as ExFAT, and it can then be written to and read from by both 
> OS-X and Windows.  If the drive must be formatted NTFS, you can turn on 
> writing via terminal commands (which works ONLY on a volume-by-volume basis) 
> or using a third party utility.  There is a pretty good summary here:
> 
>   http://www.cnet.com/news/how-to-manually-enable-ntfs-read-and-write-in-os-x/
> 
> -Bill

I think the OP can't access the volume that's mounted through SMB 
through python rather than attempting to mount it locally on the Mac as 
an NTFS volume.

SMB/CIFS is a protocol for mounting stuff on Windows boxes.  The 
permissions issues may be the authentication between the versions of SMB 
running on Windows 10 vs. what's running on Mac OS.

First off the Mac needs to be able to mount the SMB volume and you 
should see it in the Finder.  If that isn't happening, you haven't setup 
SMB on MacOS to talk to the Windows box yet.

This article describes the issue with Mavericks (10.9) and Windows:

https://discussions.apple.com/thread/5467191

-- 
DeeDee, don't press that button!  DeeDee!  NO!  Dee...
[I filter all Goggle Groups posts, so any reply may be automatically ignored]

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web