[Tutor] permissions and other hairpulls
Kirk Bailey
idiot1@netzero.net
Sun May 11 22:33:02 2003
Sean 'Shaleh' Perry wrote:
> On Sunday 11 May 2003 05:56, Kirk Bailey wrote:
>
>>permissions in FreeBSD are the most fustrating aspect of web scripting.
>>
>
>
> a good unix book might help here. Using a perm of 666 is almost always a bad
> idea. Use 664 if you have to group permission.
>
>
>>Here is an error:
>>Traceback (innermost last):
>> File "/www/www.listville.net/cgi-bin/TLlistmaker2.py", line 195, in ?
>> os.chmod(fullpathtoscript+'/lists/'+mylist,666)
>>OSError: [Errno 79] Inappropriate file type or format:
>>'/www/www.listville.net/cgi-bin/lists/test33'
>>
>
>
> most odd. I have no good idea about the cause to this. A few google searches
> reveal only weird questions from people with NFS issues.
>
> If you try to run chmod by hand on the file, does it do anything interesting?
>
nothing odd whatsoever. Which is odd.
>
>>The script is attempting to set the mod to 666 for a file just created and
>>closed. It is created by the script, and examination shows it is 644.
>>Another scipt is trying later to add to it, and failing, for a permissions
>>reason. ALL scripts are 755, owned by nobody:wheel. All such text files are
>>also nobody:wheel, and work fine when 666, but problems when 644. Any
>>suggestions from the brethern?
>
>
> most likely group needs permission to write for some reason (not sure what the
> file is or does).
> the file is a flat text file, with a bunch of email addresses in it, such as
me@here.org
you@there.org
us@noplace,bet
theclub@clubtown.info
The idea is to append a new member to the existing file with an open statement.
> _______________________________________________
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
--
end
Respectfully,
Kirk D Bailey
+------------------------------------------------------------+
| Owner Howler Monkey Email: http://www.howlermonkey.net/ |
| Inventor of TinyList list server: http://www.tinylist.org/ |
| Consulting freestyle Grump: http://www.sacredelectron.org/ |
| Remember: When we referr to FREE software, we are talking |
| about FREEDOM, not $PRICE$. |
+------------------------------------------------------------+