Operating System - HP-UX
1834279 Members
1768 Online
110066 Solutions
New Discussion

Group member can't write to dir w/ permission

 
SOLVED
Go to solution
John Ferrara
Frequent Advisor

Group member can't write to dir w/ permission

I have a user that can't write to a directory that he has group write permissions (775)to. Other users in the group can write to it. I don't want to / can't make the dir 777. Please help. HP UX 10.20 A on K580

John
It was working fine when I left....what did you do?
9 REPLIES 9
Sridhar Bhaskarla
Honored Contributor

Re: Group member can't write to dir w/ permission

Hi John,

What if the user executes "newgrp " and then try to create?.

If it works, then you will have to fix your group permissions. Probably /etc/logingroup is not linked to your /etc/group.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Ross Zubritski
Trusted Contributor

Re: Group member can't write to dir w/ permission

Please post the GID of a user that can write to this directory as well as the user that cannot.

Regards,

RZ
John Ferrara
Frequent Advisor

Re: Group member can't write to dir w/ permission

Sri,

That did the trick. But what do you mean by:
If it works, then you will have to fix your group permissions. Probably /etc/logingroup is not linked to your /etc/group.


John
It was working fine when I left....what did you do?
Sridhar Bhaskarla
Honored Contributor

Re: Group member can't write to dir w/ permission

Hi John,

If the user is listed as a member of multiple groups in /etc/group, then he/she would have to use 'newgrp' command to change the group. However, if it is listed in /etc/logingroup, the user didn't have to and he/she is automatically becomes a member of these groups. So as a work around we link /etc/logingroup to /etc/group.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
John Ferrara
Frequent Advisor

Re: Group member can't write to dir w/ permission

Sri,

The user is a member of 2 groups, the dir he is trying to write to is group write access for his secondary group.

I don't have a /etc/logingroup file. Should I?

John
It was working fine when I left....what did you do?
Tom Maloy
Respected Contributor
Solution

Re: Group member can't write to dir w/ permission

You don't need the file. If it doesn't exist, you can just create it:

ln -s /etc/group /etc/logingroup

You can read more about it in:

man logingroup
Carpe diem!
Sridhar Bhaskarla
Honored Contributor

Re: Group member can't write to dir w/ permission

Hi John,

Yes. That's exactly where logingroup will come into picture. Create a link like this

ln -s /etc/group /etc/logingroup

That should take care of it.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
John Ferrara
Frequent Advisor

Re: Group member can't write to dir w/ permission

Sri / Tom,

Thanks, that works. Is this issue verison specific? Would I need to do this on HPUX 11.00?

John
It was working fine when I left....what did you do?
Sridhar Bhaskarla
Honored Contributor

Re: Group member can't write to dir w/ permission

Hi John,

No this is not version specific. This is a "feature". YOu would need to do the same on even 11.0

-Sri
You may be disappointed if you fail, but you are doomed if you don't try