makefile added permissions and user/group creation
This commit is contained in:
parent
9e957898f5
commit
cf17c3dc95
1 changed files with 18 additions and 3 deletions
21
Makefile
21
Makefile
|
@ -34,9 +34,24 @@ $(BINDIR)/%.o: $(SRCDIR)/%.c | $(BINDIR)
|
||||||
$(BINDIR):
|
$(BINDIR):
|
||||||
mkdir -p $(BINDIR)
|
mkdir -p $(BINDIR)
|
||||||
|
|
||||||
permissions: $(BINDIR)/djumbai_enqueue/djumbai_enqueue
|
users:
|
||||||
chown djumbaiq $(BINDIR)/djumbai_enqueue/djumbai_enqueue
|
sudo useradd -M djumbaiq
|
||||||
chmod u+s $(BINDIR)/djumbai_enqueue/djumbai_enqueue
|
sudo useradd -M djumbaid
|
||||||
|
sudo groupadd djumbai_queue
|
||||||
|
sudo groupadd djumbai_send
|
||||||
|
sudo usermod -aG djumbai_queue djumbaiq
|
||||||
|
sudo usermod -aG djumbai_queue djumbaid
|
||||||
|
sudo usermod -aG djumbai_send djumbaid
|
||||||
|
sudo usermod -aG djumbai_send root
|
||||||
|
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
sudo chown djumbaiq $(BINDIR)/djumbai_enqueue/djumbai_enqueue
|
||||||
|
sudo chmod u+s $(BINDIR)/djumbai_enqueue/djumbai_enqueue
|
||||||
|
sudo chown djumbaid $(BINDIR)/djumbai_dequeue/djumbai_dequeue
|
||||||
|
sudo chmod u+s $(BINDIR)/djumbai_dequeue/djumbai_dequeue
|
||||||
|
sudo chown root $(BINDIR)/djumbai_send/djumbai_send
|
||||||
|
sudo chmod u+s $(BINDIR)/djumbai_send/djumbai_send
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(BINDIR)
|
rm -rf $(BINDIR)
|
||||||
|
|
Loading…
Reference in a new issue