-   Linux - Security (
-   -   Changing a user's default group (

dogn00dles 07-06-2003 07:12 PM

Changing a user's default group
I have made my root web server directory writable only by users in a certain group. I was having some trouble writing HTML files to it, before realizing that all of them were created with my default "user" group. While researching perm's on the 'net I stumbled across a command that changed the default group of any files I made, before forgetting it :-[...if anyone could tell me how this is done, or just knows the name of the command so I could man it, it would be really cool. Thanks in advance!



zmedico 07-06-2003 08:00 PM

Sharing a directory of files


chmod g+rwxs sharedir

dogn00dles 07-06-2003 08:20 PM

Thanks for the link, I'm sure some of it will come in handy later. Perhaps I should have phrased my question differently. What I need to do is change the default group of any files a user creates to something other than users. Danke.

nxny 07-07-2003 05:29 PM

Is it newgrp?

It wont change the default group, but will create a new shell with the user's uid and the new group's gid.

dogn00dles 07-09-2003 03:59 PM

Aha! Thanks for the replies. For anyone with a similar problem, it was "usermod -G <group> <user>"

All times are GMT -5. The time now is 08:27 PM.