Hi there,
I just want to know if there's anyway to protect any tar file with a password that requierd when somebody want to extract that tar.
thanks in advance
regards,
Abdulkarim (1 Reply)
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)
Ok here at work I have been charged with finding a way to create a password protect .tar files from the command line. Now i have yet to actully sit down and learn UNIX yet, but that is one of my next todo's. Anyway my questions is I have been surfing in search of a solution and the closest answer... (5 Replies)
Is there a way to password protect a printer that is on a LAN network? Our security officer said our UNIX printers need to be password protected. Is this possible? I am running Solaris 7 and 8...
Thanks in advanced for any suggestions. (4 Replies)
I'm wondering if there is a way to zip a file and password protect it non-interactively.
zip -e will prompt for a password but I don't want a prompt. This needs to be done automatically as part of a shell script.
I'm using the zip command because the will be unzipped by a Windows machine. ... (1 Reply)
Hi,
Is it possible to make sure/test that all uploaded files to my FTP will be of .RAR format (that's easy) but also password protected?
Thanks (0 Replies)
Hi,
I'm working on Solaris 9 and i need to unzip a password protected zip, which i can do using
zip -Ppassword filename
however when i have done what i need to do with the file is to zip the file back up with a password. Zip on my system is version 2.3 and does not support this?
How can... (0 Replies)
Hi,
I am using Red Hat OS 5.0, is there any way that i can password protect directories. I know i can change permission so that no other user can access the content, but sometimes in my office environment i need to share vnc terminal with other people from my login itself. So i want that if user... (1 Reply)
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)
Is there a way to have a user be prompted for a password to open a file? I am trying to protect a bash script from being changed. Thank you :). (3 Replies)
Discussion started by: cmccabe
3 Replies
LEARN ABOUT SUNOS
crypt
crypt(3C) Standard C Library Functions crypt(3C)NAME
crypt - string encoding function
SYNOPSIS
#include <crypt.h>
char *crypt(const char *key, const char *salt);
Standard conforming
#include <unistd.h>
char *crypt(const char *key, const char *salt);
DESCRIPTION
The crypt() function encodes strings suitable for secure storage as passwords. It generates the password hash given the key and salt.
The key argument is the plain text password to be encrypted.
If the first character of salt is "$", crypt() uses crypt.conf(4) to determine which shared module to load for the encryption algorithm.
The algorithm name crypt() uses to search in crypt.conf is the string between the first and second "$", or between the first "$" and first
"," if a "," comes before the second "$".
If the first character of salt is not "$", the algorithm described on crypt_unix(5) is used.
RETURN VALUES
Upon successful completion, crypt() returns a pointer to the encoded string. Otherwise it returns a null pointer and sets errno to indicate
the error.
The return value points to static data that is overwritten by each call.
ERRORS
The crypt() function will fail if:
EINVAL An entry in crypt.conf is invalid.
ELIBACC The required shared library was not found.
ENOMEM There is insufficient memory to generate the hash.
ENOSYS The functionality is not supported on this system.
USAGE
The values returned by this function might not be portable among standard-conforming systems. See standards(5).
Applications should not use crypt() to store or verify user passwords but should use the functions described on pam(3PAM) instead.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO passwd(1), crypt_genhash_impl(3C), crypt_gensalt(3C), crypt_gensalt_impl(3C), getpassphrase(3C), pam(3PAM), passwd(4), policy.conf(4),
attributes(5), crypt_unix(5), standards(5)SunOS 5.10 28 Sep 2004 crypt(3C)