Solved

grp permissions in unix

Posted on 2013-01-28
3
270 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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

822 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