[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-devel] Windows status line: Script must have permissions "06
From: |
LuisCapriles |
Subject: |
Re: [Gnumed-devel] Windows status line: Script must have permissions "0600" |
Date: |
Mon, 9 May 2011 19:46:51 -0700 (PDT) |
After a crash course in Phyton...
I made several tests: changing the "owner" mix, hangin the readonly
attribute...
Administrators: Full Control
LuiCapriles: Full Control
SYSTEM: Full Control
>>> stat.S_IMODE(os.stat('readonly').st_mode)
438
>>> oct(stat.S_IMODE(os.stat('readonly').st_mode))
'0666'
>>>
*******************************
readonly attribute
Administrators: Full Control
LuiCapriles: Full Control
SYSTEM: Full Control
>>> stat.S_IMODE(os.stat('readonly').st_mode)
292
>>> oct(stat.S_IMODE(os.stat('readonly').st_mode))
'0444'
>>>
*******************************
LuiCapriles: Read, Execute.
>>> stat.S_IMODE(os.stat('readonly').st_mode)
438
>>> oct(stat.S_IMODE(os.stat('readonly').st_mode))
'0666'
>>>
*******************************
SYSTEM: Full Control
>>> stat.S_IMODE(os.stat('readonly').st_mode)
438
>>> oct(stat.S_IMODE(os.stat('readonly').st_mode))
'0666'
>>>
*******************************
readonly attrybute
SYSTEM:Read, Execute
>>> stat.S_IMODE(os.stat('readonly').st_mode)
292
>>> oct(stat.S_IMODE(os.stat('readonly').st_mode))
'0444'
>>>
So, it seems that whoever owns the file with whatever permission gets '0666'
if not readonly and '0444' with readonly attribute set.
Regards
Karsten Hilbert wrote:
>
> On Sun, May 08, 2011 at 09:57:57AM -0700, LuisCapriles wrote:
>
>> I read that the "\scripts\hook_script.py" must have 0600 permission. But
>> I
>> am on a Windows XP environment so I do not know if this setting is
>> posible.
>
> Let's find out:
>
> - please create a file named "readonly" in your home dir
> - set its permissions to
> - only read
> - only by you (you seem to be running as user "SYSTEM")
> - run the Python interpreter from your home dir
> - post the output of:
>
> import os, stat
> stat.S_IMODE(os.stat('readonly').st_mode)
> oct(stat.S_IMODE(os.stat('readonly').st_mode))
>
> Karsten
> --
> GPG key ID E4071346 @ gpg-keyserver.de
> E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
>
> _______________________________________________
> Gnumed-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/gnumed-devel
>
>
--
View this message in context:
http://old.nabble.com/Windows-status-line%3A-Script-must-have-permissions-%220600%22-tp31571465p31582354.html
Sent from the GnuMed - Dev mailing list archive at Nabble.com.
Re: [Gnumed-devel] Windows status line: Script must have permissions "0600", Karsten Hilbert, 2011/05/09
Re: [Gnumed-devel] Windows status line: Script must have permissions "0600", Karsten Hilbert, 2011/05/09
- Re: [Gnumed-devel] Windows status line: Script must have permissions "0600",
LuisCapriles <=