03-05-2002
executing encrypted files
Hi,
Is there a way of executing encrypted files? I have encrpyted files using vi and crypt, but when I execute the encrypted file, it takes the contents literally (special characters, junk - encrpyted format).
Kind Regards,
Kawah
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
Is there a way of executing encrypted files? I have encrpyted files using vi and crypt, but when I execute the encrypted file, it takes the contents literally (special characters, junk - encrpyted format).
Kind Regards,
Kawah (1 Reply)
Discussion started by: Kawah Cheung
1 Replies
2. Programming
Hi there
I compiled a simple .c file using the cc command, the file was
compiled successfully and executable file (a.out) was generated.
But When I executed the a.out file it gave me:
bash: a.out: command not found
Can anybody tell me what's the problem.
Note that I'm using:
Red Hat... (3 Replies)
Discussion started by: HAS
3 Replies
3. UNIX for Dummies Questions & Answers
Hi lads me again
trying to get a wee bit fancy with my scripting
anyway it dosn't seem to want to run (strange as it may seem)
I encrypted a file renamed it and wrote another file that unencrypts it
(it contains passwords) (and b4 anyone says I am doing this for my own reasons)
In a... (3 Replies)
Discussion started by: w33man
3 Replies
4. Shell Programming and Scripting
Can we execute an encrypted shell script .
I encrypted a shell scripts with crypt with keys and tried to execute it it gave me segmentation faul??
Can somebody answer this one please??
If we can is there any settings i need to change??
Thanks (2 Replies)
Discussion started by: ajnabi
2 Replies
5. UNIX for Dummies Questions & Answers
Good day all.
I want to unzip multiple files in a directory. Suppose there are two files:
test.txt.zip and test1.txt.zip
Using this command:
unzip -o -P test*.zip
results in the unzipping of the first file not second.
It gives this error:
Archive: test.txt.zip
caution: filename not... (2 Replies)
Discussion started by: er_ashu
2 Replies
6. UNIX for Dummies Questions & Answers
I have 2 files :-
1) f1.txt and f2.txt.Both contain some text as -
2)Now I did :
output: I got them to be equal.
3) I encrypted them using gpg and with the SAME paraphrase :-
4)Now I did :
#cmp f1.txt.gpg f2.txt.gpg
(OR)
#diff f1.txt.gpg f2.txt.gpg
output: I got them to be... (1 Reply)
Discussion started by: nsharath
1 Replies
7. Shell Programming and Scripting
Hi , I am novice in Unix.
Kindly , try to resolve my query.
I have 3 folders. Inside these folders , I have few files respectively.
Now , Instead of deleting each file by visitng the directory.
I want to write a script which when executed all files gets deleted with that.
For ex:-
Dir -... (1 Reply)
Discussion started by: devmns
1 Replies
8. Linux
I need to encrypt a ".txt" file with password settings and it should decrypt the file automatoically when end user types correct password.
Can some one help me on this.
Thank you (3 Replies)
Discussion started by: rlmadhav
3 Replies
9. Shell Programming and Scripting
Whats the difference between executing a file such as test.sh as:
./test.sh
as apposed to
sh test.sh
i've noticed that a simple while loop will not execute for the 2nd way of doing it, but will for the first. Also what do you guys all recom (6 Replies)
Discussion started by: linuxkid
6 Replies
10. Shell Programming and Scripting
Hello everyone. I am new to shell scripting and i am required to create a shell script, the purpose of which i will explain below.
I am on a solaris server btw.
Before delving into the requirements, i will give youse an overview of what is currently in place and its purpose.
... (2 Replies)
Discussion started by: goddevil
2 Replies
LEARN ABOUT MINIX
pwdauth
PWDAUTH() PWDAUTH()
NAME
pwdauth - password authentication program
SYNOPSIS
/usr/lib/pwdauth
DESCRIPTION
Pwdauth is a program that is used by the crypt(3) function to do the hard work. It is a setuid root utility so that it is able to read the
shadow password file.
Pwdauth expects on standard input two null terminated strings, the password typed by the user, and the salt. That is, the two arguments of
the crypt function. The input read in a single read call must be 1024 characters or less including the nulls. Pwdauth takes one of two
actions depending on the salt.
If the salt has the form "##user" then the user is used to index the shadow password file to obtain the encrypted password. The input
password is encrypted with the one-way encryption function contained within pwdauth and compared to the encrypted password from the shadow
password file. If equal then pwdauth returns the string "##user" with exit code 0, otherwise exit code 2 to signal failure. The string
"##user" is also returned if both the shadow password and the input password are null strings to allow a password-less login.
If the salt is not of the form "##user" then the password is encrypted and the result of the encryption is returned. If salt and password
are null strings then a null string is returned.
The return value is written to standard output as a null terminated string of 1024 characters or less including the null.
The exit code is 1 on any error.
SEE ALSO
crypt(3), passwd(5).
NOTES
A password must be checked like in this example:
pw_ok = (strcmp(crypt(key, pw->pw_passwd), pw->pw_passwd) == 0);
The second argument of crypt must be the entire encrypted password and not just the two character salt.
AUTHOR
Kees J. Bot (kjb@cs.vu.nl)
PWDAUTH()