Received: from mx0.riseup.net (mx0.riseup.net [198.252.153.6]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 08813223A8C for ; Sun, 10 Aug 2025 19:07:55 +0000 (UTC) Received: from fews03-sea.riseup.net (fews03-sea-pn.riseup.net [10.0.1.153]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx0.riseup.net (Postfix) with ESMTPS id 4c0S2d2gGLz9wlv; Sun, 10 Aug 2025 19:07:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1754852873; bh=esgy6anvLronN6htG/un/eojqJx9eVQbeL59Jo25FpE=; h=Date:From:To:Subject:References:In-Reply-To:From; b=qG2xEvPjZ2RfHNextXSSWzz7aaqk6low/TypJYC02Nd2fH1KAjiBVnWlXI5pjEYKW rG6KJxez3QXGQuZbzSJtEs7uBiuKayrzVUBbCoF/BP2zdc57iwdd/k/Y2WVFJIEYzu sZ6P2L0mRD69BcHrE8WoB4CCYmSbyrhaz9TIt9sE= X-Riseup-User-ID: FF24B458F1D275B6C48B8C01E50EDD518FC53679A18C3B72742DC6710191212B Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews03-sea.riseup.net (Postfix) with ESMTPSA id 4c0S2c1SXxz1yBn; Sun, 10 Aug 2025 19:07:51 +0000 (UTC) Date: Sun, 10 Aug 2025 19:07:50 +0000 From: donoban To: Rolf , alpine-user@lists.alpinelinux.org Subject: Re: Mount option `noexec` not working as expected? Message-ID: <5v4i4j53cddry3vzis372m627xxnbg7iibximtrjgm25ggaaoz@kyg4cg4p3b25> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Sun, Aug 10, 2025 at 07:50:19PM +0200, Rolf wrote: > Dear friends > > $ $ ash ./hallo.sh > hallo! When you do this it only needs read permission since you are asking '/bin/ash' (which can ben executed) to read and parse it. > > If done by a different user: > ``` > $ ./hallo.sh > -ash: ./hallo.sh: Permission denied > $ ash ./hallo.sh > ash: can't open './hallo.sh': Permission denied > `` Has this user permission to read the file?