LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-22-2009, 01:04 PM   #1
mrtedweb
LQ Newbie
 
Registered: May 2009
Posts: 11

Rep: Reputation: 0
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
 
Old 08-22-2009, 04:59 PM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
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.
 
Old 08-22-2009, 05:06 PM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,641

Rep: Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539
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.
 
Old 08-23-2009, 12:37 PM   #4
mrtedweb
LQ Newbie
 
Registered: May 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks... apparently I was not logging out.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what are default user and group accounts in the linux system used for? devenix Linux - General 1 02-12-2008 02:32 PM
change Default User to a different group Suse 10.1 ahchewyy SUSE / openSUSE 2 01-16-2007 10:21 AM
User and Group Admin: How to tell Who is in What group? Akhran Linux - Newbie 1 11-12-2005 11:16 PM
what is the webserver's (apache) default user/group on SuSe MaestroC SUSE / openSUSE 1 09-09-2005 01:15 PM
How to set the default group for a new user in SuSE. jschiwal Linux - Distributions 1 07-24-2004 11:25 PM


All times are GMT -5. The time now is 02:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration