I am using debian 10 and I want to create a user with no home directory. the user should only have access to the directories that his or her group owns. that is the user has only to his or her group directories. This is my command information:
useradd -g mygroup-G mygroup1,mygroup2 -s /bin/bash -M username
However when I log into the system via putty and do ls command, I see the home folder and I can
cd inside it.
I don't understand why this is possible because
-M should have prevented the creation of the home folder.