Solved

grp permissions in unix

Posted on 2013-01-28
3
272 Views
Last Modified: 2013-02-14
I have a file with u+rwx and g+rwx. It shows as follows:

-rwxrwx---    1 myid1  abcd          829 Nov 20 10:46 run_con.ksh

The groups for this myid1 are : abcd, grp1, grp2

Another userid - say myid2 tries to more the ksh and fails. I look at its groups. They are: grp2, grp3

I am wondering why it failed given the two ids share a group between them, namely,  grp1. So the second id - myid2 - should have been able to access the script given this fact, no?
0
Comment
Question by:LuckyLucks
3 Comments
 

Author Comment

by:LuckyLucks
ID: 38829002
Typo, the shared group between the two ids is grp2 NOT grp1.
0
 
LVL 40

Accepted Solution

by:
omarfarid earned 500 total points
ID: 38829014
the perms are given to group abcd and not to other groups.

you either change the file group to the group grp2 with command chgrp

or

you add the user to group abcd
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 38829020
It's only the user and group owning the file which count here.

Only user myid1 and members of the group abcd can access and execute this file, the membership of the users in other groups is in no way relevant.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question