Sponsored Content
Top Forums Shell Programming and Scripting no chance to input passwd when create new user in loop Post 302590573 by crest.boy on Monday 16th of January 2012 09:10:06 PM
Old 01-16-2012
Quote:
Originally Posted by vbe
Without seeing the code, it will be difficult to answer...
My script just contains the below statement to setting users password:
Code:
passwd $userName

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Loop until user input is correct

Hello, i know how to retrieve a user input (read), and how to manage the different options (case statement). But... could anybody show me a script that, if the user option is incorrect, don't allow to continue the excution, i.e., if the value entered is not 1 or 2, the script shows a question. ... (2 Replies)
Discussion started by: aristegui
2 Replies

2. UNIX for Dummies Questions & Answers

Getting user input from inside a while loop?

I'm new to BASH and i'm trying to create a script which is simply put a large find and replace file. This is what I have so far N=0 while read LINE ; do N=$((N+1)) sed 's/'$2'/'$3'/g' $LINE > .temp echo "Changes to file $N = $LINE" echo 'The following changes... (5 Replies)
Discussion started by: Azumandious
5 Replies

3. Shell Programming and Scripting

Create a multi user input form

Hi All, Please ignore if terminology used is incorrect as I am new to Unix. I want to create a Multi user input form which looks something like this: ABCD TOOL Logged User: abcd12 ... (4 Replies)
Discussion started by: vidhu0007
4 Replies

4. Shell Programming and Scripting

every time user input create array perl

Hi, How to create array every time user input and store user input and display all array print " Enter input " my @input = split(' ', $input) chmop($input = <STDIN>; foreach ($input) { @array= @input; } print @array"\n"; (1 Reply)
Discussion started by: guidely
1 Replies

5. Shell Programming and Scripting

How to automatically create variables from user input in ksh?

I need some help to write a ksh script. My code so far (pretty bad, sorry): #! /bin/ksh echo "Calculate average" UserDecision=y while test $UserDecision = y do echo "Enter a number: " read Number1 echo "Enter a number: " read Number2 echo "Do you want to enter another number?... (2 Replies)
Discussion started by: johnagar
2 Replies

6. Shell Programming and Scripting

matching user input to a text file loop?

until do read -p "Invalid cars. Try againa" cars1 done Ok i have the above code, im getting users input and if it doesnt match in the file the user has to try again untill its correct But when i run this it gives me an error saying ./Cars.bash: line 43: (2 Replies)
Discussion started by: gangsta
2 Replies

7. Shell Programming and Scripting

create an array which can store the strings from the user input in shell script

I want to create an array which can store the strings from the user input in shell script . example :- I want to store the 5 fruits name in a single array which the user provides . (1 Reply)
Discussion started by: Pkast
1 Replies

8. Shell Programming and Scripting

Loop breaks on yes/no user input

I have a shell script, and its pretty much done, I decided to add a loop that ends or continues depending on user input. like "would you like to continue?" and if I hit y or yes it will run the loop again until I hit n or no and breaks out of the loop. To be hones I didn't think I needed to add... (2 Replies)
Discussion started by: Demon_Jester
2 Replies

9. Shell Programming and Scripting

Automaticaly create function based off user input

I am trying to create a bash script that will create new function by using the user input. The below will create the necessary files in the correct format, however when it comes to the # create function I am at a loss. If the name entered was NEWNAME and the genes were GENE1,GENE2 then two files... (0 Replies)
Discussion started by: cmccabe
0 Replies

10. Shell Programming and Scripting

Would like to check user input for letters within a loop

Hi All, #!/bin/bash #Just trying to check if letters are in the user input. Any tips? # I have tried regexp and using 0-9 etc, i cannot get this to work either in just an if statement or while in a loop. echo "Please pick a number" read num if ; then echo "Please enter a number"... (7 Replies)
Discussion started by: jvezinat
7 Replies
imqusermgr(1M)						  System Administration Commands					    imqusermgr(1M)

NAME
imqusermgr - command utility for managing a Message Queue user repository SYNOPSIS
/usr/bin/imqusermgr subcommand [[option]...] /usr/bin/imqusermgr -h /usr/bin/imqusermgr -v DESCRIPTION
The imqusermgr utility manages a file-based user repository to authenticate and authorize users of a Message Queue message server. imqusermgr provides subcommands for adding, deleting, updating, and listing user entries in the repository. imqusermgr supports four management subcommands. These subcommands, and their corresponding options follow the imqusermgr command on the command line. See USAGE and OPTIONS. The following subcommands are supported: add Add a new user and associated password to the repository. delete Delete a user from the repository. list Display information users in the repository. update Update the password or state of a user in the repository. OPTIONS
The following options are supported: -a active_state Specify if user's state is active or inactive. An inactive user cannot create connections to the Message Queue message server. Valid values for active_state are true or false. Specify true for active or false for inactive. the default is true. Use this option with the update subcommmand. -f Perform action without user confirmation. Use this option with the delete and update subcommmands. -g group Specify the group of the user. Valid values for group are admin, user, and anonymous. Use this option with the add subcommmand. -h Display usage help. Exceute nothing else on the command line. -i brokerName Specify the broker instance user repository to which the command applied. If you do not specify brokerName, the default brokerName is assumed. Use this option with the add, delete, list, and update subcommmands. -p password Specify user password. Use this option with the add and update subcommmands. -s Silent mode. Display no output Use this option with the add, delete, and update subcommands. -u userName Specify user name. userName cannot contain the following characters: asterisk (*), colon (:), <NEWLINE>, or <RETURN>. Use this option with the add, delete, update and list subcommands. -v Display version information. Exceute nothing else on the command line. USAGE
The following subcommands and corresponding options are supported: add -u userName -p password [-g group] [-s] [-i brokerName] Add a new user and associated password to the repository, and optionally specify the user's group. delete -u userName [-s] [-f] [-i brokerName] Delete a user from the repository. list [-u user_name] [-i brokerName] Display information about the specified user in the repository. If no user is specified, all users are displayed. update -u userName -p password [-a state] [-s] [-f] [-i brokerName] update -u userName -a state [-p password] [-s] [-f] [-i brokerName] Update the password or state (or both) of a user. ENVIRONMENT VARIABLES
The following environment variables affect the execution of this command: IMQ_JAVAHOME Specify the Java 2 compatible runtime. When this environment variable is not set, it defaults to /usr/j2se. EXIT STATUS
The following exit values are returned: 0 Successful completion. >0 An error occurred. FILES
/etc/imq/passwd Flat-file user repository. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWiqu | +-----------------------------+-----------------------------+ SEE ALSO
imqadmin(1M), imqbrokerd(1M), imqcmd(1M), imqdbmgr(1M), imqkeytool(1M), imqobjmgr(1M), attributes(5) Sun Java System Message Queue Administrator's Guide SunOS 5.10 23 Mar 2004 imqusermgr(1M)
All times are GMT -4. The time now is 07:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy