On 4/27/06, jan gestre <[EMAIL PROTECTED]> wrote:
>
>
>
> On 4/26/06, qtcamote <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > Aloha PLUGgers!
> >
> >
> > > drwxr-x--- 2 testuser  technical 4096 Apr 26 10:44 stickyfolder
> > >
> >
> > The above shows my current permission for my folder. My current trouble is
> testuser1 can create and delete files but when I try to login to another
> user, let's say testuser2, testuser2 cannot open the directory.
>
>
> change the ownership of  the file/directory via the chown command:
>
> # chown technical.technical /path/of/file
>
> >
> >
> > In my /etc/group file
> >
> >
> > > technical:x:505:root,testuser1,testuser2
> > >
> >
> > I have the above line which (I think) says that testuser1 and testuser2
> belongs to the technical group. How do I set the permissions of the folder
> so that other members of the group should be able to read the file?
>
>
> check the file permission via $ ls -l and see if it allows other users in
> the group to read the file, if not then do this:
>
> # chmod 750 /path/to/file
>

you may also want to check your umask, and set setgid bit for the directory.

# umask 0127 <--- rw for owner, read-only for group, no access to other
# chmod g+s stickyfolder

created file/folder inside stickyfolder will have readobnly access for
technical, and no access to other users.

---edel
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to