Re: Reading the access attributes of directories in Windows

2010-08-28 Thread Rami Chowdhury
On Fri, Aug 27, 2010 at 14:16, Nobody nob...@nowhere.com wrote: On Fri, 27 Aug 2010 13:28:46 +0600, Rami Chowdhury wrote: Having this as a separate permission allows normal users to add entries to log files but not to erase existing entries. Unix/Linux systems can do this already. Ooh, I

Re: Reading the access attributes of directories in Windows

2010-08-28 Thread Rami Chowdhury
On Sat, Aug 28, 2010 at 05:07, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message mailman.99.1282894128.29448.python-l...@python.org, Rami Chowdhury wrote: On Wed, Aug 25, 2010 at 05:04, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message

Re: Reading the access attributes of directories in Windows

2010-08-27 Thread Rami Chowdhury
On Wed, Aug 25, 2010 at 05:04, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message pan.2010.08.22.04.26.33.547...@nowhere.com, Nobody wrote: Having this as a separate permission allows normal users to add entries to log files but not to erase existing entries. Unix/Linux

Re: Reading the access attributes of directories in Windows

2010-08-27 Thread Nobody
On Fri, 27 Aug 2010 13:28:46 +0600, Rami Chowdhury wrote: Having this as a separate permission allows normal users to add entries to log files but not to erase existing entries. Unix/Linux systems can do this already. Ooh, I didn't know that -- what combination of permissions would I have

Re: Reading the access attributes of directories in Windows

2010-08-27 Thread Lawrence D'Oliveiro
In message mailman.99.1282894128.29448.python-l...@python.org, Rami Chowdhury wrote: On Wed, Aug 25, 2010 at 05:04, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message pan.2010.08.22.04.26.33.547...@nowhere.com, Nobody wrote: Having this as a separate permission allows

Re: Reading the access attributes of directories in Windows

2010-08-27 Thread Lawrence D'Oliveiro
In message mailman.2396.1282396255.1673.python-l...@python.org, Tim Golden wrote: Can you run Python from within a Run-As-Administrator command prompt? Kind of worrying, isn’t it, when the answer to “my program won’t work” is “give it more privileges”? Defeats the point of having such a

Re: Reading the access attributes of directories in Windows

2010-08-24 Thread Lawrence D'Oliveiro
In message pan.2010.08.19.23.07.11.984...@nowhere.com, Nobody wrote: 1. There are far more permission types than just rwx. One thing Windows lacks is the ability to replace files that are currently open by another process. This is why Windows software updates require so many reboots. On

Re: Reading the access attributes of directories in Windows

2010-08-24 Thread Lawrence D'Oliveiro
In message pan.2010.08.22.04.26.33.547...@nowhere.com, Nobody wrote: Having this as a separate permission allows normal users to add entries to log files but not to erase existing entries. Unix/Linux systems can do this already. -- http://mail.python.org/mailman/listinfo/python-list

Re: Reading the access attributes of directories in Windows

2010-08-23 Thread vsoler
On Aug 21, 8:10 am, Tim Golden m...@timgolden.me.uk wrote: On 20/08/2010 11:54 PM, vsoler wrote: I'am testing your library. I am mainly interested in knowing the access attributes of directories in the local(C:\) or shared unit(W:\) of my system. Using your script with 'c:\\' I get an

Re: Reading the access attributes of directories in Windows

2010-08-23 Thread Tim Golden
On 23/08/2010 14:55, vsoler wrote: On Aug 21, 8:10 am, Tim Goldenm...@timgolden.me.uk wrote: On 20/08/2010 11:54 PM, vsoler wrote: I'am testing your library. I am mainly interested in knowing the access attributes of directories in the local(C:\) or shared unit(W:\) of my system. Using

Re: Reading the access attributes of directories in Windows

2010-08-21 Thread Tim Golden
On 20/08/2010 11:54 PM, vsoler wrote: I'am testing your library. I am mainly interested in knowing the access attributes of directories in the local(C:\) or shared unit(W:\) of my system. Using your script with 'c:\\' I get an error message saying... 'file exists but it is a directory' and I

Re: Reading the access attributes of directories in Windows

2010-08-21 Thread vsoler
On Aug 21, 8:10 am, Tim Golden m...@timgolden.me.uk wrote: On 20/08/2010 11:54 PM, vsoler wrote: I'am testing your library. I am mainly interested in knowing the access attributes of directories in the local(C:\) or shared unit(W:\) of my system. Using your script with 'c:\\' I get an

Re: Reading the access attributes of directories in Windows

2010-08-21 Thread vsoler
On Aug 21, 8:10 am, Tim Golden m...@timgolden.me.uk wrote: On 20/08/2010 11:54 PM, vsoler wrote: I'am testing your library. I am mainly interested in knowing the access attributes of directories in the local(C:\) or shared unit(W:\) of my system. Using your script with 'c:\\' I get an

Re: Reading the access attributes of directories in Windows

2010-08-21 Thread Tim Golden
On 21/08/2010 1:01 PM, vsoler wrote: Personally, I am impressed of the power of python, your winsys library, and overall, how easy it is to customize the scripting of one's day to day needs. Glad you find it useful... I have started testing your first script from winsys import fs,

Re: Reading the access attributes of directories in Windows

2010-08-21 Thread Tim Golden
On 21/08/2010 1:01 PM, vsoler wrote: I am using a system in the Spanish language. As you can see in the last line, 'Acceso denegado' or 'Access denied' even though the flag ignore_access_errors is set to True. Sorry, meant to reply to this point as well. The ignore_access_errors flag only

Re: Reading the access attributes of directories in Windows

2010-08-21 Thread Nobody
On Fri, 20 Aug 2010 19:41:44 +0200, Thomas Jollans wrote: Create Folders and Delete Subfolders and Files correspond to having write permission on a directory. How does append differ from write? If you have appending permissions, but not writing ones, is it impossible to seek? Or is there a

Re: Reading the access attributes of directories in Windows

2010-08-20 Thread Tim Golden
I currently do not have subversion access in my PC. I could try to install a free copy of it. But it you could ptovide an installer, it certainly would do things easier. Please let me know if it is possible. Vicente, can you just confirm that you received the installer I sent offlist? I'll try

Re: Reading the access attributes of directories in Windows

2010-08-20 Thread vsoler
On Aug 20, 9:36 am, Tim Golden m...@timgolden.me.uk wrote: I currently do not have subversion access in my PC. I could try to install a free copy of it. But it you could ptovide an installer, it certainly would do things easier. Please let me know if it is possible. Vicente, can you just

Re: Reading the access attributes of directories in Windows

2010-08-20 Thread vsoler
On Aug 20, 9:36 am, Tim Golden m...@timgolden.me.uk wrote: I currently do not have subversion access in my PC. I could try to install a free copy of it. But it you could ptovide an installer, it certainly would do things easier. Please let me know if it is possible. Vicente, can you just

Re: Reading the access attributes of directories in Windows

2010-08-20 Thread vsoler
On Aug 20, 4:26 pm, vsoler vicente.so...@gmail.com wrote: On Aug 20, 9:36 am, Tim Golden m...@timgolden.me.uk wrote: I currently do not have subversion access in my PC. I could try to install a free copy of it. But it you could ptovide an installer, it certainly would do things easier.

Re: Reading the access attributes of directories in Windows

2010-08-20 Thread Tim Golden
On 20/08/2010 15:49, vsoler wrote: On Aug 20, 4:26 pm, vsolervicente.so...@gmail.com wrote: On Aug 20, 9:36 am, Tim Goldenm...@timgolden.me.uk wrote: I currently do not have subversion access in my PC. I could try to install a free copy of it. But it you could ptovide an installer, it

Re: Reading the access attributes of directories in Windows

2010-08-20 Thread vsoler
On Aug 20, 5:10 pm, Tim Golden m...@timgolden.me.uk wrote: On 20/08/2010 15:49, vsoler wrote: On Aug 20, 4:26 pm, vsolervicente.so...@gmail.com  wrote: On Aug 20, 9:36 am, Tim Goldenm...@timgolden.me.uk  wrote: I currently do not have subversion access in my PC. I could try to install

Re: Reading the access attributes of directories in Windows

2010-08-20 Thread vsoler
On Aug 20, 5:10 pm, Tim Golden m...@timgolden.me.uk wrote: On 20/08/2010 15:49, vsoler wrote: On Aug 20, 4:26 pm, vsolervicente.so...@gmail.com  wrote: On Aug 20, 9:36 am, Tim Goldenm...@timgolden.me.uk  wrote: I currently do not have subversion access in my PC. I could try to install

Re: Reading the access attributes of directories in Windows

2010-08-20 Thread Tim Golden
On 20/08/2010 5:10 PM, vsoler wrote: On Aug 20, 5:10 pm, Tim Goldenm...@timgolden.me.uk wrote: To decode the permission bit-strings to vaguely meaningful names: code import os, sys from winsys import fs dacl = fs.file (sys.executable).security ().dacl for permission in dacl: print

Re: Reading the access attributes of directories in Windows

2010-08-20 Thread Thomas Jollans
On Friday 20 August 2010, it occurred to Nobody to exclaim: Unix lacks the Append Data permission for files, and the Create Files, Create Folders and Delete Subfolders and Files correspond to having write permission on a directory. How does append differ from write? If you have appending

Re: Reading the access attributes of directories in Windows

2010-08-20 Thread vsoler
On Aug 20, 7:42 pm, Tim Golden m...@timgolden.me.uk wrote: On 20/08/2010 5:10 PM, vsoler wrote: On Aug 20, 5:10 pm, Tim Goldenm...@timgolden.me.uk  wrote: To decode the permission bit-strings to vaguely meaningful names: code import os, sys from winsys import fs dacl = fs.file

Reading the access attributes of directories in Windows

2010-08-19 Thread vsoler
Hello everyone! I need to read, for each of the directories in a shared file server unit, who has access to the directories and what type of access privileges. This is something that I can easily do interactively in my Windows Document Explorer by right clicking a single directory, clicking on

Re: Reading the access attributes of directories in Windows

2010-08-19 Thread Tim Golden
On 19/08/2010 4:55 PM, vsoler wrote: I need to read, for each of the directories in a shared file server unit, who has access to the directories and what type of access privileges. This is something that I can easily do interactively in my Windows Document Explorer by right clicking a single

Re: Reading the access attributes of directories in Windows

2010-08-19 Thread vsoler
On Aug 19, 8:55 pm, Tim Golden m...@timgolden.me.uk wrote: On 19/08/2010 4:55 PM, vsoler wrote: I need to read, for each of the directories in a shared file server unit, who has access to the directories and what type of access privileges. This is something that I can easily do

Re: Reading the access attributes of directories in Windows

2010-08-19 Thread Tim Golden
On 19/08/2010 9:17 PM, vsoler wrote: On Aug 19, 8:55 pm, Tim Goldenm...@timgolden.me.uk wrote: On 19/08/2010 4:55 PM, vsoler wrote: I need to read, for each of the directories in a shared file server unit, who has access to the directories and what type of access privileges. This is

Re: Reading the access attributes of directories in Windows

2010-08-19 Thread vsoler
On Aug 19, 10:59 pm, Tim Golden m...@timgolden.me.uk wrote: On 19/08/2010 9:17 PM, vsoler wrote: On Aug 19, 8:55 pm, Tim Goldenm...@timgolden.me.uk  wrote: On 19/08/2010 4:55 PM, vsoler wrote: I need to read, for each of the directories in a shared file server unit, who has access to

Re: Reading the access attributes of directories in Windows

2010-08-19 Thread Emile van Sebille
On 8/19/2010 2:17 PM vsoler said... On Aug 19, 10:59 pm, Tim Goldenm...@timgolden.me.uk wrote: snip I have a subversion branch for Python 3. If you have subversion access, try: http://winsys.googlecode.com/svn/branches/py3k and do the python setup.py install dance. If you can't get

Re: Reading the access attributes of directories in Windows

2010-08-19 Thread Thomas Jollans
On Thursday 19 August 2010, it occurred to Tim Golden to exclaim: On 19/08/2010 4:55 PM, vsoler wrote: I've been looking in the os library, and found the os.chmod method but I am not sure that it is going to give me what I need. Should I also used library stat? No. Both of these are

Re: Reading the access attributes of directories in Windows

2010-08-19 Thread Nobody
On Fri, 20 Aug 2010 00:04:29 +0200, Thomas Jollans wrote: This brings up an interesting, but probably quite complicated question: is it reasonable to try to express Windows permissions using full POSIX ACLs Do Windows NT permissions do anything more? Or, apart from the executable bit,