Re: Why does os.stat() tell me that my file-group has no members?

2012-12-19 Thread Kushal Kumaran
saqib.ali...@gmail.com writes: > Thanks!! This was very helpful. It worked perfectly. > I had no clue about the intricacies of how python represents the group data > from the underlying OS. > > This page doesn't go into to detailed explanation like you did: > http://docs.python.org/2/library/grp

Re: Why does os.stat() tell me that my file-group has no members?

2012-12-19 Thread Chris Angelico
On Thu, Dec 20, 2012 at 12:23 PM, wrote: > > Thanks!! This was very helpful. It worked perfectly. > I had no clue about the intricacies of how python represents the group data > from the underlying OS. > > This page doesn't go into to detailed explanation like you did: > http://docs.python.org/

Re: Why does os.stat() tell me that my file-group has no members?

2012-12-19 Thread saqib . ali . 75
Thanks!! This was very helpful. It worked perfectly. I had no clue about the intricacies of how python represents the group data from the underlying OS. This page doesn't go into to detailed explanation like you did: http://docs.python.org/2/library/grp.html On Wednesday, December 19, 2012 6

Re: Why does os.stat() tell me that my file-group has no members?

2012-12-19 Thread Hans Mulder
On 19/12/12 22:40:00, saqib.ali...@gmail.com wrote: > > > I'm using python 2.6.4 on Solaris 5-10. > > I have a file named "myFile". It is owned by someone else, by > I ("myuser") am in the file's group ("mygrp"). Below is my python > code. Why does it tell me that mygrp has no members??? > > >

Why does os.stat() tell me that my file-group has no members?

2012-12-19 Thread saqib . ali . 75
I'm using python 2.6.4 on Solaris 5-10. I have a file named "myFile". It is owned by someone else, by I ("myuser") am in the file's group ("mygrp"). Below is my python code. Why does it tell me that mygrp has no members??? >>> import os, pwd, grp >>> stat_info = os.stat("myFile") >>> fileUID