Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-30-2009, 06:40 AM   #1
LQ Newbie
Registered: Feb 2004
Distribution: Mandrake 9.2
Posts: 14

Rep: Reputation: 0
linux permissions - need general info


I tried searching but couldn't find conclusive answers

I have setup a LAMP server with CentOS 5.2 and want to give rwx to the /var/www/html directory for a handful of people, so I created a group called

created 3 users, made their default group webusers:

[root@www www]# groups pzche
pzche : webusers

I made the group owner of /var/www/html with rwx, left root as the user for /var/www/html, permissions are as follow:

drwxrwxr-- 65 root webusers 4096 Sep 30 07:25 html

all seems well for them reading/writing for the files in there

the issue comes up when they create a file or directory, through FTP or through Shell:

directory permissions:
drwxr-xr-x 2 pzche webusers 4096 Sep 30 07:25 test2

file permissions:
-rw-r--r-- 1 pzche webusers 0 Sep 30 07:25 test2

I want it to maintain the permissions of group rwx, owner rwx, and other rw. so we can all read/write and work on each other's files

is my approach wrong or am I on the right track?

the only thing I've found that can help me with this issue is change the default permissions mask when they create files, but that seems like the wrong approach and I figured I'd check here before I brought up any issues on myself

any help is greatly appreciated

Last edited by Leb_CRX; 09-30-2009 at 06:42 AM.
Old 09-30-2009, 07:56 AM   #2
Registered: Mar 2005
Location: palmdale, california
Distribution: MEPIS 8; Debian (stable/testing)
Posts: 83

Rep: Reputation: 23

Sounds like you need to change the umask settings. I wish I could tell you more, but I am really only passingly aware of the matter, not really familiar.
Old 09-30-2009, 08:43 AM   #3
LQ Newbie
Registered: Sep 2009
Posts: 1

Rep: Reputation: 0
I think you have to change umask value in ftp configuration file (like for FTP) and /etc/bashrc for shell

FTP configuration file ( like proftpd.conf for Proftp FTP server)
umask 002

/etc/bashrc for Shell login
umask 002



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
Info needed on Linux in general Ansur Linux - Distributions 12 07-27-2004 03:20 AM > Forums > Linux Forums > Linux - Newbie

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