unix question

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
vsi
Premium Member
Premium Member
Posts: 507
Joined: Wed Mar 15, 2006 1:44 pm

unix question

Post by vsi »

How do we know, what is the group of a particular account?
How do we know, which group is allowed to access the particular directory?
prabu
Participant
Posts: 146
Joined: Fri Oct 22, 2004 9:12 am

Re: unix question

Post by prabu »

vsi wrote:how do we know, what is the group of a particular file/directory?

Code: Select all

groups username - groups the current user belong to 
chgrp  - to change his group
Also check out getacl and setacl

usally you use

Code: Select all

cp -p - preserve permissions
Ultramundane
Participant
Posts: 407
Joined: Mon Jun 27, 2005 8:54 am
Location: Walker, Michigan
Contact:

Re: unix question

Post by Ultramundane »

vsi wrote:How do we know, what is the group of a particular account?
How do we know, which group is allowed to access the particular directory?
1. lsuser <user>

2. Based upon the file permission mask for the directory and the ownership of the directory. You must also take into considernation what groups a user is a member.
vsi
Premium Member
Premium Member
Posts: 507
Joined: Wed Mar 15, 2006 1:44 pm

Post by vsi »

1) I used

Code: Select all

id <username>
command and i get only one group, but when i use

Code: Select all

groups <username>
. I get three groups the same user belongs to.

Why is that?

2) When I cd to /etc/group. I find only two groups out of three (which appeared using groups <username>

3) Out of the two groups found in /etc/group.
a) one of the groups does not have the <username> in the list of members.
a) the other group has root in the members list.

Can you explain me this?

-Thanks
Last edited by vsi on Wed Aug 16, 2006 9:29 am, edited 2 times in total.
prabu
Participant
Posts: 146
Joined: Fri Oct 22, 2004 9:12 am

Post by prabu »

vsi wrote:I used

Code: Select all

id <username>
command and i get only one group, but when i use

Code: Select all

groups <username>
. I get three groups the same user belongs to.

Why is that?
please try

Code: Select all

 id -a username 
i prescribe google freely to you
use me pls
vsi
Premium Member
Premium Member
Posts: 507
Joined: Wed Mar 15, 2006 1:44 pm

Post by vsi »

tried

id -a

Code: Select all

username
Still getting the same result!!
1) I used Code:
id <username>
command and i get only one group, but when i use Code:
groups <username>
. I get three groups the same user belongs to.

Why is that?

2) When I cd to /etc/group . I find only two groups out of three (which appeared using groups <username>

3) Out of the two groups found in /etc/group .
a) one of the groups does not have the <username> in the list of members.
a) the other group has root in the members list.

Can you explain me this?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Why not just have a friendly chat with a System Admin? Or one of your coworkers there that speaks UNIX?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The answer is in two parts - the operating system permissions and the DataStage roles. Other posters have addressed the first; you check the Permissions tab in the Administrator client to view the second.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply