I am a Linux newbie and I am trying to create some groups in my system. I use Lubuntu 13.04 and my username is - say - user1; by default, during the installation a primary group called user1 has authomatically been created for my account. I created later user2 and its primary group called user2; then I created another group, users, which I added as secondary group for both user1 and user2 with the commands
sudo usermod -aG users user1
sudo usermod -aG users user2
Now there are two questions:
1) Typing the command groups
from the user1 prompt generates a certain output:
user1 adm dialout cdrom sudo dip plugdev lpadmin netdev
but typing groups user1
generates a different output:
user1 : user1 users
Why?? Shouldn't they produce the same output?
2) user1 can access the user2 home directory, in /home/user2; but user2 can't access /home/user1! Althout having different owners, both the directories has permissions like this:
drwxrw-r--
So, why is not /home/user1 at least accessible (even if not writeable) from the user2 prompt? Thank you and sorry for my... newbyness!
Bob