Computer Old Farts Forum
 help / color / mirror / Atom feed
From: Edouard Klein <edouardklein@gmail.com>
To: coff@tuhs.org
Subject: [COFF] A slack clone in 5 lines of bash
Date: Sat, 01 Jul 2023 18:00:07 +0200	[thread overview]
Message-ID: <877crjfwnv.fsf@gmail.com> (raw)

Dear Old Farts,

I've written a chat system that relies at its core on UNIX's permission
system.

All the explanations are here:
https://the-dam.org/docs/explanations/suc.html

I thought it would be of interest to the list as it has one foot in the
past (using system primitives from the 70's for access control) and one
foot in the future: (optionally) using GNU Guix's declarative
configuration to create the necessary users, groups, and files.

I know most of you have used (and some maybe still do) talk et al. This
system is even simpler, just a forever loop:

while /usr/bin/true
do
    read -r line || exit 0  # EOF
    /usr/bin/echo "$(/usr/bin/date --iso-8601=seconds)"\
        "$(printf "%-9s" "$(/usr/bin/id --user --name --real)")" \
        "$line" >> /var/lib/suc/"$1"
done

I'd be happy to hear any comments or to welcome you on the Dam, where we
test this stuff.

Cheers !

Edouard.

                 reply	other threads:[~2023-07-01 16:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877crjfwnv.fsf@gmail.com \
    --to=edouardklein@gmail.com \
    --cc=coff@tuhs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).