Python Forum
Get File Ownership under Windows
Thread Rating:
  • 2 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get File Ownership under Windows
#7
(Mar-13-2017, 09:26 PM)Ofnuts Wrote: http://stackoverflow.com/questions/18306...-in-python

I'm going to give this half a thumbs up as it only addresses half the problem, the other half is actually moving the files.  I believe (not 100% sure) that you have to be the user (owner of the file) and even then only to a directory for which you have 'write' privileges or greater, or you need administrative privileges (for linux, think sudo) or possibly even be logged in as Administrator (for linux, think root).  Note that administrative privileges is not the same as Administrator, which is why, by default, Windows disables the Administrator, much like many Linux versions hide the 'root' login.  An example, on my Windows 10 machine, I have administrative permissions, yet I am not allowed to write to the 'hosts' file, for that, I have to login as 'Administrator'.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply


Messages In This Thread
Get File Ownership under Windows - by newatpython - Mar-13-2017, 05:55 PM
RE: Get File Ownership under Windows - by Larz60+ - Mar-13-2017, 07:10 PM
RE: Get File Ownership under Windows - by wavic - Mar-13-2017, 07:50 PM
RE: Get File Ownership under Windows - by zivoni - Mar-13-2017, 08:02 PM
RE: Get File Ownership under Windows - by wavic - Mar-13-2017, 08:33 PM
RE: Get File Ownership under Windows - by Ofnuts - Mar-13-2017, 09:26 PM
RE: Get File Ownership under Windows - by sparkz_alot - Mar-24-2017, 01:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  batch file for running python scipt in Windows shell MaartenRo 2 2,108 Jan-21-2022, 02:36 PM
Last Post: MaartenRo
  Using a .bat file to execute simple anaconda commands in Windows 10 gacg1 0 4,869 Nov-30-2020, 03:24 PM
Last Post: gacg1
  Q on file ownership ebolisa 2 2,253 Jan-02-2020, 05:44 PM
Last Post: ebolisa
  opening a file from a windows desktop folder- error opening file Charan007 1 3,079 Dec-06-2018, 11:50 AM
Last Post: buran
  python 2.7 access denied when writing a file to Windows kavise 2 11,508 Feb-13-2018, 08:30 PM
Last Post: kavise
  run .py file on Windows aidanikuz 4 4,828 Sep-19-2017, 02:33 PM
Last Post: aidanikuz
  Python 3.x Windows 7 registry file associations broken pixhellmann 2 5,217 Sep-12-2017, 09:14 PM
Last Post: Larz60+
  File access confusion python windows PickyBiker 0 3,456 May-08-2017, 05:36 PM
Last Post: PickyBiker
  Windows: Put File automatically under Cursor for Drag & Drop sym 1 3,606 Jan-13-2017, 04:55 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020