Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 02-24-2010, 02:57 PM   #1
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. 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
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/ 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 02:59 PM.
Old 02-24-2010, 03:06 PM   #2
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 164Reputation: 164
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, 05:17 PM   #3
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

Old 02-24-2010, 08:15 PM   #4
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.7, Centos 5.10
Posts: 16,919

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

Can you do a

ls -lR

on those dirs?



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 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 01:10 AM
BASH (Linux) - View file permission linux_linux Linux - Software 4 03-15-2008 10:42 PM
linux changing file permission a_vall Linux - General 5 04-15-2006 09:48 AM
How exactly does Linux file permission inheritance work HGeneAnthony Linux - Newbie 5 04-14-2006 11:20 AM
Multiple file/group permission questions JustinCoyan Slackware 3 04-19-2005 11:26 PM

All times are GMT -5. The time now is 02:01 PM.

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