X-Received: by 2002:adf:e990:: with SMTP id h16mr1604159wrm.307.1610413907940; Mon, 11 Jan 2021 17:11:47 -0800 (PST) Path: ...!news-out.google.com!nntp.google.com!proxad.net!feeder1-2.proxad.net!cleanfeed3-b.proxad.net!nnrp1-1.free.fr!not-for-mail Subject: =?UTF-8?Q?Re=3a_Fichier_binaire_d=27un_daemon_writable_ssi_le_damon?= =?UTF-8?Q?_est_stopp=c3=a9?= Newsgroups: fr.comp.os.bsd References: <5ffca81a$0$6449$426a74cc@news.free.fr> <5ffcf526$0$6458$426a74cc@news.free.fr> From: Francois Lafont Date: Tue, 12 Jan 2021 02:11:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <5ffcf526$0$6458$426a74cc@news.free.fr> Lines: 29 Message-ID: <5ffcf753$0$19477$426a74cc@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 12 Jan 2021 02:11:47 CET NNTP-Posting-Host: 86.247.215.236 X-Trace: 1610413907 news-2.free.fr 19477 86.247.215.236:57410 X-Complaints-To: abuse@proxad.net Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Bytes: 2042 On 1/12/21 2:02 AM, Francois Lafont wrote: > ------------------------------------------------------------- > ~# whoami > root > > ~# b=/usr/sbin/apache2 > > ~# namei -mox "$b" > f: /usr/sbin/apache2 >  Drwxr-xr-x root root / >  drwxr-xr-x root root usr >  drwxr-xr-x root root sbin >  -rwxr-xr-x root root apache2 > > ~# echo "import os; x = os.access('$b', os.W_OK); print(x)" | python > True > > ~# [ -w "$b" ] && echo WRITABLE > WRITABLE > ------------------------------------------------------------- Je précise que, lorsque je lis la page man access(2) de ma Ubuntu, j'ai bien ETXTBSY considéré comme une erreur. Du coup, sur Linux, le comportement ne me paraît effectivement pas en cohérence avec ce que je lis dans la page man. -- François Lafont