I found out a very strange behavior.
If I call ssh, my password will be invisible when I'm prompted to type it:
Code:
santiago@cassiopee:~$ ssh titan.caoba.fr "echo connected"
santiago@titan.caoba.fr's password: <--- password is hidden when typed
connected
santiago@cassiopee:~$
If I call sudo, my password will also be invisible when I'm prompted to type it:
Code:
santiago@cassiopee:~$ sudo echo superpower
[sudo] password for santiago: <--- password is hidden when typed
superpower
santiago@cassiopee:~$
So far, that's everything we want. But if I combine the two commands, the password is fully and clearly displayed when prompted to type it in for sudo:
Code:
santiago@cassiopee:~$ ssh titan.caoba.fr "sudo echo connected with superpower"
santiago@titan.caoba.fr's password: <--- password is hidden when typed
[sudo] password for santiago: abc123<--- password is NOT hidden when typed
connected with superpower
santiago@cassiopee:~$
I am doing a project in C program which requires to type in password in Unix terminal. Does anybody know how to shade or not output any words typed by user in the terminal?
I use the function scan() to read typing from user. Thanks in advance. (2 Replies)
Hi falks,
I have the following ksh code:
echo "Enter VS Admin password:"
oldstty=`stty -g`
stty -echo intr '$-'
read password
stty $oldstty
echo
This code ask from a user to enter his password. The OS suppose to hide the entering of the... (2 Replies)
All,
In my script I am calling another script.. in that script I need to enter a password. Problem is that everyone is able to see the password when I enter that. Is there any way that when i enter that password it should not display or may look like *******.
Or if there any other way that I... (1 Reply)
Hi,
I am writing a UNIX .ksh script and need to send the login password of the login id that is executing the script to a command that I am executing in the script. I don't want that password to be seen by anyone except whoever is executing the script.
Does anyone know how I can accomplish... (6 Replies)
Helo ..
How Can i Hide My Server Type Here
Hostpres.com - Host Pres
And writing Secureb By ....
And how Can i Hide uname -a: Linux server.xxxx.net 2.6.18-ovz028stab053.14-enterprise #1 SMP Mon Jun 2 18:25:30 MSD
2008 i686
From Php Shell Like c99... (3 Replies)
my os is freebsd 7.1
just open sshd and hide the sshd banner
nessus still report correctly the os type
how to hide os type from scaning of nmap or nessus?
Thanx so much.
my ipfw rule:
ipfwcmd="ipfw -q add allow tcp"
localip="192.168.1.254"
$ipfwcmd from any to $localip 22 in setup... (2 Replies)
hi all,
i run sqlplus command on unix(HP-UX)
like "sqlplus username/password@serverA @deneme.sql"
but when someone run "ps -ef | grep sqlplus", it can see my username and password :(
How can i hide username and password.
thanx. (1 Reply)
Dear folks,
The title of my thread says mostly all of what I want to do. Basically I want to auto-ssh to a remote host, and run a program on it (VLC is just an example). I wrote a script which calls xterm and then runs expect on it. The code is as follow
#!/bin/bash
export PASS="xxxxxxx"... (22 Replies)
Hi
I have following problem Im writing a script (in bash ) , where need to be written login & passwd for databas client .
Its need to in following form login passwd@dbhostname .
The problem is so anybody can read it so the passwd & login are visible and thats not very safety .
Can... (8 Replies)
Hi Am using unix Aix Ksh
I need to hide the password using echo cmd
Connecting the database and fetching ip_address and password from one table.
greping the IP_address and password using two variable
IP_addr
Pawd
Then Used echo cmd
echo " connecting to $IP-addr and $Pawd"
... (3 Replies)
Jifty::Plugin::Authentication::Password::Mixin::Model::UUser3Contributed Perl DocuJifty::Plugin::Authentication::Password::Mixin::Model::User(3pm)NAME
Jifty::Plugin::Authentication::Password::Mixin::Model::User - password plugin user mixin model
SYNOPSIS
package MyApp::Model::User;
use Jifty::DBI::Schema;
use MyApp::Record schema {
# custom column definitions
};
use Jifty::Plugin::User::Mixin::Model::User; # name, email, email_confirmed
use Jifty::Plugin::Authentication::Password::Mixin::Model::User;
# ^^ password, auth_token
DESCRIPTION
This mixin model is added to the application's account model for use with the password authentication plugin. This mixin should be used in
combination with Jifty::Plugin::User::Mixin::Model::User.
SCHEMA
This mixin adds the following columns to the model schema:
auth_token
This is a unique identifier used when confirming a user's email account and recovering a lost password.
password
This is the user's password. It will be stored in the database after being processed through Digest::MD5, so the password cannot be
directly recovered from the database.
METHODS
register_triggers
Adds the triggers to the model this mixin is added to.
password_is PASSWORD
Checks if the user's password matches the provided PASSWORD.
hashed_password_is HASH TOKEN
Check if the given HASH is the result of hashing our (already salted and hashed) password with TOKEN.
This can be used in cases where the pre-hashed password is sent during login as an additional security precaution (such as could be done
via Javascript).
validate_password
Makes sure that the password is six characters long or longer, unless we have alternative means to authenticate.
after_create
This trigger is added to the account model. It automatically sends a notification email to the user for password confirmation.
See Jifty::Plugin::Authentication::Password::Notification::ConfirmEmail.
has_alternative_auth
If your model supports other means of authentication, you should have this method return true, so the "password" field can optionally be
null and authentication with password is disabled in that case.
after_set_password
Regenerate authentication tokens on password change
regenerate_auth_token
Generate a new auth_token for this user. This will invalidate any existing feed URLs.
SEE ALSO
Jifty::Plugin::Authentication::Password, Jifty::Plugin::User::Mixin::Model
LICENSE
Jifty is Copyright 2005-2010 Best Practical Solutions, LLC. Jifty is distributed under the same terms as Perl itself.
perl v5.14.2 2010-12-10 Jifty::Plugin::Authentication::Password::Mixin::Model::User(3pm)