🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: demon.tech.unix
Article #271

Re: A question of permissions.

#271
From: Matt Foster
Date: Sun, 26 Nov 2000 00:00
29 lines
1736 bytes
Richard Tibbetts <richard@primepeace.ltd.uk> wrote:
> RussM <RussM@nospam.demon.co.uk> wrote:

>>>$ who am i
>>>cyborg     ttyp3        Nov 25 12:40
>>>$ id
>>>uid=200(cyborg) gid=100(cyborg)
>>>groups=100(cyborg),50(group),102(cybdev)
>>>$ pwd
>>>/u3/cyborg45/bin
>>>$ l runonline
>>>-rwx--x--x   1 cyborg45 cyborg       211 Nov 24 09:34 runonline
>>>$ type runonline
>>>runonline is hashed (./runonline)
>>>$ runonline
>>>/bin/ksh: ./runonline: cannot open
>>>$
>>>
>>>Why won't it run the script runonline? 
>>>

Shell scripts need read & execute to work.  After all, what happens
is that ksh (or bash or whatever) starts up (#!/bin/ksh) and then
attempts to read in the rest of the script as it's stdin.
No read permission, so it blows.   Compiled executables don't
suffer from this, but all scripted languages do.  755 or 750 or 700
would be normal permissions for scripts.

Matt
Technical Details
Message-ID: <8vs79h$704$1@thor.our.house>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <pudv1t0acfbsk1j3nvptjlkr9fd803kqom@4ax.com> <Sh1K1KAnlAI6Ewx3@verge.net> <q4032tcgsn0oe8thtlqs411iji93t5jb5j@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fac57,f7ce9a08bd296d9d
X-Google-Attributes: gidfac57,public
From: Matt Foster <matt@molnir.demon.co.uk>
Subject: Re: A question of permissions.
Date: 2000/11/26
Message-ID: <8vs79h$704$1@thor.our.house>
X-Deja-AN: 698047459
X-NNTP-Posting-Host: molnir.demon.co.uk:193.237.65.231
Sender: Matt Foster <matt@cook.our.house>
References: <pudv1t0acfbsk1j3nvptjlkr9fd803kqom@4ax.com> <Sh1K1KAnlAI6Ewx3@verge.net> <q4032tcgsn0oe8thtlqs411iji93t5jb5j@4ax.com>
X-Complaints-To: abuse@demon.net
X-Trace: news.demon.co.uk 975284161 nnrp-08:26035 NO-IDENT molnir.demon.co.uk:193.237.65.231
Organization: Our House
User-Agent: tin/pre-1.4-980618 (UNIX) (Linux/2.2.17 (i686))
NNTP-Posting-Date: Sun, 26 Nov 2000 23:44:49 +0000 (UTC)
Newsgroups: demon.tech.unix