* Randy Kramer <[EMAIL PROTECTED]> [020827 15:08]: > I was trying to let one user have access to a file owned by another > user (and in that other user's $HOME hierarchy). I did not want to > change the group owner of the file in this case, so I tried giving the > file (and all directories above it) the appropriate permissions for all > (other) -- like o+rw for the file, and o+rx for all directories above > the file.
This SHOULD work, although it is pretty lax security to let just anyone browse your home directory. > In this case, the parent directory of the file in question had a group > "owner" but no permissions assigned. This is a little hard to follow ... perhaps an example? Do you mean drwx------ joeuser ourgroup group_directory This would mean that joeuser could browse and create files in the directory and descend into it. No one else, not even members of ourgroup, can browse, create files, or descend into it. > The user to whom I was trying to give access could not get access to > the file until I went back and assigned some group permissions to > the parent directory of the file -- specifically g+rx. A much better way of doing this would be to create a directory outside of any user's home directory, give that directory (and the files in it) a specific group name, and assign whoever you want as users to be members of that group. Then set permissions g+rwx to subdirectories, and g+rw to files in it. > Is that the expected behavior in LInux? Yes, if I understand you correctly. Probably, even if I don't ;-) -- Jan Wilson, SysAdmin _/*]; [EMAIL PROTECTED] Corozal Junior College | |:' corozal.com corozal.bz Corozal Town, Belize | /' chetumal.com & linux.bz Reg. Linux user #151611 |_/ Network, PHP, Perl, HTML
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com