Journal jeffy124's Journal: short unix question... 1
When I log into a unix box, any new files I create are set to rw-r--r-- permissions, which i can change to rw-rw-r-- by using umask in my
The group assigned to that created file is the same as my username, and I'm the only user in that group. I'd like to have the default group to be something else, as right now I have to constantly do chgrp's on new files, a real pain, especially when I forget to do so and lock my co-workers out of files.
How do I change the default working group assigned to a file when I create it? I'd prefer something that can be done at logon, as I noticed 'newgrp' launches a new shell, meaning I cant put it in
In /etc/group (Score:3, Informative)
I have group 100 for 'users' and set all my local users accounts in this group. This way, co-users of the machine can use the files between them if they want to. This is probably what you have to do. Remember to adjust all directories (esp. /home) to the new group(s) when you change things around, or you might find yourself unable to write in your own homedir !
If you need to be in more than one groups, add your username at the end of a group name in /etc/group, eg.
wheel:x:10:username