Masking password on command line
anyone know how to mask password from command line input
before version 1.4 ?
thx
In his java section, there is a way here:
http://www.rgagnon.com/bigindex.html
Similar Messages
-
How to Hide username and password in command line using maxl
Hi,
How to encript my user name and password in command line prompt when I am login to Essbase server using batch file:
*1_Here is my batch file:*
Name of the bat file AV_Assig_Var1.bat
rem This batch file defines the following variables:
set $1 = 'admin';
set $2 = 'password';
essmsh AV_Asig1.mxl admin password
===========================
*2_Here is my maxl file:*
Name of the bat file AV_Asig1.mxl
/* Create a process log */
spool on to 'D:\lova\spool_log.txt';
/* login (using variables from a batch file */
login $1 $2 on 10.42.100.229;
/* create application and database */
create application AV_Asig1;
create database AV_Asig1.AV_DB;
/* End process log */
spool off;
exit;
*3_Command line prompt*
D:\Ess>AV_Assig_Var1.bat
D:\Ess>rem This batch file defines the following variables:
D:\Ess>rem 1: username
D:\Ess>rem 2: password
D:\Ess>essmsh AV_Asig1.mxl admin password
Essbase MaxL Shell - Release 9.3.1 (ESB9.3.1.0.0A181)
Copyright (c) 2000, 2007, Oracle and/or its affiliates.
All rights reserved.
MAXL> login admin password on *10.46.100.222*; /* I want to hide this information */
OK/INFO - 1051034 - Logging in user [admin].
OK/INFO - 1051035 - Last login on Monday, June 14, 2010 12:44:03 PM.
OK/INFO - 1241001 - Logged in to Essbase.
MAXL> create application AV_Asig1;
OK/INFO - 1051061 - Application AV_Asig1 loaded - connection established.
OK/INFO - 1054027 - Application [AV_Asig1] started with process id [6792].
OK/INFO - 1056010 - Application AV_Asig1 created.
MAXL> create database AV_Asig1.AV_DB;
OK/INFO - 1054014 - Database AV_DB loaded.
OK/INFO - 1056020 - Database AV_Asig1.AV_DB created.
MaxL Shell completed
D:\Ess>
I am looking forward to inputs from anybody.
Thanks & Regards,
Deepthi.Beyond that thread, I gave a presentation at Kaleidoscope last year around MaxL that goes into quite a bit of depth re encryption and a whole bunch of other MaxL goodies.
To download it, go to www.odtug.com, click on Tech Resources, Essbase/Hyperion, and use the search box for MaxL.
There are two presentations, one by Tracy McMullen and the other by me. Tracy's is a good introduction to the various command groups; my presentation focused on a few areas in depth, one of which was encryption. The title is "Master Essbase with MaxL Automation".
You will need to join ODTUG to download the presentation, but there is a junior membership that is free.
Regards,
Cameron Lackpour
P.S. ODTUG Kaleidoscope 2010 is coming up in two weeks, starting on 27 June 2010 -- for those of you still on the fence, it is an awesome conference and I urge you all to come. The content this year will be fantastic. -
Dear everybody,
I would like to find a way to hide password on command line when user type password. There is a way that use another thread to output '\b*'. However, it has some bugs. And I can't use Console class which has a method to hide password. Because my JDK is 1.5 and I can't change it because of some reasons.
Does anybody know a way to hide password on command line?
Thanks very much!Because my JDK is 1.5 and I can't change it because of some reasons.Look how sweet Console is in 1.6:
import java.io.Console;
public class ConsoleExample {
public static void main(String[] args) {
Console console = System.console();
char[] password = console.readPassword("Please enter password:");
//don't do this: passwords shouldn't be stringified
String s = new String(password);
console.format("password =[%s]%n", s);
}Find a way to install 1.6! We believe in you! -
I have some password protected pdf documents. I would like to specify the password on the command line when I open them in Adobe Reader. Is there a command line option for this? (If it makes a difference, I have Windows Reader v. 8.1.2. running on Vista.) Thank you in advance.
This has been requested so often that I can only assume that Adobe
aren't doing this for a strong reason: perhaps a security related one.
Aandi Inston -
Changing OD Password via Command Line
How can i change the OD password via the command line? passwd doesn't do it because the password is still marked as "User must change password on next login"
I have a Mac OS X server (10.4.6) set up for Mobile users for mac os x clients (10.4.2-6) and I'm also setting up for a PDC for out windows computers. Right now the only hold up is if the password is expired in OD, windows is unable to change the password. So I'm going to custom edit my smb.conf with the proper settings since Mac OS X doesn't seam to do it.anyone?
basicly i need to know if there is a command line program to changet users OD passwords and mark the password has been changed in OD.
is this posable? and whats the command? -
Hiding password in command line
Hi,
I am really new to java. Need some way to not display password on screen as the user enters it. Can it be done without creating text field?
thanx
DivyaThis can't be done on the console in java. You need to use a GUI or JNI. Check out the last post from armalcolm on this thread for the JNI solution.
http://forum.java.sun.com/thread.jsp?forum=4&thread=195678 -
Vmrc.exe command line password option?
Does VMRC 7.0 have an option to enter the password from command line? I can only find a way to enter the username. The password is prompted during connection. I would like to find a way to script this command .
If this is a requirement what is wrong with using Ant? You can generate the Build.xml from the project by using New > Ant > BuildFile from Project so you don't have the pain of maintaining the basic script. Likewise you can use Ant as your build-system in the product as well if you only want to use one method. I find useful for making and testing all in one go.
Anyway in answer to your question no - to see the command line options to the IDE type jdev -help from the command prompt. -
How to login in command line by adding user/password in the same line
is it possible in OSX to login in terminal by typing:
+login username password+
I tried many unix command and never find a command that can do that in one line, it always ask for the password in the second line.
I need that to be used in Python application,
or if there any possibility to write code in python to do that in OSX using python osx modules,
while in windows it worked perfect by using win32API in Python.
I hope Apple developers can help me with That
ThanksThis isn't possible because it would be a terrible security vulnerability--any process on the system can see a program's command line arguments. (Just type "perl -e 'sleep 5' & ps" in a terminal if you don't believe me.) If you want to log in like this, you'll have to open the "login" program in such a way that you can give it the password through its standard input.
Also note, however, that "login" will not change the account your Python program is running as; it just starts a shell running as that account. If you want your program to run as a different user, you need to look into a set of commands and techniques called "setuid" or just "suid"; a Google search for "setuid python" should get you started. (I'm not a Python programmer, so I can't really tell you exactly how setuid works in Python.) -
Hide command line ebs password
Hi All,
is there a way to hide command line password for apps user.
when start or stop ebs apps from command line, i have to type
$adstrtal.sh apps/apps
is there a way to hide this password.
Thanks in advance.Hi,
I do not think there is a direct way to do this. However, look at this document and see if it helps.
Note: 377858.1 - Use Encrypt To Prevent Apps Pwd Being Displayed In Log/Sql Script
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=377858.1
Another option would be calling "adstrtal.sh apps/<apps password>" from some other script.
Regards,
Hussein -
File format for username/password file for -vcusersfile command line option
In what format do I specify username and password in a file that I can use for
the -vcusersfile command line option?The text file should contain name/password pairs separated by an equal sign. Example:
myname1=password1
myname2=password2
Hope that helps,
Susan Doan -
I want to set password security on a pdf from the command line
I have a pdf file that is created and placed on a report server. I would like to run a batch cmd to set the security for that pdf based on a saved security policy. I will call the batch cmd file from a batch application. Can Acrobat XI handle this operation or do I need a third party tool. The pdf is created by BI Publisher (Peoplesoft).
Thanks,
JayYou need to invoke your cmd manually, don't you? So, instead of opening the Terminal application, enter the command and press "Enter" you open Acrobat and click a button. It's a different manual step to start the process, but you need a manual step to start the process anyway. I do realize that you may have a bash/perl/python script that does more than just apply encryption but that's the capability that Acrobat has.
Regretfully, Acrobat JavaScript API does not provide functionality to encrypt with password. You can use JS to encrypt with certificates but [for unknown to me reason] not with passwords. Otherwise it could've written a JS script that encrypts, embed this JS in a separate PDF, open that PDF from a command line with your JS script executing on Open and have this LS script do all the work you need. Well, you can do that for certificate encryption but not for password encryption. I don't know why. And you cannot invoke an action from a JS either. Oh, well... -
Command Line to change all the users passwords
Hello there,
I run Tiger Server. I want to change the password for 300 students from the command line to 1234 as a password for all the students. Is there any easy way to change all the password at once.
Thanks,I changed it from WM. No terminal.
-
Hide oracle password on Unix command line call?
Does anyone know whether you can hide the password for a command line call to rwrun60 under Unix? For other Oracle products like sqlplus you can hide the password by supplying it using the redirection operator. i.e. sqlplus userid @script <<EOD and then put the password or password@sid on the next line and then EOD on the 3rd line to end the redirection. This virtually hides the password from anyone able to look at processes on the system. Can this also be done for rwrun60? If you just put the userid after userid= will reports prompt you for a password?
Take a look at http://java.sun.com/features/2002/09/pword_mask.html.
Hope this helps, -
Command line password parameter
Hi,
Is there a way to open an encrypted pdf file and give the password to Adobe Reader via the command line? I know this has been asked a couple of times before but all the answers I could find were at least three years old. If this cannot be done using the command line, are there any other options to call Adobe Reader while providing the password somehow?
Thanks in advanceany other way to programaticaly type in the password and clicking 'ok'?
the idea is to restrict access to a pdf if certain conditions arent fulfilled. -
Rpass - Secure, simple, and pluggable command-line password management
WARNING: this program requires a python version greater than or equal to 3.
EDIT: Fixed a bunch of bugs that made this unusable, please update!
EDIT: Added a default configuration file.
Hi there!
rpass is a command-line password manager that encrypts any and all credentials you would like to store using gpg's algorithms.
Gnome and Mac OS both have a universal credential solution, but to my knowledge there is no such generic linux application. Gnome's keyring code is long and personally, I don't trust it as much as the simple system I have in place in rpass - it is transparent and easy to understand, and any possible security holes would be blatantly visible.
rpass can be used directly from the commandline, typing your master password (gpg passphrase) in every time, but it really shines when gpg-agent and xclip are installed. gpg-agent saves your passphrase for an interval of time, so you only have to authenticate yourself occaisonally, and the powerful search capabilities of rpass (regex-enabled) allow simple and quick account selection.
Furthermore, with xclip installed passwords NEVER have to be printed onscreen - the first matching entry's password is automatically copied to the clipboard if a search is done with rpass. You can even run rpass from applications like 'dmenu', and although there will be no visible output, if you enter a search term after rpass you will have the password you wanted copied to your clipboard.
Finally, it can also be easily integrated in other applications -- I use it for my email (mutt) and any script I write that requires a password.
AUR Link: http://aur.archlinux.org/packages.php?ID=44788
More detailed documentation and explanation can be found at: https://github.com/rscare/rpass/blob/ma … E.asciidoc (scroll down)
or with
$ man rpass
after installation.
git repository: git://github.com/rscare/rpass.git
Please comment on the software and the documentation. Thank you very much for taking the time to try my software.
Last edited by RedScare (2010-12-27 07:04:44)I'm very interested in this. However... on the initial run, pressing enter causes a crash:
$ rpass
Need to first create gpg key pair.
Choose a secure passphrase -- this is going to be your master password.
Rerun program after key creation.
WARNING: DO NOT pick a sign-only key type.
Press [ENTER] when ready.
Traceback (most recent call last):
File "/usr/bin/rpass_py_interface", line 80, in <module>
input("Press [ENTER] when ready.")
File "<string>", line 0
^
SyntaxError: unexpected EOF while parsing
I got around this by entering junk and I made my key. After rerunning rpass with the key generated:
$ rpass
Traceback (most recent call last):
File "/usr/bin/rpass_py_interface", line 84, in <module>
if not(IsRunning(gpg-agent)):
File "/usr/lib/python2.7/site-packages/rpass.py", line 24, in IsRunning
plist = [re.match(ppatt, p.strip()).groups()[0] for p in str(proc.communicate()[0], encoding=utf-8).split(n)[1:-1]]
TypeError: str() takes at most 1 argument (2 given)
Looks like rpass expects the gpg-agent to be running when it starts.
edit: rather, it expects the gpg-agent to be running with the key loaded. gpg-agent was already loaded thanks to keychain but without my newly created key known to it.
Last edited by falconindy (2010-12-26 03:42:28)
Maybe you are looking for
-
I have a new Macbook Pro. Trying to migrate files etc from my Macbook Air using a Thunderbolt Cable between them. I follow the directions but the two computers never "discover" each other - using a WiFi connection works but 70 hours is a rough deal.
-
Mapping conversion help needed for date
Hi Experts, I need help in message mapping convesion for date field The source date field can have value '2010-06-04T02:09:59.610-07:00' or 2010-06-04T02:09:60.610-07:00 I have to change it to '2010-06-04T02:09:59.000-07:00'. ie, if the seconds are 5
-
Search files in current folder doesn't work
When I search my whole mac for e.g. "Danse Macabre" i get the results from all over the place, which is to be expected. So when I go into the folder I get a list of files including the one I was searching for. So far so good. While typing in a new se
-
Problems with template and page links..
Hello community! I'm pretty new to dreamweaver Cs4 and am having a slight problem. I have my template.dwt file and 5 other pages which use this template layout. However when I preview my website in my browser, the template.dwt file links to all the p
-
NSInvalidArgumentException: unrecognized selector sent to class
I'm trying to find my way around Objective-C and Cocoa, and I've stumbled upon a problem I just can't figure out. I think I'm missing something fundamental here. Here's the issue: I have a subclass of UIView with a NSMutableArray *_balls declared in