Operating System - HP-UX
1838105 Members
3629 Online
110124 Solutions
New Discussion

Re: User Group - Permission

 
adhyapak
Occasional Contributor

User Group - Permission

Hi,

I have logged in to my unix machine. There is another server running on the same machine. i want to know my user group as well permissions on that server for my account
5 REPLIES 5
Torsten.
Acclaimed Contributor

Re: User Group - Permission

Hi,

"There is another server running on the same machine"

Do you talk about nPars or vPars?
You need to logon to the other server to get this information. Have a look at /etc/passwd or run "id" there.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
adhyapak
Occasional Contributor

Re: User Group - Permission

uid=3644(wasadm) gid=806(wasadm) groups=803(mqm),804(mqbrkrs)



Actual we have machine. On which we hav 2 diffrnt servers running
1.under /opt/W
2.under data/c.../..
i have sudo permissions in 1.

I am tryin to check my user group, and permissions assigned to me/group in 2.
Reshma Malusare
Trusted Contributor

Re: User Group - Permission

Hi Adhyapak,
I am not exactly clear with your question.Do you want to say that you have 2 servers.
For server 1 --> you have sudo rights
For server 2 --> you have user account on this server & you want to know your user group & also permissions.

" permissions on that server for my account"
---> by this what exactly you want to ask? Permissions on some files,dir ???

To know your user group run "id" command.
#id
-->uid=1834(allanp) gid=20(users)
Options->
-g Display only the group ID.
-G Output all different group IDs.
-n With A -u, -g, or -G, display the ID name instead of the ID number.

You can use #groups
#groups [-p] [-g] [-l] [user]
-->groups shows the groups to which the caller or the optionally specified user belong.The -p, -g, and -l options limit the printed list to those groups specified in /etc/passwd, /etc/group, and /etc/logingroup, respectively.

For pemissions simply use ll command.
$ ls -l f1
-rw-r--r-- 1 user3 class 37 Jul 24 11:06 f1
--> shows that user3 belonging to group class have 644 permissions on file f1.

I hope this is what you want to ask.

Regards,
Reshma
Michal Toth
Regular Advisor

Re: User Group - Permission

i'd say that by 'server' he refers to another instance of the application they run, not a separate OS.
Reshma Malusare
Trusted Contributor

Re: User Group - Permission

Hi adhyapak,
Can you please assign the points if your query is solved,

Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.