Sponsored Content
Full Discussion: mkuser
Operating Systems AIX mkuser Post 302289002 by Padow on Wednesday 18th of February 2009 01:49:43 PM
Old 02-18-2009
Yes.

I have, in the past, created a temporary second user with an ID of 0. I'll do this when a vendor comes on site to install an application for example.
Padow
 

4 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

AIX - Core dump when using mkuser

Hi all, I've got a strange problem here that is not documented in AIX FAQs and tech docs, and I was wondering if somebody out there encountered the same issue or had an idea to help me out. I'm using a script to create users with the "mkuser" command. I can set up any options I want (like... (1 Reply)
Discussion started by: dfrangidis
1 Replies

2. UNIX for Advanced & Expert Users

mkuser - how to initialize a password using this command

I need to give an initial password when creating a user via mkuser command. I'm using it in a script so that I don't have to login to each server and type in a passwd or pwdadm command. Thanks in advance. AIX environment. (0 Replies)
Discussion started by: pdtak
0 Replies

3. AIX

AIX mkuser with password

Hi I want to create a user on AIX box. The only problem I have is I want to set it a password and the user doesn't have to change the password at his initial login. Is there any flag to do that. Any help would be appreciated. (6 Replies)
Discussion started by: bandaru
6 Replies

4. UNIX for Dummies Questions & Answers

Passing variables to mkuser

In a ksh, I'm attempting to pass my string of arguments to the mkuser command in a variable as follows... cmd="pgrp=ACRGENU groups=ACRGENU home=/home/${USERID} shell=/usr/bin/ksh" cmd=$cmd" gecos='${USERNAME}' login=true su=false rlogin=true daemon=true" cmd=$cmd" admin=false... (4 Replies)
Discussion started by: bubbawuzhere
4 Replies
sysevent_get_vendor_name(3SYSEVENT)			  System Event Library Functions		       sysevent_get_vendor_name(3SYSEVENT)

NAME
sysevent_get_vendor_name, sysevent_get_pub_name, sysevent_get_pid - get vendor name, publisher name or processor ID of event SYNOPSIS
cc [flag ...] file ...-lsysevent [library ...] #include <libsysevent.h> char *sysevent_get_vendor_name(sysevent_t *ev); char *sysevent_get_pub_name(sysevent_t *ev); pid_t sysevent_get_pid(sysevent_t *ev); PARAMETERS
ev handle to a system event object DESCRIPTION
The sysevent_get_pub_name() function returns the publisher name for the sysevent handle, ev. The publisher name identifies the name of the publishing application or kernel subsystem of the sysevent. The sysevent_get_pid() function returns the process ID for the publishing application or SE_KERN_PID for sysevents originating in the ker- nel. The publisher name and PID are useful for implementing event acknowledgement. The sysevent_get_vendor_name() function returns the vendor string for the publishing application or kernel subsystem. A vendor string is the company's stock symbol that provided the application or kernel subsystem that generated the system event. This information is useful for filtering sysevents for one or more vendors. The interface manages the allocation of the vendor and publisher name strings, but it is the caller's responsibility to free the strings when they are no longer needed by calling free(3MALLOC). If the new vendor and publisher name strings cannot be created, sysevent_get_ven- dor_name() and sysevent_get_pub_name() return a null pointer and may set errno to ENOMEM to indicate that the storage space available is insufficient. EXAMPLES
Example 1: Parse sysevent header information. The following example parses sysevent header information from an application's event handler. char *vendor; char *pub; void event_handler(sysevent_t *ev) { if (strcmp(EC_PRIV, sysevent_get_class_name(ev)) != 0) { return; } vendor = sysevent_get_vendor_name(ev); if (strcmp("SUNW", vendor) != 0) { free(vendor); return; } pub = sysevent_get_pub_name(ev); if (strcmp("test_daemon", pub) != 0) { free(vendor); free(pub); return; } (void) kill(sysevent_get_pid(ev), SIGUSR1); free(vendor); free(pub); } ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
malloc(3MALLOC), attributes(5) SunOS 5.10 17 Mar 2004 sysevent_get_vendor_name(3SYSEVENT)
All times are GMT -4. The time now is 04:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy