Sponsored Content
Contact Us Post Here to Contact Site Administrators and Moderators Password protected excel file without encryption or zipping Post 303006351 by Corona688 on Tuesday 31st of October 2017 05:45:49 PM
Old 10-31-2017
Bumping up posts or double posting is not permitted in these forums.

Please read the rules, which you agreed to when you registered, if you have not already done so.

You may receive an infraction for this. If so, don't worry, just try to follow the rules more carefully. The infraction will expire in the near future

Thank You.

The UNIX and Linux Forums.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Zipping with password or encryption

We currently take files (via FTP) off of a mainframe and save them as a text file on our server. This is done via a script. The next thing that is done to that text file is it gets zipped (using ZIP). This all works fine, but it doesn't appear that ZIP (the free version) has any way to password... (2 Replies)
Discussion started by: dsimpg1
2 Replies

2. UNIX for Dummies Questions & Answers

Print on a printer which is password protected

Hi, I am trying to print from HP unix machine to a Toshiba printer which is password protected. How can I print? Thanks. Anuj (1 Reply)
Discussion started by: Anuj
1 Replies

3. AIX

File password protection/encryption

Can it be done? Ive read in a few places that the crypt program no longer exists on AIX...if its do-able please tell me how. (2 Replies)
Discussion started by: rdudejr
2 Replies

4. Shell Programming and Scripting

How to make script password protected

Hi All, I want to make my script password protected. i e: if somebody runs my script it should prompt for password. Can somebody help me in to execute the same?? Thanks in Advance :b: (11 Replies)
Discussion started by: achararun
11 Replies

5. UNIX for Advanced & Expert Users

Problem in converting password protected excel file to csv file in unix

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

6. Shell Programming and Scripting

Unzipping files <password protected>

Hie Friends, I need your help once again. I have 77 “password protected” winzip files in linux/unix server. I want to decrypt it through an automated script. Password of every file is same and it is mhd*tt. Please help me. Usually I unzip it as follows, manually one by one. unzip <file name> ... (6 Replies)
Discussion started by: anushree.a
6 Replies

7. Shell Programming and Scripting

Password protecting a Excel file.

Hi, I want to make Excel files password protected present in my Unix directory. I have a application which will basically invoke a shell script with a parameter passed. The purpose of shell script would be to pop up a box to enter password. This password will be validated against database entry... (1 Reply)
Discussion started by: anil029
1 Replies

8. Shell Programming and Scripting

Make a password protected bash script resist/refuse “bash -x” when the password is given

I want to give my long scripts to customer. The customer must not be able to read the scripts even if he has the password. The following command locks and unlocks the script but the set +x is simply ignored. The code: read -p 'Script: ' S && C=$S.crypt H='eval "$((dd if=$0 bs=1 skip=//|gpg... (7 Replies)
Discussion started by: frad
7 Replies

9. Shell Programming and Scripting

DB Password encryption in config file

Hi Gurus, I need to encrypt the Db passwords which are stored in a configuration file (.txt) as below: stage_db_pwd=ABC this is test line content_db_pwd=123def This is test line 2 stg_db_name=xyz I want to encrypt all the password fields (identified by "pwd"), encrypt them in the same... (3 Replies)
Discussion started by: ashishpanchal85
3 Replies

10. Shell Programming and Scripting

Password protected excel file without encryption or zipping

All, I have requirement to send password protected excel file in an email from unix/linux box without zipping it. Any help would be appreciated. Thanks.. (8 Replies)
Discussion started by: Durgesh Gupta
8 Replies
getspwent(3X)															     getspwent(3X)

NAME
getspwent(), getspwuid(), getspwaid(), getspwnam(), setspwent(), endspwent(), fgetspwent(), getspwent_r(), getspwuid_r(), getspwaid_r(), getspwnam_r(), setspwent_r(), endspwent_r(), fgetspwent_r() - get secure password file entry on trusted systems SYNOPSIS
Obsolescent Interfaces The following re-entrant interfaces are to be obsoleted: DESCRIPTION
These privileged routines provide access to the protected password database in a manner similar to the way getpwent(3C) routines handle the regular password file, These routines are particularly useful in situations where it is not necessary to get information from the regular password file. getsp- went(3X) can be used on a trusted system to return the password, audit ID, and audit flag information. Programs using these routines must be linked with the security library, Note that routines are no longer supported. They are temporarily available for backward compatibility. New applications accessing the protected password database on trusted systems should use the routines. See getprpwent(3). and each returns a pointer to an object of s_passwd structure. The s_passwd structure is maintained for compatibility with existing soft- ware and consists of five fields as follows: Since the s_passwd structure is declared in the header file, it is unnecessary to redeclare it. To access other fields in the protected password database that are not included in the s_passwd structure, use See getprpwent(3) for more information. When first called, returns a pointer to each s_passwd structure obtained from the protected password database for each user in sequence. Subsequent calls can be used to search the entire database. Searches for an entry that matches the specified uid. It then returns a pointer to the particular structure in which uid is found. Similarly searches for a numerical audit ID matching aid and returns a pointer to the particular structure in which aid is found (see passwd(4) for details on this field). Searches for an entry that matches the specified name. Returns a pointer to the particular structure in which name is found. Resets the protected password database pointer to the beginning of the file to allow repeated searches. Should be called to close the protected password database file when processing is complete. Is no longer supported. It is provided for those applications that did not use Reentrant Interfaces and expect to be passed three extra parameters: 1. The address of an s_passwd structure where the result will be stored; 2. A buffer to store character strings (such as the password) to which fields in the s_passwd structure will point; 3. The length of the user-supplied buffer. A buffer length of 1024 is recommended. In addition to the above three parameters, requires a pointer to a variable. and are to be used only in conjunction with and take the same pointer to a variable as a parameter. can be used to rewind or open the protected password database. should be called when done to close the file. Note that the variable must be initialized to NULL before it is passed to or for the first time. Thereafter it should not be modified in any way. and are to be obsoleted at a future date. APPLICATION USAGE
In a multithreaded application, these routines are safe to be called only from one dedicated thread. These routines are not POSIX.1c async-cancel safe nor async-signal safe. RETURN VALUE
returns a NULL pointer if any of its routines encounters an end-of-file or error while searching, or if the effective user ID of the call- ing process is not zero. returns a -1 if any of its routines encounters an end-of-file or error, or if the supplied buffer has insufficient length. If the opera- tion is successful, 0 is returned. WARNINGS
The above routines use which causes them to increase the size of programs by more than might otherwise be expected. Since all information for and is contained in a static area, it must be copied to be saved. Network Information Service is not supported on trusted systems. The routines described in this manpage are no longer supported. They are temporarily available for backward compatibility and are to be obsoleted. Obsolescent Interfaces The following interfaces are to be obsoleted: and HP-UX 11i Version 3 is the last release to support trusted systems functionality. EXAMPLES
The following code excerpt counts the number of entries in the protected password database: AUTHOR
was developed by HP. FILES
Protected Password database SEE ALSO
ypcat(1), getgrent(3C), getlogin(3C), getpwent(3C), getprpwent(3), passwd(4). TO BE OBSOLETED getspwent(3X)
All times are GMT -4. The time now is 10:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy