02-06-2011
Is there a reason why you cannot create a group, chgrp the file to the group, and put users who need to read the file in the group?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I need to password protect a particular file on one of my websites. Is it possible to password protect the entire directory? Or can I only password protect one file.
How do I do this? Does it have to do with the .HTACCESS file on my unix server?
Please Help!
~ :confused: ~ (2 Replies)
Discussion started by: iriemember
2 Replies
2. Shell Programming and Scripting
Good day
I would like to know if at all possible how to secure scripts. Assume ksh in AIx. Is there a way that I can avoid users from reading it other than chmod ?
Thx
J (2 Replies)
Discussion started by: jhansrod
2 Replies
3. Solaris
Hi all,
Just out of interest does anyone know how to password protect directories in Solaris? I have had a google search but just got a load of info about how to do it for webservers and apache, it needs to be Operating System level. Had a look on the Sun site as well but couldn't find... (1 Reply)
Discussion started by: B14speedfreak
1 Replies
4. UNIX for Dummies Questions & Answers
Hello, I am hoping someone maybe able to help me.
I have set up an Apache web server on my sun server with user accounts in the main htdocs directory. My question is how to stop these users searching up the directory tree when they ftp/telnet to the server. Also is it possible to restrict the... (2 Replies)
Discussion started by: rooneyl
2 Replies
5. UNIX for Advanced & Expert Users
I am trying to setup a computer where only the database can read/write to a partition. Basically, all other entities should fail. One thing I was thinking about was making the database own the partition itself (is this even possible?) but the problem is if someone can masquerade as the database... (4 Replies)
Discussion started by: Legend986
4 Replies
6. UNIX for Dummies Questions & Answers
Hi,
Is there a way to password protect a dir in linux ??
I need to protect the tmp folder of a JBoss server instance running on Linux RedHat os.
I cannot change permissions cause, the root password is shared and a number of people login via that.
also if possible can i restrict the root... (2 Replies)
Discussion started by: akshay61286
2 Replies
7. 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
8. Shell Programming and Scripting
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
9. AIX
Hello AIX experts,
How can I protect my backups using password?
I'm waiting any solution.
Thanks (2 Replies)
Discussion started by: Mohannad
2 Replies
10. 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
LEARN ABOUT DEBIAN
pam_pwhistory
PAM_PWHISTORY(8) Linux-PAM Manual PAM_PWHISTORY(8)
NAME
pam_pwhistory - PAM module to remember last passwords
SYNOPSIS
pam_pwhistory.so [debug] [use_authtok] [enforce_for_root] [remember=N] [retry=N] [authtok_type=STRING]
DESCRIPTION
This module saves the last passwords for each user in order to force password change history and keep the user from alternating between the
same password too frequently.
This module does not work together with kerberos. In general, it does not make much sense to use this module in conjunction with NIS or
LDAP, since the old passwords are stored on the local machine and are not available on another machine for password history checking.
OPTIONS
debug
Turns on debugging via syslog(3).
use_authtok
When password changing enforce the module to use the new password provided by a previously stacked password module (this is used in the
example of the stacking of the pam_cracklib module documented below).
enforce_for_root
If this option is set, the check is enforced for root, too.
remember=N
The last N passwords for each user are saved in /etc/security/opasswd. The default is 10.
retry=N
Prompt user at most N times before returning with error. The default is 1.
authtok_type=STRING
See pam_get_authtok(3) for more details.
MODULE TYPES PROVIDED
Only the password module type is provided.
RETURN VALUES
PAM_AUTHTOK_ERR
No new password was entered, the user aborted password change or new password couldn't be set.
PAM_IGNORE
Password history was disabled.
PAM_MAXTRIES
Password was rejected too often.
PAM_USER_UNKNOWN
User is not known to system.
EXAMPLES
An example password section would be:
#%PAM-1.0
password required pam_pwhistory.so
password required pam_unix.so use_authtok
In combination with pam_cracklib:
#%PAM-1.0
password required pam_cracklib.so retry=3
password required pam_pwhistory.so use_authtok
password required pam_unix.so use_authtok
FILES
/etc/security/opasswd
File with password history
SEE ALSO
pam.conf(5), pam.d(5), pam(8) pam_get_authtok(3)
AUTHOR
pam_pwhistory was written by Thorsten Kukuk <kukuk@thkukuk.de>
Linux-PAM Manual 06/04/2011 PAM_PWHISTORY(8)