01-11-2012
Any other process on the system may be able to read that password in transit when you put it in the environment, though it's not as obvious as making it a parameter.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there, Ive got a feeling this is quite complex but I have a Comma delimited file which is being transfered up to a mainframe and I have to get every column lining up , I need to add in characters to line it up (but different characters and in different positions based on what field/column it... (1 Reply)
Discussion started by: hcclnoodles
1 Replies
2. UNIX for Dummies Questions & Answers
Has anyone heard of an OpenSSH client being compiled with an additional command-line option for password input?
I realize there are reasons to NOT do this, and I realize you can achieve the same type of thing with keys, but I am specifically looking to pass the username & password BOTH on the... (5 Replies)
Discussion started by: jjinno
5 Replies
3. Shell Programming and Scripting
Hi all.
I am not a DBA. But I do have responsibility for making sure the archive logs dont fill up and cause the database. This happend the other day while I was absent (sick) and I got a good ticking off for it.
Needless to say I dont want this happen!
Could anyone lend a hand to a... (8 Replies)
Discussion started by: Incremental
8 Replies
4. UNIX for Advanced & Expert Users
Hi,
I am using diff command to check difference between two files.Both files are very big and when i execute this command /var temp space is filled up almost 99%.
Can any one please tell me is there any way i can specify directory name which has more space so that diff can use that dir for... (2 Replies)
Discussion started by: ukatru
2 Replies
5. UNIX for Advanced & Expert Users
I would like to use SFTP from command line without entering userid and password.
Here is what I have gathered and did.
1) Create a public and private key pair for the protocol you want to use.
To create a key pair for use by SSH2, enter:
ssh-keygen -t dsa
I did that and got... (7 Replies)
Discussion started by: Hangman2
7 Replies
6. Shell Programming and Scripting
I am trying to fill out a web form from within a script I am writing. I think that I should be using curl to do this, but I'm not really sure. The form has username and password fields and a submit button. I want to be able to log in from the command line.
Html from the site:
<h5... (2 Replies)
Discussion started by: vockleya
2 Replies
7. Shell Programming and Scripting
Dear All,
I am new to unix and I am trying to build a shell script which will connect to a different server by passing username and password from a file or command line but not manually...
In short I dont want to connect to a diff server via ftp interactively.
Any suggestion...looking... (8 Replies)
Discussion started by: Pratik4891
8 Replies
8. Shell Programming and Scripting
Hi, I'm writing a script,
in the script I need to use tcpdump to capture some packets
however it needs root priviledge
my computer is configured by school and I have no real root priviledge
so I can't use sudo on my computer,like
Code:
sudo tcpdump ......
I have to use a limited... (1 Reply)
Discussion started by: esolve
1 Replies
9. Shell Programming and Scripting
Using useradd abc --password password (5 Replies)
Discussion started by: Jagruti Rml
5 Replies
10. Shell Programming and Scripting
I am trying to create a script that checks if my VPN connection is up and running...
Everything seems to work as except but for some reason, the script fills up my /var/log/auth.log with the below information
Dec 13 01:07:44 debian sudo: soichiro : TTY=pts/0 ; PWD=/home/soichiro/Desktop ;... (5 Replies)
Discussion started by: soichiro
5 Replies
LEARN ABOUT PHP
packfile_password
packfile_password(3alleg4) Allegro manual packfile_password(3alleg4)
NAME
packfile_password - Sets the global I/O encryption password. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
void packfile_password(const char *password);
DESCRIPTION
Sets the encryption password to be used for all read/write operations on files opened in future using Allegro's packfile functions (whether
they are compressed or not), including all the save, load and config routines. Files written with an encryption password cannot be read
unless the same password is selected, so be careful: if you forget the key, nobody can make your data come back again! Pass NULL or an
empty string to return to the normal, non-encrypted mode. If you are using this function to prevent people getting access to your
datafiles, be careful not to store an obvious copy of the password in your executable: if there are any strings like "I'm the password for
the datafile", it would be fairly easy to get access to your data :-)
Note #1: when writing a packfile, you can change the password to whatever you want after opening the file, without affecting the write
operation. On the contrary, when writing a sub-chunk of a packfile, you must make sure that the password that was active at the time the
sub-chunk was opened is still active before closing the sub-chunk. This is guaranteed to be true if you didn't call the packfile_password()
routine in the meantime. Read operations, either on packfiles or sub-chunks, have no such restriction.
Note #2: as explained above, the password is used for all read/write operations on files, including for several functions of the library
that operate on files without explicitly using packfiles (e.g. load_bitmap()). The unencrypted mode is mandatory in order for those func-
tions to work. Therefore remember to call packfile_password(NULL) before using them if you previously changed the password. As a rule of
thumb, always call packfile_password(NULL) when you are done with operations on packfiles. The only exception to this is custom packfiles
created with pack_fopen_vtable().
SEE ALSO
pack_fopen(3alleg4), load_datafile(3alleg4), pack_fopen_vtable(3alleg4)
Allegro version 4.4.2 packfile_password(3alleg4)