From f5451eb9b3831b057ea719e6280bda03ae1ba089 Mon Sep 17 00:00:00 2001 From: afonso Date: Mon, 13 May 2024 00:03:41 +0100 Subject: [PATCH] Final --- Makefile | 2 +- README.md | 19 +++++++++++++------ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 3a1ec37..cd009bd 100644 --- a/Makefile +++ b/Makefile @@ -69,5 +69,5 @@ directories: setup: users permissions directories clean: - rm -rf $(BINDIR) + rm -rf $(BINDIR)/*/* diff --git a/README.md b/README.md index e4269c7..09ba83d 100644 --- a/README.md +++ b/README.md @@ -30,14 +30,21 @@ A UNIX local messaging service This structured breakdown elucidates the sequential steps involved in the Unix message sending process, including process spawning, message queuing, retrieval, transmission, and eventual delivery to the intended recipient. -## Cenas concretas +## Directories -Mail queue - FIFO em /djumbai/fifos/message_queue e so pode ser acedida por users do grupo djumbai_queue, que contem djumbai_enqueue e djumbai_dequeue +Mail queue - FIFO in /djumbai/fifos/message_queue and can only be accessed by users from the djumbai_queue group, which contains djumbai_enqueue and djumbai_dequeue -Send FIFO - FIFO em /djumbai/fifos/send_fifo e so pode ser acedida por users do grupo djumbai_send, que contem djumbai_dequeue e djumbai_send +Send FIFO - FIFO in /djumbai/fifos/send_fifo and can only be accessed by users in the djumbai_send group, which contains djumbai_dequeue and djumbai_send -Mailbox pessoal _ Diretoria em /djumbai/user/$uid/mailbox, que so pode ser acedida pelo user com UID $uid +Personal mailbox _ Directory in /djumbai/user/$uid/mailbox, which can only be accessed by the user with UID $uid -SentBox pessoal - Diretoria em /djumbai/user/$uid/sentbox, que so pode ser acedida pelo user com UID $uid +Personal SentBox - Directory in /djumbai/user/$uid/sentbox, which can only be accessed by the user with UID $uid -Mailbox grupo - Diretoria em /djumbai/group/$gid/mailbox, que so pode ser acedida pelo grupo com GID $gid +Group mailbox - Directory in /djumbai/group/$gid/mailbox, which can only be accessed by the group with GID $gid + +## Running + +1. Run `make` +2. Run `make setup` +3. The binaries will be inside the bin folder (Should run both djumbai_send and djumbai_dequeue as daemons). +4. Use the client cli to send and see messages.