06-21-2005
Can i enter password with out user interaction
Can any body help me to write a scripting program for entering a password at run time with out user interaction.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Can anybody tell me how can I create an account without having to enter the password after editing the vipw file. I mean the system should automatically take care of the password encryption in the shadow file and I don't to enter the password again and the Account should be ready to go.
... (3 Replies)
Discussion started by: syedifti
3 Replies
2. Solaris
When i come to the login screen i will put root and no password, and it will say its incorrect, but even when i try to enter a password nothing comes up in the box (2 Replies)
Discussion started by: possuman72
2 Replies
3. Programming
Hi all,
I am struck at this point and needed some help in ruby
I wanted to write a script that accepts the no of VNICs the user wants to create and
then ask for the name of each Vnic he wants
then use these names to create the corresponding Vnics
Eg: suppose that there are 2 Vnics to be... (0 Replies)
Discussion started by: wrapster
0 Replies
4. Shell Programming and Scripting
I'm wanting to get user interaction...textbox or checkboxes would be great. I want to allow someone to enter data into textbox. (this is the time I want to grab a photo from) Then I want to be able to check the different sizes I want for the image. Say 4 options.
Is this possible using the... (0 Replies)
Discussion started by: mainegate
0 Replies
5. Solaris
Hi Guys,
I have one requirement like if we run install.sh file it should have to create a zone and install oracle in that zone with out any user interaction. So the complete code should be automated.
Almost 90% of the code I completed but i am having some doubts
1) After the zone creation... (1 Reply)
Discussion started by: vijaysachin
1 Replies
6. Shell Programming and Scripting
Hi,
I am trying to ssh into a remote machine and then enter a vserver on the remote machine. I am using here document to carry out these commands on the remote machine. My here document looks like this
ssh username@remotemachine << HERE
sudo vserver vservername enter
HERE
however the sudo... (0 Replies)
Discussion started by: mnanavati
0 Replies
7. Shell Programming and Scripting
Please tell me how to write a bash script that asks the user to enter a word and that passes the entered word to a variable.
echo "Type a word and press the Enter key:"
myVar=`cat`
echo "You entered $myVar"
The above code is very awkward, because it requires the user to enter... (2 Replies)
Discussion started by: LessNux
2 Replies
8. Programming
Hi there,
I am trying to run a .sh file with plink from vb.net.
I am now able to run the .sh on vb.net but i have a problem because the .sh script require user input:
The .sh is prompting a few question and require user to input y/n to proceed.
I am trying... (3 Replies)
Discussion started by: yun
3 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
Is there any way to terminate scp command when the password was not entered for some specific amount of time. (1 Reply)
Discussion started by: Girish19
1 Replies
LEARN ABOUT CENTOS
systemd-ask-password
SYSTEMD-ASK-PASSWORD(1) systemd-ask-password SYSTEMD-ASK-PASSWORD(1)
NAME
systemd-ask-password - Query the user for a system password
SYNOPSIS
systemd-ask-password [OPTIONS...] [MESSAGE]
DESCRIPTION
systemd-ask-password may be used to query a system password or passphrase from the user, using a question message specified on the command
line. When run from a TTY it will query a password on the TTY and print it to STDOUT. When run with no TTY or with --no-tty it will query
the password system-wide and allow active users to respond via several agents. The latter is only available to privileged processes.
The purpose of this tool is to query system-wide passwords -- that is passwords not attached to a specific user account. Examples include:
unlocking encrypted hard disks when they are plugged in or at boot, entering an SSL certificate passphrase for web and VPN servers.
Existing agents are: a boot-time password agent asking the user for passwords using Plymouth; a boot-time password agent querying the user
directly on the console; an agent requesting password input via a wall(1) message; an agent suitable for running in a GNOME session; a
command line agent which can be started temporarily to process queued password requests; a TTY agent that is temporarily spawned during
systemctl(1) invocations.
Additional password agents may be implemented according to the systemd Password Agent Specification[1].
If a password is queried on a TTY, the user may press TAB to hide the asterisks normally shown for each character typed. Pressing Backspace
as first key achieves the same effect.
OPTIONS
The following options are understood:
-h, --help
Prints a short help text and exits.
--icon=
Specify an icon name alongside the password query, which may be used in all agents supporting graphical display. The icon name should
follow the XDG Icon Naming Specification[2].
--timeout=
Specify the query timeout in seconds. Defaults to 90s. A timeout of 0 waits indefinitely.
--no-tty
Never ask for password on current TTY even if one is available. Always use agent system.
--accept-cached
If passed, accept cached passwords, i.e. passwords previously typed in.
--multiple
When used in conjunction with --accept-cached accept multiple passwords. This will output one password per line.
EXIT STATUS
On success, 0 is returned, a non-zero failure code otherwise.
SEE ALSO
systemd(1), systemctl(1), plymouth(8), wall(1)
NOTES
1. systemd Password Agent Specification
http://www.freedesktop.org/wiki/Software/systemd/PasswordAgents
2. XDG Icon Naming Specification
http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html
systemd 208 SYSTEMD-ASK-PASSWORD(1)