03-27-2002
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..
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
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
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
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
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
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
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
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
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
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
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
LEARN ABOUT OPENSOLARIS
dad
dad(7D) Devices dad(7D)
NAME
dad - driver for IDE disk devices
SYNOPSIS
dad@ target,lun:partition
DESCRIPTION
This driver handles the ide disk drives on SPARC platforms. The type of disk drive is determined using the ATA IDE identify device command
and by reading the volume label stored on the drive. The dad device driver supports the Solaris SPARC VTOC and the EFI/GPT disk volume
labels.
The block-files access the disk using the system's normal buffering mechanism and are read and written without regard to physical disk
records. There is also a "raw" interface that provides for direct transmission between the disk and the user's read or write buffer. A
single read or write call usually results in one I/O operation; raw I/O is therefore considerably more efficient when many bytes are trans-
mitted. The names of the block files are found in /dev/dsk. Raw file names are found in /dev/rdsk.
I/O requests to the raw device must be aligned on a 512-byte (DEV_BSIZE) boundary and must have a length that is a multiple of 512 bytes.
Requests that do not meet the restrictions cause the driver to return an EINVAL error. I/O requests to the block device have no alignment
or length restrictions.
Device Statistics Support
Each device maintains I/O statistics both for the device and for each partition allocated on that device. For each device/partition, the
driver accumulates reads, writes, bytes read, and bytes written. The driver also takes hi-resolution time stamps at queue entry and exit
points, which facilitates monitoring the residence time and cumulative residence-length product for each queue.
Each device also has error statistics associated with it. These must include counters for hard errors, soft errors and transport errors.
Other data may be implemented as required.
FILES
/dev/dsk/cntndnsn block files
/dev/rdsk/cntndnsn raw files
where:
cn controller n
tn IDE target id n (0-3)
dn Always 0.
sn partition n (0-7)
The target ide numbers are assigned as:
0 Master disk on Primary channel.
1 Slave disk on Primary channel.
2 Master disk on Secondary channel
3 Slave disk on Secondary channel.
IOCTLS
Refer to dkio(7I).
ERRORS
EACCES Permission denied.
EBUSY The partition was opened exclusively by another thread.
EFAULT Argument was a bad address.
EINVAL Invalid argument.
EIO I/O error occurred.
ENOTTY The device does not support the requested ioctl function.
ENXIO The device did not exist during opening.
EROFS The device is a read-only device.
SEE ALSO
format(1M), mount(1M), lseek(2), read(2), write(2), driver.conf(4), vfstab(4), dkio(7I)
X3T10 ATA-4 specifications.
DIAGNOSTICS
Command:<number>, Error:<number>, Status:<number>
Indicates that the command failed with an error and provides status register contents. Where <number> is a hexadecimal value.
offline
The driver has decided that the target disk is no longer there.
disk ok
The target disk is now responding again.
disk not responding to selection
The target disk is not responding.
i/o to invalid geometry
The geometry of the drive could not be established.
incomplete read/write - retrying/giving up
There was a residue after the command completed normally.
no bp for disk label
A bp with consistent memory could not be allocated.
no memory for disk label
Free memory pool exhausted.
ATA transport failed: reason 'nnnn': {retrying|giving}
The host adapter has failed to transport a command to the target for the reason stated. The driver will either retry the command or,
ultimately, give up.
no mem for property
Free memory pool exhausted.
transport rejected (<n>)
Host adapter driver was unable to accept a command.
Device Fault
Device fault - reason for such error is vendor specific.
SunOS 5.11 24 Oct 2005 dad(7D)