Shell Interview Questions and Answers


I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.

We can create the directory giving read and execute access to everyone in the group and setting its sticky bit "t" on as follows:
mkdir direc1
chmod g+wx direc1
chmod +t direc1

Posted by:Richards