Sponsored Content
Full Discussion: Install Script
Top Forums Shell Programming and Scripting Install Script Post 302380618 by frans on Tuesday 15th of December 2009 04:39:15 PM
Old 12-15-2009
Quote:
Originally Posted by gaurav1086
Hello ,
that would again require to manually enter the password at the prompt for all the hosts. So I would recommend using an expect script like this.
Good, i'll have to learn more about expect.
But the passwords can be seen in the script and therefore it's not very secure.
I prefer (it has to be done once for each server but can then be used later) the public key authentication.
But take care: It's secure only if nobody else uses your account on your own computer.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Can't install a soft with a script .sh

Hello ! I just want to install Oreon (it's a plugin for Nagios) but I can't, I have this error when I run the script install.sh # ./install.sh functions: 21: Syntax error: "(" unexpected Have you got an idea ? Tx (10 Replies)
Discussion started by: wappyboy
10 Replies

2. Shell Programming and Scripting

Install a cron from a Perl script

Hello Everyone, How do I go about if I want to install a cron from a Perl script? Please advice :) (2 Replies)
Discussion started by: garric
2 Replies

3. Shell Programming and Scripting

Help with an install script

Hello all. I have a script I have written which runs a silent install of Mcafee AV and ePO for Mac OS X. The issue I am wondering about is what happens when the script launches the installers. The script is fairly simple, and just invokes the shell installer for each app: #! /bin/sh ... (1 Reply)
Discussion started by: dhs23
1 Replies

4. Shell Programming and Scripting

Install script

Hi, During an install script I modify the config file several times renamed as conffile.cfg_new. Each time I need to restore it to conffile.cfg. INSTALLDIR=/app/MyAPP USERNAME=bianca RESTORE='rename conffile.cfg_new conffile.cfg ${INSTALLDIR}/conffile.cfg_new' #example sed -e... (2 Replies)
Discussion started by: potro
2 Replies

5. UNIX for Advanced & Expert Users

Running Script after Preseed Install

Hello there, If you don't want to here the long version, but still want to answer my question, please skip down to THE BOTTOM! You can probably tell what I want to do already from the title, so I'll sum up what I have already done real quick: First off, for those that don't know, a preseed... (1 Reply)
Discussion started by: Curtor
1 Replies

6. Shell Programming and Scripting

Script to install jdk

Hi, I need a shell script that would do silent installation of jdk on a linux machine. Can anyone help me with this? Thanx Sunny (6 Replies)
Discussion started by: eamani_sun
6 Replies

7. Linux

install macbook pro fedora10 ???((<<if can install, how to install? >> ))

If may install can Tells everybody ??? (0 Replies)
Discussion started by: kzBSD
0 Replies

8. Shell Programming and Scripting

Help With Install Script

I have an installation script that my customer has been using for some time that exists on a DVD image I send to my customers. The DVD image I send to my customer has now reached the point of becoming multiple DVDs. My customer is in the habit of executing the installation script using the... (0 Replies)
Discussion started by: scotbuff
0 Replies

9. UNIX for Dummies Questions & Answers

Driver Install Script

Hi, I am faily new to linux and bash scripting. But essentially what I am trying to do is create a small bash script that will automatically install a driver I want. I can do it manually but I want to create a script so I won't forget, since it is an internet driver I won't be able to get help when... (0 Replies)
Discussion started by: dmacmillan
0 Replies
KAS_SETPASSWORD(8)					       AFS Command Reference						KAS_SETPASSWORD(8)

NAME
kas_setpassword - Changes the key field in an Authentication Database entry SYNOPSIS
kas setpassword -name <name of user> [-new_password <new password>] [-kvno <key version number>] [-admin_username <admin principal to use for authentication>] [-password_for_admin <admin password>] [-cell <cell name>] [-servers <explicit list of authentication servers>+] [-noauth] [-help] kas setpasswd -na <name of user> [-ne <new password>] [-k <key version number>] [-a <admin principal to use for authentication>] [-p <admin password>] [-c <cell name>] [-s <explicit list of authentication servers>+] [-no] [-h] kas setp -na <name of user> [-ne <new password>] [-k <key version number>] [-a <admin principal to use for authentication>] [-p <admin password>] [-c <cell name>] [-s <explicit list of authentication servers>+] [-no] [-h] kas sp -na <name of user> [-ne <new password>] [-k <key version number>] [-a <admin principal to use for authentication>] [-p <admin password>] [-c <cell name>] [-s <explicit list of authentication servers>+] [-no] [-h] DESCRIPTION
The kas setpassword command accepts a character string of unlimited length, scrambles it into a form suitable for use as an encryption key, places it in the key field of the Authentication Database entry named by the -name argument, and assigns it the key version number specified by the -kvno argument. To avoid making the password string visible at the shell prompt, omit the -new_password argument. Prompts then appear at the shell which do not echo the password visibly. When changing the afs server key, also issue bos addkey command to add the key (with the same key version number) to the /etc/openafs/server/KeyFile file. See the OpenAFS Administration Guide for instructions. The command interpreter checks the password string subject to the following conditions: o If there is a program called kpwvalid in the same directory as the kas binary, the command interpreter invokes it to process the password. For details, see kpwvalid(8). o If the -reuse argument to the kas setfields command has been used to prohibit reuse of previous passwords, the command interpreter verifies that the password is not too similar too any of the user's previous 20 passwords. It generates the following error message at the shell: Password was not changed because it seems like a reused password To prevent a user from subverting this restriction by changing the password twenty times in quick succession (manually or by running a script), use the -minhours argument on the kaserver initialization command. The following error message appears if a user attempts to change a password before the minimum time has passed: Password was not changed because you changed it too recently; see your systems administrator OPTIONS
-name <name of user> Names the entry in which to record the new key. -new_password <new password> Specifies the character string the user types when authenticating to AFS. Omit this argument and type the string at the resulting prompts so that the password does not echo visibly. Note that some non-AFS programs cannot handle passwords longer than eight characters. -kvno <key version number> Specifies the key version number associated with the new key. Provide an integer in the range from 0 through 255. If omitted, the default is 0 (zero), which is probably not desirable for server keys. -admin_username <admin principal> Specifies the user identity under which to authenticate with the Authentication Server for execution of the command. For more details, see kas(8). -password_for_admin <admin password> Specifies the password of the command's issuer. If it is omitted (as recommended), the kas command interpreter prompts for it and does not echo it visibly. For more details, see kas(8). -cell <cell name> Names the cell in which to run the command. For more details, see kas(8). -servers <authentication servers>+ Names each machine running an Authentication Server with which to establish a connection. For more details, see kas(8). -noauth Assigns the unprivileged identity "anonymous" to the issuer. For more details, see kas(8). -help Prints the online help for this command. All other valid options are ignored. EXAMPLES
In the following example, an administrator using the "admin" account changes the password for "pat" (presumably because "pat" forgot the former password or got locked out of his account in some other way). % kas setpassword pat Password for admin: new_password: Verifying, please re-enter new_password: PRIVILEGE REQUIRED
Individual users can change their own passwords. To change another user's password or the password (server encryption key) for server entries such as "afs", the issuer must have the "ADMIN" flag set in his or her Authentication Database entry. SEE ALSO
bos_addkey(8), kas(8), kaserver(8), kpwvalid(8) COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved. This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell. OpenAFS 2012-03-26 KAS_SETPASSWORD(8)
All times are GMT -4. The time now is 03:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy