03-26-2002
File password.
Hello,
Is there a way to protect a file with password
on opening the file.
Thank You
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have created a PHP page that I use to clean files on my machine. I would like to leave the file there but I want to password protect it so that I am the only one that can run it from the shell. Does anyone know how to do this? Thanks.
-Cam (2 Replies)
Discussion started by: perryl7
2 Replies
2. Shell Programming and Scripting
hi , have a nice day
i need some help on this , lets suppose i have a script at certain path , i can set its attributes with chmod but since me and all my colleagues have "root" access on that machine so chmod wont do the job
i want them all to only be able to execute this script but cant... (6 Replies)
Discussion started by: Dastard
6 Replies
3. Shell Programming and Scripting
Hi Friends.
I am new to scripting now i want to change the root password using the script with standard password.
which is the easy scripting to learn for the beginner, Thanks in advance. (2 Replies)
Discussion started by: kurva
2 Replies
4. UNIX for Advanced & Expert Users
I need to convert a password protected excel file which will be in UNIX server to a comma separated file. For this I need to open the excel file in UNIX box but the UNIX box doesn't prompt for password instead it is opened in an encrypted manner.
I could manually ftp the excel file to local... (2 Replies)
Discussion started by: Devivish
2 Replies
5. Shell Programming and Scripting
hello there. Is there a way to password protect a file and make it so that several passwords can open it?
i'm trying to write a script that open up a file if the password given by a user is one of many other passwords in the database of the file.
not sure if this is possible. thanks
the... (2 Replies)
Discussion started by: SkySmart
2 Replies
6. UNIX for Dummies Questions & Answers
Hi
We send *.csv with sensitive data to our customers. Our customers open those files with Excel.
A new requirement is that we password protect those CSV files.
I thought to pack them with ZIP and assign a password to the archive.
But Solaris 10 can't encrypt ZIP files.
$ zip -P... (12 Replies)
Discussion started by: slashdotweenie
12 Replies
7. Shell Programming and Scripting
Hi Guys,
I am generating a csv file using a shell script in Unix. Please can you guys advise if I can also password protect the file.
Best Regards,
Shaz (5 Replies)
Discussion started by: Shazin
5 Replies
8. UNIX for Dummies Questions & Answers
Hi Admin
I'm trying to execute on a script which in my production server. The production server has to phase login.
First, we need to login to a Taxi server by opening a putty session from there we need to login to production server. Both servers using same LDAP id so I am able to login with... (7 Replies)
Discussion started by: senthil.ak
7 Replies
9. UNIX for Dummies Questions & Answers
Hi,
newbie to Linux,
is there another way to zip a file with a password other than using 'zip' command? (7 Replies)
Discussion started by: mined
7 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
LEARN ABOUT DEBIAN
ssl_ctx_set_default_passwd_cb_userdata
SSL_CTX_set_default_passwd_cb(3SSL) OpenSSL SSL_CTX_set_default_passwd_cb(3SSL)
NAME
SSL_CTX_set_default_passwd_cb, SSL_CTX_set_default_passwd_cb_userdata - set passwd callback for encrypted PEM file handling
SYNOPSIS
#include <openssl/ssl.h>
void SSL_CTX_set_default_passwd_cb(SSL_CTX *ctx, pem_password_cb *cb);
void SSL_CTX_set_default_passwd_cb_userdata(SSL_CTX *ctx, void *u);
int pem_passwd_cb(char *buf, int size, int rwflag, void *userdata);
DESCRIPTION
SSL_CTX_set_default_passwd_cb() sets the default password callback called when loading/storing a PEM certificate with encryption.
SSL_CTX_set_default_passwd_cb_userdata() sets a pointer to userdata which will be provided to the password callback on invocation.
The pem_passwd_cb(), which must be provided by the application, hands back the password to be used during decryption. On invocation a
pointer to userdata is provided. The pem_passwd_cb must write the password into the provided buffer buf which is of size size. The actual
length of the password must be returned to the calling function. rwflag indicates whether the callback is used for reading/decryption
(rwflag=0) or writing/encryption (rwflag=1).
NOTES
When loading or storing private keys, a password might be supplied to protect the private key. The way this password can be supplied may
depend on the application. If only one private key is handled, it can be practical to have pem_passwd_cb() handle the password dialog
interactively. If several keys have to be handled, it can be practical to ask for the password once, then keep it in memory and use it
several times. In the last case, the password could be stored into the userdata storage and the pem_passwd_cb() only returns the password
already stored.
When asking for the password interactively, pem_passwd_cb() can use rwflag to check, whether an item shall be encrypted (rwflag=1). In
this case the password dialog may ask for the same password twice for comparison in order to catch typos, that would make decryption
impossible.
Other items in PEM formatting (certificates) can also be encrypted, it is however not usual, as certificate information is considered
public.
RETURN VALUES
SSL_CTX_set_default_passwd_cb() and SSL_CTX_set_default_passwd_cb_userdata() do not provide diagnostic information.
EXAMPLES
The following example returns the password provided as userdata to the calling function. The password is considered to be a '