06-23-2008
Password is getting displayed
My shell script which runs on solaris has an execution in it.
Contents of shell script BEGIN :
Executable_filename username/password@DBinstance parameter2 parameter3
Contents of shell script END :
When i launch the shell script, it connects to database to gets few details..
In the console, when i execute "ps -aef | grep report", i am seeing "username/password@DBinstance" attached to unix user process..
What can i do for NOT to display database username/password which gets displayed on the console..?
10 More Discussions You Might Find Interesting
1. Solaris
Hi,
I posted a problem earlier on on how to change IP addresses on an E450. I was able to work around this and wanna say thanks to all who assisted. But now on my server, I get this error, trying to configure hosts..RPC timed out. Also, when I type on the command line, hostname, nothing is... (7 Replies)
Discussion started by: Ronny
7 Replies
2. HP-UX
Hi
swlist command is not displayed in HP-UX ..it displays
swlist: Command not found.
uname -a
HP-UX inccishh B.11.11 U 9000/800 4046719263 unlimited-user license
:b:
Best Regards
vasanthan (4 Replies)
Discussion started by: vasanthan
4 Replies
3. Shell Programming and Scripting
I am writting script like
echo "ENTER USERNAME: \c "
read uName
echo "ENTER PASSWORD: \c"
read pwd
In this it is shwng password on screen, I want to hide it, how can I do that (5 Replies)
Discussion started by: scorp_rahul23
5 Replies
4. Shell Programming and Scripting
Hi,
I am a newbie to both Linux and this forum.
I was trying to pull out the data from a database but it is not showing up in the multiple lines, with my limited knowledge i linux u tried to format this but wasn't exactly getting what i wanted.
The screenshot below shows my problem.
... (2 Replies)
Discussion started by: Ninjaa
2 Replies
5. Shell Programming and Scripting
Hi
While doing the following command password is gettin dispalyed :
ssh <host> "sudo command ; exit"
....
while i type my password for 2nd its gettin displayed ...
i tried stty -echo and stty echo
...
still i am havin problem..:confused: (1 Reply)
Discussion started by: ningy
1 Replies
6. Shell Programming and Scripting
Hi,
Want to highlight the string displayed on the screen.
ften="File selected"
FB1="\e
From the above code,
String "File selected" gets highlighted, but the string in the next line does not get highlighted.
I tried using FB1& FB2 variables but didn't worked out may be due to too... (1 Reply)
Discussion started by: milink
1 Replies
7. Shell Programming and Scripting
I have a script which checks for *.txt files in a particular directory and if no files were found then it goes into sleep for 10 secs and looks back for files again and if any files were found then the script does some processing with the files found, which is my requirement too.
FILE_EXISTS=`ls... (5 Replies)
Discussion started by: vpv0002
5 Replies
8. Shell Programming and Scripting
I am trying to get a file by doing ftp to the server.
The below script works fine but as I type password it is displayed as simple text.
HOST='192.108.245.101'
echo 'username: '
read USER
echo 'password:'
read PASSWD
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
lcd... (1 Reply)
Discussion started by: hiten.r.chauhan
1 Replies
9. Shell Programming and Scripting
I am trying to display a string in zenity:
chars="\, /, <, >, ?, |, &, $"
echo $chars
\, /, <, >, ?, |, &, $
Now when I execute:
zenity --forms --text="Chars not allowed: $chars" --add-entry="File Name"
Instead of getting Chars not allowed: \, <, >, ?, |, &, $ I am getting Forms... (3 Replies)
Discussion started by: soichiro
3 Replies
10. Forum Support Area for Unregistered Users & Account Problems
I was unable to login and so used the "Forgotten Password' process. I was sent a NEWLY-PROVIDED password and a link through which my password could be changed. The NEWLY-PROVIDED password allowed me to login.
Following the provided link I attempted to update my password to one of my own... (1 Reply)
Discussion started by: Rich Marton
1 Replies
su(1) General Commands Manual su(1)
Name
su - substitute a user ID
Syntax
su [username]
su - [username]
su -f [username]
Description
The command requests the password of the specified username. If the correct password is given, changes to that username without changing
the current directory. The user environment is unchanged except for HOME and SHELL which are taken from the password file entry for user-
name. The shell that is run is also taken from the password file entry for username. The new user ID stays in force until the shell
exits.
If no username is specified, `root' is assumed. To remind the superuser of his responsibilities, the shell substitutes `#' for its usual
prompt.
Options
-f Prevents from executing the .cshrc file, making start up faster.
- Simulates a full login.
Diagnostics
Sorry
An invalid password was supplied for the specified username.
Unknown login: username
The specified username was not found in the passwd database.
No directory
The home directory for the username is not accessible at this time (only with ``-'' argument).
No shell
The shell specified in the passwd database entry for username could not be executed.
Kerberos initialization failure
Consult your system administrator.
If enhanced security features are enabled the following error messages are also possible:
Requires secure terminal
Attempt to su to UID 0 on a line that is not marked secure in
User's password has expired
Access is denied because the password for username is expired.
This account is disabled
Access is denied because the auth entry corresponding to username is marked disabled.
Files
Log file of anyone who became
root, with a date mark.
See Also
csh(1), sh(1), passwd(5yp), environ(7), edauth(8)
Security Guide for Administrators
Security Guide for Users
su(1)