unix question
Moderators: chulett, rschirm, roy
unix question
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?
How do we know, which group is allowed to access the particular directory?
Re: unix question
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
usally you use
Code: Select all
cp -p - preserve permissions
-
- Participant
- Posts: 407
- Joined: Mon Jun 27, 2005 8:54 am
- Location: Walker, Michigan
- Contact:
Re: unix question
1. lsuser <user>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?
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.
1) I used command and i get only one group, but when i use . 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
Code: Select all
id <username>
Code: Select all
groups <username>
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.
please tryvsi wrote:I usedcommand and i get only one group, but when i useCode: Select all
id <username>
. I get three groups the same user belongs to.Code: Select all
groups <username>
Why is that?
Code: Select all
id -a username
use me pls
tried
id -a
Still getting the same result!!
id -a
Code: Select all
username
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?
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
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.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.