LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   group member not able to write to group's file (https://www.linuxquestions.org/questions/linux-newbie-8/group-member-not-able-to-write-to-groups-file-861439/)

gjhartwell 02-08-2011 11:05 AM

group member not able to write to group's file
 
Hi,
I have a group (GROUP) with a number of users. I recently added a new user (NEW). NEW is able to read but not write group files, whereas all the other users in the group can read and write to the group files.

The permissions for the group files indicate that all members of group should have write permission -rwxrwxr-x

/etc/group indicates that NEW is a member of GROUP
...
GROUP:x:501:GROUP,OLD,OLD2,OLD3,OLD4,....,NEW
OLD:x:512
NEW:x:513
...

#id OLD
uid=512(OLD) gid=512(OLD) groups=512(OLD),501(GROUP)
(same type of output for other OLDs)

#id NEW
uid=513(NEW) gid=513(NEW) groups=513(NEW),501(GROUP)

If I give others write permission NEW can write to GROUP files.

Don't know if it matters, but both OLD and NEW write to the GROUP files over an internet connection.

Anyone have any ideas as to why NEW can't write to GROUP files? Is there a maximum number of members in a group that I might have exceeded?

Thanks,
Greg

chrism01 02-09-2011 12:09 AM

Can you show an

ls -l

on the target dir, and also confirm which protocol you are using eg NFS etc?
Here's a qn; is the user's acct on the target system actually in the correct group for that system ie src system is irrelevant.

gjhartwell 02-09-2011 09:23 AM

Hi Chris,

Thanks for the reply.

Here is the output from an ls -l
#ls -l
drwxrwxr-x 2 cth data 4096 Feb 8 11:44 08

data is the group I mention that NEW should be a member of.

To your question:
"is the user's acct on the target system actually in the correct group for that system?"

I was thinking that
..................................................
/etc/group indicates that NEW is a member of GROUP
...
GROUP:x:501:GROUP,OLD,OLD2,OLD3,OLD4,....,NEW
OLD:x:512
NEW:x:513
...
................................................
showed that the new account was a member of the group. Is there another way to determine this?

I'm not sure how to check for the file system protocol, but I think it is ext3 (don't really know what this means).
from /etc/fstab
....
/dev/md2 / ext3 defaults 1 1
...

Does any of this help?

Greg


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