LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-24-2010, 01:57 PM   #1
citrus
Member
 
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548

Rep: Reputation: 30
Linux File Permission questions


I am trying finally figure out linux file permissions.

my goal is to move a dev web server off apache/windows and on to a linux box.

i have 3 dev sites e.g. test.com test2.com test3.com all of wich i placed in /var/www
now i set up a few users that have access to /var/www so they can all make changes to the sites.

they all use ftp to make the changes. so i added them to a group called "dev" and jailed the group dev into /var/www in the proftpd.conf

i then issued
chown :dev /var/www/* -r
and
chmod 775 /var/www/* -r

so that the users could make changes to all files in /var/www

however i noticed if i ftp in as user1 and create a directory let say /var/www/test.com/newdir that another user cannot delete that directory or make changes inside it. unless the first user manually sets the chmod permissions through ftp.

my web dev users are dumb. can i get around this some how with out manually issuing chmod commands all the time? Or am i not going about this in the right way?


thanks for any help

Last edited by citrus; 02-24-2010 at 01:59 PM.
 
Old 02-24-2010, 02:06 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
I would say you need to reconfigure your proftpd to make sure the files are being uploaded as with the right group and mask.
 
Old 02-24-2010, 04:17 PM   #3
citrus
Member
 
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548

Original Poster
Rep: Reputation: 30
i found an area to specify the umask on each file or folder upload. wich helps. however i would really like be able to specify wich group the file/folder gets assigned.

so if any file uploaded automatically gets a group id of DEV
as of right now its user1:user1 for each file/folder that user1 uploads

anyone?
 
Old 02-24-2010, 07:15 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I do hope those are typos: according to the man pages at www.die.net, chown & chmod do not have '-r' switch. Did you actually use that or '-R' (recursive)?

Can you do a

ls -lR

on those dirs?
 
  


Reply

Tags
permissions



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Questions about file permission while starting mysql vitalstrike82 Slackware 1 05-31-2009 12:10 AM
BASH (Linux) - View file permission linux_linux Linux - Software 4 03-15-2008 09:42 PM
linux changing file permission a_vall Linux - General 5 04-15-2006 08:48 AM
How exactly does Linux file permission inheritance work HGeneAnthony Linux - Newbie 5 04-14-2006 10:20 AM
Multiple file/group permission questions JustinCoyan Slackware 3 04-19-2005 10:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:16 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