-   Linux - Newbie (
-   -   User is not allowed to write in a directory (

xpucto 04-19-2006 09:40 AM

User is not allowed to write in a directory

I have the following directory:

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

"Rpad/test_file" E212: Can't open file for writing
My user belongs to the group 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

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

usermod -g rpad myuser

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