Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to find All Primary and Secondary Group ID's for a user Post 18314 by sanjay92 on Wednesday 27th of March 2002 01:35:06 AM
Old 03-27-2002
Bug

Thanks !
I always looked in the default id command and I did not look in the options.
This will work for me.

Sanjay

Quote:
Originally posted by killerserv
Have you try the id command ?

id [-gnruG] [--group] [--name] [--real] [--user] [--groups] [--help] [--version] [username]

By default, it prints the real user ID, real group ID, effective user ID if different from the real user ID, effective group ID if dif ferent from the real group ID, and supplemental group IDs. It prints each of these values preceded by a string identifying it and followed by the corresponding user or group name in parentheses. Post back if this doesnt help..
sanjay92
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

primary-secondary sync problem

hi guys, i am new to this DNS business and i'm having a problem. the setup is bind 9.2.3 is installed on a sun solaris 8 server and is the primary DNS. men and mice suite is installed on another sun solaris 8 and that is our secondary DNS server. problem is recently the secondary DNS stopped... (0 Replies)
Discussion started by: mbannout
0 Replies

2. UNIX for Dummies Questions & Answers

Synchronizing primary and secondary name servers

Hello All, Does some one know how to synchronize the primary name server with the secondary without knowing the domains on which synchronization failed. I have just done /usr/sbin/ndc reload Alternatively how do i find out the domains on which synchronization failed? (4 Replies)
Discussion started by: a2z1982
4 Replies

3. Shell Programming and Scripting

List ALL users in a Unix Group (Primary and Secondary)

Is there a command or better combination of cmds that will give me the list of Unix users in a particular Unix group whether their primary group is that group in question (information stored in /etc/passwd) or they are in a secondary group (information stored in /etc/group). So far all I got... (5 Replies)
Discussion started by: ckmehta
5 Replies

4. Linux

Secondary linux dist WITHIN primary one

Hi New here so forgive my ignorance and inability to express myself in an informative manner ;) I have a Fedora distribution installed on my development computer. The system we build is meant to run on a slackware dist which is all fine and well. But due to our flow of deployment I would have... (2 Replies)
Discussion started by: inquam
2 Replies

5. Ubuntu

primary group for user

HI I need to know what is the primary group name of a particular user. How to do this ? Maybe with groups cmd ? (first group name in line, is the primary group) thx for help. (2 Replies)
Discussion started by: presul
2 Replies

6. AIX

How to find Primary & Secondary VIOS?

Hi, In a Dual VIOSs setup having 4 SEA adapters each, how to find which one is Primary and Secondary.? Regards, Siva (2 Replies)
Discussion started by: ksgnathan
2 Replies

7. Red Hat

How to find Secondary Group only?

Hi, I would like to know how to find our secondary group of user only. I have used the command id -Gn user1 it is showing both groups of user. Primary and secondary group. (2 Replies)
Discussion started by: manoj.solaris
2 Replies

8. Solaris

DNS Primary and Secondary

hi there, i using salaris 10 as my DNS server. i have 2 dns server primary and secondary. if primary dns server i edit/update, the other secondary dns server must be sync too. How can i configure if dns server (primary) can sync the secondary? (1 Reply)
Discussion started by: tappetmus
1 Replies

9. Linux

Openldap add user to secondary group

Hello, i try to add user john to secondary group, named groupB this will add as primary group, how can i add to secondary group?? dn: cn=groupB,ou=Groups,dc=ldap-server,dc=com changetype: modify add: memberuid memberuid: john (1 Reply)
Discussion started by: prpkrk
1 Replies

10. UNIX for Dummies Questions & Answers

Remove a secondary group from user (Linux)

Oracle Linux 6.6 grid user's secondary groups are asmadmin,asmdba,asmoper and dba # id -a grid uid=638(grid) gid=2000(oinstall) groups=2000(oinstall),2100(asmadmin),2200(dba),2300(asmdba),2301(asmoper) I want to remove dba as the secondary group for grid and keep the remaining ones. ie. I... (5 Replies)
Discussion started by: John K
5 Replies
vrport(1M)																vrport(1M)

NAME
vrport - Veritas Volume Replicator port management utility SYNOPSIS
vrport [-a | -r] data [port | portlow-porthigh [,port...]] vrport heartbeat [port] vrport vradmind [port] vrport vxrsyncd [port] DESCRIPTION
The vrport utility manages the various UDP and TCP ports used by Veritas Volume Replicator (VVR). VVR uses the UDP and TCP transport protocols to communicate between the Primary and Secondary. VVR exchanges three types of message between the Primary and Secondary: heartbeat, data and administrative control. The heartbeat messages are transmitted using the UDP protocol on the IANA approved 4145 UDP Port number. VVR can use either the UDP trans- port protocol or the TCP transport protocol to exchange data messages. VVR uses UDP Anonymous ports for data replication between Primary and the Secondary if the network protocol is UDP. VVR uses IANA approved 4145 TCP port number for TCP listener port on the Secondary and TCP Anonymous ports on the Primary for data replication if the network protocol is TCP. VVR uses IANA approved 8199 TCP port for communication between the vradmind daemons on the Primary and the Secondary. vradmind server pro- vides administration of VVR objects in a distributed environment. VVR uses 8989 TCP port number for communication between the vxrsyncd dae- mons on the Primary and the Secondary. Use vrport to display, change or set the port numbers used by VVR. You may have to change the port numbers to resolve a port number con- flict with other applications, to configure VVR to work in a firewall environment when using UDP network protocol by restricting the number of ports to replicate data between the Primary and the Secondary. The action performed by vrport depends on the specified keyword operand(s). When invoked with no arguments, vrport displays the port number(s) used for heartbeat, data, vradmind and vxrsyncd communication between the Primary and Secondary on the standard output. KEYWORDS
data [port | portlow-porthigh [,port...]] Without any arguments, the vrport data command displays the port number(s) used by VVR for data replication between the Primary and the Secondary. This is applicable only if you have chosen UDP for network protocol. With the port number(s) or range specified, restricts VVR to use the ports or list of ports specified for data replication. If the -a flag is specified, the vrport data command appends the given port numbers(s) or range to the existing port number(s) or range to be used for data replication. If the -r flag is specified, the vrport data command removes the given port number(s) or range from the existing port number(s) for data replication. You need to execute /usr/sbin/vxnetd, and pause and resume all RLINKs for VVR to use the new port information. heartbeat [port] Without the port argument, displays the UDP port number used to exchange heartbeat messages. With the port argument specified, sets the UDP port number to exchange heartbeat messages. Use the vradmin changeip command to update the RLINKs with the new port information. To have VVR use the new port number, enter the command /usr/sbin/vxnetd stop followed by /usr/sbin/vxnetd. vradmind [port] Without the port argument, displays the TCP port number used by the vradmind daemons for communication between the Primary and the Secondary. With the port argument specified, sets the TCP port number to be used by the vradmind daemons. The new port is used when the vradmind process is restarted. vxrsyncd [port] Without the port argument, displays the port the TCP port number used by vxrsyncd daemons for communication between the Primary and the Secondary hosts. With the port argument specified, command sets the TCP port number to be used by the vxrsyncd daemons. The new port is used when the vxrsyncd process is restarted. EXAMPLES
See the Veritas Volume Replicator Configuration Notes for examples. EXIT CODES
The vrport utility exits with a non-zero status if the attempted operation fails. A non-zero exit code is not a complete indicator of the problems encountered but denotes the first condition that prevented further execution of the utility. SEE ALSO
vradmin(1M),vxrlink(1M) Veritas Volume Replicator Administrator's Guide Veritas Volume Replicator Configuration Notes VxVM 5.0.31.1 24 Mar 2008 vrport(1M)
All times are GMT -4. The time now is 09:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy