Solved

grp permissions in unix

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now