* [TUHS] success, bj assembled and linked in Unix v5
@ 2015-06-12 20:33 Mark Longridge
2015-06-12 20:57 ` cowan
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Mark Longridge @ 2015-06-12 20:33 UTC (permalink / raw)
OK, success...
in Unix v5:
as bj.s etc.s us.s
ld a.out -lc
mv a.out bj
chmod 0744 bj
It seems to work OK now. Probably should work on v6 and v7 as well.
Mark
^ permalink raw reply [flat|nested] 9+ messages in thread
* [TUHS] success, bj assembled and linked in Unix v5
2015-06-12 20:33 [TUHS] success, bj assembled and linked in Unix v5 Mark Longridge
@ 2015-06-12 20:57 ` cowan
2015-06-12 21:01 ` Ronald Natalie
2015-06-13 17:48 ` Dave Horsfall
2 siblings, 0 replies; 9+ messages in thread
From: cowan @ 2015-06-12 20:57 UTC (permalink / raw)
Mark Longridge scripsit:
> OK, success...
>
> in Unix v5:
Excellent! Why not post a transcript of a game?
--
John Cowan http://www.ccil.org/~cowan cowan at ccil.org
Pour moi, les villes du Silmarillion ont plus de realite que Babylone.
--Christopher Tolkien, as interviewed by Le Monde
^ permalink raw reply [flat|nested] 9+ messages in thread
* [TUHS] success, bj assembled and linked in Unix v5
2015-06-12 20:33 [TUHS] success, bj assembled and linked in Unix v5 Mark Longridge
2015-06-12 20:57 ` cowan
@ 2015-06-12 21:01 ` Ronald Natalie
2015-06-12 22:23 ` Mark Longridge
2015-06-13 17:48 ` Dave Horsfall
2 siblings, 1 reply; 9+ messages in thread
From: Ronald Natalie @ 2015-06-12 21:01 UTC (permalink / raw)
744? You want the group and others to be able to read but not execute?
> On Jun 12, 2015, at 4:33 PM, Mark Longridge <cubexyz at gmail.com> wrote:
>
> OK, success...
>
> in Unix v5:
>
> as bj.s etc.s us.s
> ld a.out -lc
> mv a.out bj
> chmod 0744 bj
>
> It seems to work OK now. Probably should work on v6 and v7 as well.
>
> Mark
> _______________________________________________
> TUHS mailing list
> TUHS at minnie.tuhs.org
> https://minnie.tuhs.org/mailman/listinfo/tuhs
^ permalink raw reply [flat|nested] 9+ messages in thread
* [TUHS] success, bj assembled and linked in Unix v5
2015-06-12 21:01 ` Ronald Natalie
@ 2015-06-12 22:23 ` Mark Longridge
0 siblings, 0 replies; 9+ messages in thread
From: Mark Longridge @ 2015-06-12 22:23 UTC (permalink / raw)
> 744? You want the group and others to be able to read but not execute?
You are right, chmod 0755 would have made more sense.
On 6/12/15, Ronald Natalie <ron at ronnatalie.com> wrote:
> 744? You want the group and others to be able to read but not execute?
>
>> On Jun 12, 2015, at 4:33 PM, Mark Longridge <cubexyz at gmail.com> wrote:
>>
>> OK, success...
>>
>> in Unix v5:
>>
>> as bj.s etc.s us.s
>> ld a.out -lc
>> mv a.out bj
>> chmod 0744 bj
>>
>> It seems to work OK now. Probably should work on v6 and v7 as well.
>>
>> Mark
>> _______________________________________________
>> TUHS mailing list
>> TUHS at minnie.tuhs.org
>> https://minnie.tuhs.org/mailman/listinfo/tuhs
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* [TUHS] success, bj assembled and linked in Unix v5
2015-06-12 20:33 [TUHS] success, bj assembled and linked in Unix v5 Mark Longridge
2015-06-12 20:57 ` cowan
2015-06-12 21:01 ` Ronald Natalie
@ 2015-06-13 17:48 ` Dave Horsfall
2 siblings, 0 replies; 9+ messages in thread
From: Dave Horsfall @ 2015-06-13 17:48 UTC (permalink / raw)
On Fri, 12 Jun 2015, Mark Longridge wrote:
> chmod 0744 bj
That has to be the world's oddest "chmod" command.
--
Dave Horsfall DTM (VK2KFU) "Those who don't understand security will suffer."
http://www.horsfall.org/spam.html (and check the home page whilst you're there)
^ permalink raw reply [flat|nested] 9+ messages in thread
* [TUHS] success, bj assembled and linked in Unix v5
2015-06-14 1:41 ` John Cowan
@ 2015-06-14 2:50 ` random832
0 siblings, 0 replies; 9+ messages in thread
From: random832 @ 2015-06-14 2:50 UTC (permalink / raw)
On Sat, Jun 13, 2015, at 21:41, John Cowan wrote:
> But it won't be owned by the original owner, which means any setuid bit
> will give it the permissions of the copy-maker.
Right, but 744 doesn't include a setuid bit.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [TUHS] success, bj assembled and linked in Unix v5
2015-06-14 1:08 Norman Wilson
@ 2015-06-14 1:41 ` John Cowan
2015-06-14 2:50 ` random832
0 siblings, 1 reply; 9+ messages in thread
From: John Cowan @ 2015-06-14 1:41 UTC (permalink / raw)
Norman Wilson scripsit:
> Oh, and I had already maniacally (and paranoiacally)
> excised from ftpd the code allowing ftp to change permissions.
I needed an FTP server some time back to support only *non*-anonymous
logins, where the logins had nothing to do with the underlying system.
I came up with this:
<http://ccil.org/~cowan/publish-ftpd>
I was going to add HTTP support with basic auth, but never got around
to it.
> I admit I can't think of a reason to use 744 offhand, since
> if you can read the file you can copy it and make the copy
> executable.
But it won't be owned by the original owner, which means any setuid bit
will give it the permissions of the copy-maker.
--
John Cowan http://www.ccil.org/~cowan cowan at ccil.org
Awk!" sed Grep. "A fscking python is perloining my Ruby; let me bash
him with a Cshell! Vi didn't I mount it on a troff?" --Francis Turner
^ permalink raw reply [flat|nested] 9+ messages in thread
* [TUHS] success, bj assembled and linked in Unix v5
@ 2015-06-14 1:08 Norman Wilson
2015-06-14 1:41 ` John Cowan
0 siblings, 1 reply; 9+ messages in thread
From: Norman Wilson @ 2015-06-14 1:08 UTC (permalink / raw)
Mark Longridge:
chmod 0744 bj
Dave Horsfall:
That has to be the world's oddest "chmod" command.
======
Not by a long shot.
Recently, for reasons related both to NFS permissions and to
hardware testing, I have occasionally been making directories
with mode 753.
At the place I worked 20 years ago, we wanted a directory
into which anonymous ftp could write, so that people could
send us files; but we didn't want it to become a place for
creeps to stash their creepy files. I thought about the
problem briefly, then made the directory with mode 0270,
owned by the user used for anonymous ftp and by a group
containing all the staff members allowed to receive files
that way. That way creeps could deposit files but couldn't
see what was there.
I also told cron to run every ten minutes, changing the
permissions of any file in that directory to 0060.
Oh, and I had already maniacally (and paranoiacally)
excised from ftpd the code allowing ftp to change permissions.
I admit I can't think of a reason to use 744 offhand, since
if you can read the file you can copy it and make the copy
executable. But UNIX permissions can be used in so many
interesting ways that I'm not willing to claim there is no
such reason just because I can't see what it is.
Norman Wilson
Toronto ON
^ permalink raw reply [flat|nested] 9+ messages in thread
* [TUHS] success, bj assembled and linked in Unix v5
@ 2015-06-12 20:51 Noel Chiappa
0 siblings, 0 replies; 9+ messages in thread
From: Noel Chiappa @ 2015-06-12 20:51 UTC (permalink / raw)
> From: Mark Longridge <cubexyz at gmail.com>
> OK, success...
Yeah, I just got there too, but by a slightly longer route!
(Google wasn't turning up the matches for the routines I needed, which you
found in etc.s, etc - it seems the source archive on Minnie isn't being
indexed by Google. So I wound up cobbling them together with a mix of stuff
from other places, along with stuff I wrote/modified.)
> Probably should work on v6 and v7 as well.
Does on V6, dunno about V7.
> It seems to work OK now.
Yes, but this is _not_ the source for the V5/V6 'bj'. (I just checked,
and the V5 and V6 binaries are identical.)
Right at the moment, I've used enough time on this - I may get back to
it later, and disassemble the V5/V6 binary and see what the original
source looks like.
Noel
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2015-06-14 2:50 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-12 20:33 [TUHS] success, bj assembled and linked in Unix v5 Mark Longridge
2015-06-12 20:57 ` cowan
2015-06-12 21:01 ` Ronald Natalie
2015-06-12 22:23 ` Mark Longridge
2015-06-13 17:48 ` Dave Horsfall
2015-06-12 20:51 Noel Chiappa
2015-06-14 1:08 Norman Wilson
2015-06-14 1:41 ` John Cowan
2015-06-14 2:50 ` random832
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).