LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Default user group (https://www.linuxquestions.org/questions/linux-newbie-8/default-user-group-749568/)

mrtedweb 08-22-2009 01:04 PM

Default user group
 
Hello all,

I have a simple problem when creating files and directories. I'm working on a website hosted by a Ubuntu LAMP server. Whenever I create a file or directory, I want it to belong the www-data group and not my usergroup.

I've tried changing my default usergroup to www-data but that has not worked. So now, whenever I create a file (usually through Dreamweaver), I have to SSH in and change it to the www-data group for it to function with the rest of the site. Can anyone help?

-Ted

jstephens84 08-22-2009 04:59 PM

when you defaulted /var/www to www-data did you use the -R which means to do that recursively. if not that may be why it is not defaulting for you.

bathory 08-22-2009 05:06 PM

How did you try to change your initial group? You can use
Code:

usermod -g www-data <login-name>
You have to logout and login again for the change to take effect.

mrtedweb 08-23-2009 12:37 PM

Thanks... apparently I was not logging out.


All times are GMT -5. The time now is 09:01 AM.