Cobra Forum

Linux => New to Ubuntu => Topic started by: mahesh on Aug 28, 2023, 08:24 AM

Title: Server / chmod 2770 for futre files/folder doesn't work
Post by: mahesh on Aug 28, 2023, 08:24 AM
Hey folks

I have a folder, added a group and want, that 2 users can work on this projekt

     Code:
addgroup projektxy
usermod -a -G projektxy sebastian
usermod -a -G projektxy matthias
mkdir -p /projekte/xy
chgrp projektxy /projekte/xy
chmod 755 /projekte
chmod 2770 /projekte/xy

Matthias can add folders to /projekte/xy and also files
but sebastian can't edit them, because he hasn't got the permission

Alle the new files and folders only get "-rw-r--r-- "

All future files should have the same permission as 770 - what do i miss?

thanks for u help