12-15-2010
Hide DB Credentials in unix
Hi,
I my unix we have one file that contains all the database credentials.
we are calling that file while connecting databse.
I need to hide that file....other user should not view that file.
How to do this. Please suggest me apart from permisstion(chmod) level suggestion.
Regards,
Siva
10 More Discussions You Might Find Interesting
1. HP-UX
Hi all
I am new to unix...... i am working on HP-UX
I like to know how to hide files and how to view hided files created
by other users also
please help me
Sireesha (1 Reply)
Discussion started by: Sireesha NP
1 Replies
2. UNIX for Dummies Questions & Answers
Hi All, :)
I have configure openldap but when I test this its show me a massage that "Invalid Creedientials". I search for the slove at Google, Yahoo but I did not find any solution.
Plz help me. :cool: (3 Replies)
Discussion started by: Sudipta Biswas
3 Replies
3. Shell Programming and Scripting
Hi everybody,
Do you know how to hide the text for interactive unix shell script? Just like the case for inputting password during logon.
Patrick (1 Reply)
Discussion started by: patrickpang
1 Replies
4. AIX
Dears
i am going to write a shell script to do some administration jobs and automate them , but i need to access remote servers through telnet so my question is how to pass the required credentials to telnet through shell script or can i use a file and redirect the standard input to be from that... (3 Replies)
Discussion started by: TheEngineer
3 Replies
5. Cybersecurity
Hi,
By reporting the process status with ps, any Unix user will see the command line arguments
#ps -ef
UID PID PPID C STIME TTY TIME CMD
lsc 13837 13825 0 May 11 pts/17 0:01 -ksh
oracle 4698 6294 0 12:00:40 ? 0:00 sqlplus -s system/manager
appluser 4229 4062 0 12:00:03... (2 Replies)
Discussion started by: bhagirathi
2 Replies
6. AIX
dears,
good day.
i need to be able to take a mksysb for a machine running aix 6.1.5 without the root credentials and also without using sudo
any advice ? (2 Replies)
Discussion started by: islam.said
2 Replies
7. UNIX for Advanced & Expert Users
Hi,
We usually switch user using the below command.
sudo su - user1
It then prompts for the password which we feed in.
I wish to pass both the username and the password in one go thus eliminating the prompt for the password.
I am using java standalone to connect to unix using... (11 Replies)
Discussion started by: mohtashims
11 Replies
8. Programming
Hi,
I need to somehow pipe the password to a command and run some SQL, for example, something like echo $password | sqlplus -s system @query01.sql
To make it not so obvious, I decided to try out writing a small C program that basically just do echo $password. So now I just do x9.out | sqlplus... (8 Replies)
Discussion started by: newbie_01
8 Replies
9. UNIX for Advanced & Expert Users
Hello all,
I need some help with a script I have been working on. I was wanting to know if it is possible to add authentication to it for each server it runs across? The credentials are all the same on each server.
This is what I am using so far and it seems to work. I am trying to avoid... (3 Replies)
Discussion started by: Smorgen
3 Replies
10. Shell Programming and Scripting
Hi Everyone,
I am new to shell scripting and I have a requirement to fire a sql statement to Oracle database and create a out file in Unix server.
This will be plugged in to Autosys as a batch job.
I have the database credentials saved in a configuration file in the below format.
... (7 Replies)
Discussion started by: Pradeep_Raj
7 Replies
LEARN ABOUT CENTOS
cifscreds
CIFSCREDS(1) CIFSCREDS(1)
NAME
cifscreds - manage NTLM credentials in kernel keyring
SYNOPSIS
cifscreds add|clear|clearall|update [-u username] [-d] host|domain
DESCRIPTION
The cifscreds program is a tool for managing credentials (username and password) for the purpose of establishing sessions in multiuser
mounts.
When a cifs filesystem is mounted with the "multiuser" option, and does not use krb5 authentication, it needs to be able to get the
credentials for each user from somewhere. The cifscreds program is the tool used to provide these credentials to the kernel.
The first non-option argument to cifscreds is a command (see the COMMANDS section below). The second non-option argument is a hostname or
address, or an NT domain name.
COMMANDS
add Add credentials to the kernel to be used for connecting to the given server, or servers in the given domain.
clear
Clear credentials for a particular host or domain from the kernel.
clearall
Clear all cifs credentials from the kernel.
update
Update stored credentials in the kernel with a new username and password.
OPTIONS
-d, --domain
The provided host/domain argument is a NT domainname.
Ordinarily the second argument provided to cifscreds is treated as a hostname or IP address. This option causes the cifscreds program
to treat that argument as an NT domainname instead.
If there are not host specific credentials for the mounted server, then the kernel will next look for a set of domain credentials
equivalent to the domain= option provided at mount time.
-u, --username
Ordinarily, the username is derived from the unix username of the user adding the credentials. This option allows the user to
substitute a different username.
NOTES
The cifscreds utility requires a kernel built with support for the login key type. That key type was added in v3.3 in mainline Linux
kernels.
Since cifscreds adds keys to the session keyring, it is highly recommended that one use pam_keyinit to ensure that a session keyring is
established at login time.
SEE ALSO
pam_keyinit(8)
AUTHORS
The cifscreds program was originally developed by Igor Druzhinin <jaxbrigs@gmail.com>. This manpage and a redesign of the code was done by
Jeff Layton <jlayton@samba.org>.
2012-07-17 CIFSCREDS(1)