Understanding groups in Ubuntu

1

1

How can you run the following pseudo-command?

sudo chown :twin::rwx /usr/local/copyrightLinux

I want that each user in the group twin can read, write and execute all files which belong to the group twin. The apparent problem is with permissions.

Léo Léopold Hertz 준영

Posted 2009-12-22T00:33:27.840

Reputation: 4 828

Answers

1

sudo chown :twin /usr/local/copyrightLinux

sudo chmod g=rwx /usr/local/copyrightLinux

Nerdfest

Posted 2009-12-22T00:33:27.840

Reputation: 808

2Note, could also use "sudo chgrp twin /usr/local/copyrightLinux" for the first command. Seems like it might be a bit easier to understand rather than wondering why there's a floating colon in the middle of chown. – Adrian Petrescu – 2009-12-22T03:22:08.217