LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   User is not allowed to write in a directory (http://www.linuxquestions.org/questions/linux-newbie-8/user-is-not-allowed-to-write-in-a-directory-436741/)

xpucto 04-19-2006 09:40 AM

User is not allowed to write in a directory
 
Hi!

I have the following directory:
Quote:

drwxrwxr-x 6 apache rpad 4096 Nov 14 15:18 Rpad
when I try to create a file in this directory, I get the message
Quote:

"Rpad/test_file" E212: Can't open file for writing
My user belongs to the group rpad.
Quote:

groups=501(group1),502(staff),505(group3),506(mailman),507(group4),513(rpad)
I created this rpad group in order to allow some users to write files in this folder.
What did I do wrong?

cdhgee 04-19-2006 09:54 AM

Are you sure that this process is running under the user account you think it is?

From what you have described though, if the user in question is a member of the rpad group then the rights you have set should allow him/her to write to that directory.

xpucto 04-19-2006 09:55 AM

Ok, I guess I found the answer. I have to use
Quote:

newgrp mygroup
. Then it works. I just thought that slececting the "right" group would happen automatically.

xpucto 04-19-2006 10:06 AM

In order to make things easier, I just changed my user's default group using
Quote:

usermod -g rpad myuser


All times are GMT -5. The time now is 12:43 PM.