Solved

grp permissions in unix

Posted on 2013-01-28
3
273 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
unable to put logic for reading multiple repo in a single file 4 105
Authenticate using sesu from script 7 158
Solaris acount issues 44 74
Renaming with batch file 9 108
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Background Still having to process all these year-end "csv" files received from all these sources (including Government entities), sometimes we have the need to examine the contents due to data error, etc... As a "Unix" shop, our only readily …
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

737 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