Hello:
I'm a totally newbie here. My company has UNIX. My development team would like me to learn UNIX and shell scripting.
I've worked with Linux in the past, very briefly. I have Ubuntu installed on my laptop. I was wondering whether or not the shell scripting for Linux is the same... (0 Replies)
# sub: find block (in cols), return line-numbers (begin-end) or 0 if notfound
sub findb{
my ($exp1,$col1,$exp2,$col2)= @_; # $exp = expression to find, $col - column to search in
my $cnt=0;
my ($val1,$val2);
my ($beg,$end);
for($cnt=1;$cnt<=65536;$cnt++){
$val1 =... (3 Replies)
Hi
I've been using Linux (Ubuntu) specifically for about 5 years now and been dabbling with nix for a couple more. I really am worried that with the way distro's are going and package management that i'm starting to loose touch with compiling applications and really understanding how they work.... (4 Replies)
i am trying to understand this script example. the text does not explain it. can someone tell me briefly what each of the functions do. any help will be appreciated.
#!/bin/bash
killtree() {
local _pid=$1
local _sig=${2-TERM}
for _child in $(ps -o pid --no-headers --ppid... (1 Reply)
Hi,
I have started reading about Linux kernel. The books also explains about the source code here and there.
I found a file named head.s in the source which i am not able to understand, it looks like some assembly language.
Can anyone confirm this, so that can start looking for assemble... (3 Replies)
Hi Guys,
I am new to scripting , I am trying to rebuild a script based on an old script. Can someone help me figure out what the script is doing? This is only a part of the script.
I am looking to interpret these two points in the scripts:-
1)
test=`echo $?`
while
I do not... (3 Replies)
Hi,
New to this forum, as well as to unix scripting..need help to understand below script ...
sendNotice_sp()
{
ATTACH=${LNXLOG:-}
if ; then
if ; then
mail -s "$ERR_MSG" $ERR_EMAIL_TO < $ATTACH
fi
else
mail -s "$ERR_MSG" $ERR_EMAIL_TO < /dev/null
fi
}
afaik this is sm kind of... (6 Replies)
Could someone please help me in understanding the code below:
#!/usr/bin/ksh
Month=`date|cut -c5-7`
Day=`date|cut -c9-10`
Year=`date|cut -c27-28`
Rom2Jul() { case $Month in Feb) Day=$(( $Day+31 ));;
Mar) Day=$((... (27 Replies)
Below script is called as Reducer, I am not sure how it work, can some expert explain me what this script does as i am a beginner.
inputfile:
hi hi how are are you
code:
#!/bin/bash
lastkey=""; -- what does this mean, because i saw in debug mode it is taking value as hi
count=0;... (13 Replies)
Discussion started by: mirwasim
13 Replies
LEARN ABOUT DEBIAN
amcrypt-ossl-asym
AMCRYPT-OSSL-ASYM(8) System Administration Commands AMCRYPT-OSSL-ASYM(8)NAME
amcrypt-ossl-asym - crypt program for Amanda asymmetric data encryption using OpenSSL
SYNOPSIS
amcrypt-ossl-asym [-d]
DESCRIPTION
amcrypt-ossl-asym uses OpenSSL to encrypt and decrypt data. OpenSSL is available from www.openssl.org. OpenSSL offers a wide variety of
cipher choices ( amcrypt-ossl-asym defaults to 256-bit AES) and can use hardware cryptographic accelerators on several platforms.
amcrypt-ossl-asym will search for the OpenSSL program in the following directories:
/bin:/usr/bin:/usr/local/bin:/usr/ssl/bin:/usr/local/ssl/bin.
GENERATING PUBLIC AND PRIVATE KEYS
RSA keys can be generated with the standard OpenSSL commands, e.g.:
$ cd /var/lib/amanda
$ openssl genrsa -aes128 -out backup-privkey.pem 1024
Generating RSA private key, 1024 bit long modulus
[...]
Enter pass phrase for backup-privkey.pem: ENTER YOUR PASS PHRASE
Verifying - Enter pass phrase for backup-key.pem: ENTER YOUR PASS PHRASE
$ openssl rsa -in backup-privkey.pem -pubout -out backup-pubkey.pem
Enter pass phrase for backup-privkey.pem: ENTER YOUR PASS PHRASE
Writing RSA key
To generate a private key without a passphrase, omit the -aes128 option. See openssl_genrsa(1) for more key generation options.
Note that it is always possible to generate the public key from the private key.
KEY AND PASSPHRASE MANAGEMENT
amcrypt-ossl-asym uses the public key to encrypt data. The security of the data does not depend on the confidentiality of the public key.
The private key is used to decrypt data, and must be protected. Encrypted backup data cannot be recovered without the private key. The
private key may optionally be encrypted with a passphrase.
While the public key must be online at all times to perorm backups, the private key and optional passphrase are only needed to restore
data. It is recommended that the latter be stored offline all other times. For example, you could keep the private key on removable media,
and copy it into place for a restore; or you could keep the private key online, encrypted with a passphrase that is present only for a
restore.
OpenSSL's key derivation routines use a salt to guard against dictionary attacks on the pass phrase; still it is important to pick a pass
phrase that is hard to guess. The Diceware method (see www.diceware.com) can be used to create passphrases that are difficult to guess and
easy to remember.
FILES
/var/lib/amanda/backup-privkey.pem
File containing the RSA private key. It should not be readable by any user other than the Amanda user.
/var/lib/amanda/backup-pubkey.pem
File containing the RSA public key.
/var/lib/amanda/.am_passphrase
File containing the passphrase. It should not be readable by any user other than the Amanda user.
SEE ALSO amanda(8), amanda.conf(5), openssl(1), amcrypt-ossl(8)
The Amanda Wiki: : http://wiki.zmanda.com/
AUTHOR
Kevin Till <kevin.till@zmanda.com>
Zmanda, Inc. (http://www.zmanda.com)
NOTES
1. www.openssl.org
http://www.openssl.org/
2. www.diceware.com
http://www.diceware.com/
Amanda 3.3.1 02/21/2012 AMCRYPT-OSSL-ASYM(8)