Sponsored Content
Full Discussion: mkuser
Operating Systems AIX mkuser Post 302288982 by senmak on Wednesday 18th of February 2009 12:49:15 PM
Old 02-18-2009
mkuser

Can we create new user with same UID?? why do we need that and what is the purpose to create like that
 

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
KEYCTL_GET_KEYRING_ID(3)				    Linux Key Management Calls					  KEYCTL_GET_KEYRING_ID(3)

NAME
keyctl_get_keyring_ID - Get the ID of a special keyring SYNOPSIS
#include <keyutils.h> key_serial_t keyctl_get_keyring_ID(key_serial_t key, int create); DESCRIPTION
keyctl_get_keyring_ID() maps a special key or keyring ID to the serial number of the key actually representing that feature. The serial number will be returned if that key exists. If the key or keyring does not yet exist, then if create is non-zero, the key or keyring will be created if it is appropriate to do so. The following special key IDs may be specified as key: KEY_SPEC_THREAD_KEYRING This specifies the caller's thread-specific keyring. KEY_SPEC_PROCESS_KEYRING This specifies the caller's process-specific keyring. KEY_SPEC_SESSION_KEYRING This specifies the caller's session-specific keyring. KEY_SPEC_USER_KEYRING This specifies the caller's UID-specific keyring. KEY_SPEC_USER_SESSION_KEYRING This specifies the caller's UID-session keyring. KEY_SPEC_REQKEY_AUTH_KEY This specifies the authorisation key created by request_key() and passed to the process it spawns to generate a key. If a valid keyring ID is passed in, then this will simply be returned if the key exists; an error will be issued if it doesn't exist. RETURN VALUE
On success keyctl_get_keyring_ID() returns the serial number of the key it found. On error, the value -1 will be returned and errno will have been set to an appropriate error. ERRORS
ENOKEY No matching key was found. ENOMEM Insufficient memory to create a key. EDQUOT The key quota for this user would be exceeded by creating this key or linking it to the keyring. LINKING
This is a library function that can be found in libkeyutils. When linking, -lkeyutils should be specified to the linker. SEE ALSO
keyctl(1), add_key(2), keyctl(2), request_key(2), keyctl(3), request-key(8) Linux 4 May 2006 KEYCTL_GET_KEYRING_ID(3)
All times are GMT -4. The time now is 04:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy