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 wrote: > In message , Rami > Chowdhury wrote: > >> On Wed, Aug 25, 2010 at 05:04, Lawrence D'Oliveiro >> wrote: >> >>> In message , Nobody wrote: >>> Having this as a separate permission allows normal users to add entries to log files b

Re: Reading the access attributes of directories in Windows

2010-08-28 Thread Rami Chowdhury
On Fri, Aug 27, 2010 at 14:16, Nobody 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-27 Thread Lawrence D'Oliveiro
In message , 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 complex security system, doesn’t it, when people are

Re: Reading the access attributes of directories in Windows

2010-08-27 Thread Lawrence D'Oliveiro
In message , Rami Chowdhury wrote: > On Wed, Aug 25, 2010 at 05:04, Lawrence D'Oliveiro > wrote: > >> In message , 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

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 wo

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 wrote: > In message , 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. Ooh, I didn't know that -- what combin

Re: Reading the access attributes of directories in Windows

2010-08-24 Thread Lawrence D'Oliveiro
In message , 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-24 Thread Lawrence D'Oliveiro
In message , 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 Unix/Linux, you can replace the files, then r

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 Golden 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:\\'

Re: Reading the access attributes of directories in Windows

2010-08-23 Thread vsoler
On Aug 21, 8:10 am, Tim Golden 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 error messa

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

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 app

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, security

Re: Reading the access attributes of directories in Windows

2010-08-21 Thread vsoler
On Aug 21, 8:10 am, Tim Golden 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 error messa

Re: Reading the access attributes of directories in Windows

2010-08-21 Thread vsoler
On Aug 21, 8:10 am, Tim Golden 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 error messa

Re: Reading the access attributes of directories in Windows

2010-08-20 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 can

Re: Reading the access attributes of directories in Windows

2010-08-20 Thread vsoler
On Aug 20, 7:42 pm, Tim Golden wrote: > On 20/08/2010 5:10 PM, vsoler wrote: > > > > > On Aug 20, 5:10 pm, Tim Golden  wrote: > >> To decode the permission bit-strings to vaguely meaningful > >> names: > > >> > >> import os, sys > >> from winsys import fs > > >> dacl = fs.file (sys.executable).se

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 appen

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 Golden wrote: To decode the permission bit-strings to vaguely meaningful names: import os, sys from winsys import fs dacl = fs.file (sys.executable).security ().dacl for permission in dacl: print (d.trustee, " (Inherited )" if

Re: Reading the access attributes of directories in Windows

2010-08-20 Thread vsoler
On Aug 20, 5:10 pm, Tim Golden wrote: > On 20/08/2010 15:49, vsoler wrote: > > > > > On Aug 20, 4:26 pm, vsoler  wrote: > >> On Aug 20, 9:36 am, Tim Golden  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

Re: Reading the access attributes of directories in Windows

2010-08-20 Thread vsoler
On Aug 20, 5:10 pm, Tim Golden wrote: > On 20/08/2010 15:49, vsoler wrote: > > > > > On Aug 20, 4:26 pm, vsoler  wrote: > >> On Aug 20, 9:36 am, Tim Golden  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

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, vsoler wrote: On Aug 20, 9:36 am, Tim Golden 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 k

Re: Reading the access attributes of directories in Windows

2010-08-20 Thread vsoler
On Aug 20, 4:26 pm, vsoler wrote: > On Aug 20, 9:36 am, Tim Golden 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 > > >

Re: Reading the access attributes of directories in Windows

2010-08-20 Thread vsoler
On Aug 20, 9:36 am, Tim Golden 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 confirm th

Re: Reading the access attributes of directories in Windows

2010-08-20 Thread vsoler
On Aug 20, 9:36 am, Tim Golden 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 confirm th

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 t

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,

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

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 Golden wrote: 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 that working, let me know an

Re: Reading the access attributes of directories in Windows

2010-08-19 Thread vsoler
On Aug 19, 10:59 pm, Tim Golden wrote: > On 19/08/2010 9:17 PM, vsoler wrote: > > > > > On Aug 19, 8:55 pm, Tim Golden  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 wha

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 Golden 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 easil

Re: Reading the access attributes of directories in Windows

2010-08-19 Thread vsoler
On Aug 19, 8:55 pm, Tim Golden 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 interactively in m

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 dir

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 Pr