LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-07-2008, 07:20 AM   #1
etherdeath
Member
 
Registered: Apr 2002
Location: New York City
Distribution: Debian
Posts: 30

Rep: Reputation: 15
Managing users and group ownership and permissions


Hi,

I am running a server running apache. I have created a directory for a website /websites/website01. All files in here must be owned by www-data. However, I wanted to allow some other users to edit and create files in this directory, so I created a group 'customer01-data', let's say. I changed ownership of all the files so that group ownership is 'customer01-data' and in this group user01, user02, user03 are members. This is fine and they are able to edit files so long as the file permissions are set right. However, when they create a new file, it defaults to being owned by user01:user01 and they are unable to change that. Is there a better way to handle this scenario? I did look at previous threads and did not see - though there was so much it is possible I missed something.

Thanks
 
Old 03-07-2008, 09:29 AM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
At first look, if you change the primary group of user01, user02, user03 from default group user0n to the group customer01-data, then files will be created as user0n:customer01-data.
if their umask is 0002 or equivalent, files will be created as "rw-rw-r--" giving to the others members the permission to edit those files too.
 
  


Reply



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
Changing group ownership rayn0r Linux - Networking 1 11-28-2007 04:35 PM
granting permissions to a few users in a group grondar69 Linux - General 7 06-22-2006 06:51 PM
Group Permissions and Ownership of files and folders bugeyemonster Linux - General 1 04-19-2006 01:52 AM
Managing Users in RH 8.0 (user permissions syntax) kalis_dc Linux - Networking 1 09-28-2003 07:51 PM
changing users and group ownership dkc_ace Linux - General 4 02-03-2003 07:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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

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
Open Source Consulting | Domain Registration