Sponsored Content
Top Forums UNIX for Dummies Questions & Answers password protecting a directory Post 25806 by killerserv on Tuesday 6th of August 2002 04:08:12 AM
Old 08-06-2002
yes!.. you are absoultely right. .HTACCESS controls the file or directory permission on a Unix server. You can modify the .HTACCESS. It allows webmasters to restrict access to certain directories. The usernames and encrypted passwords are kept in a webmaster-maintained file (Unix Server).

Here is a great tutorial on how to do with .HTACCESS to allow specific accesses.

http://faq.clever.net/htaccess.htm
 

9 More Discussions You Might Find Interesting

1. Solaris

Password Protecting Directories...

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

2. UNIX for Dummies Questions & Answers

Protecting the directory tree

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

3. UNIX for Dummies Questions & Answers

Password protecting a directory

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

4. UNIX for Dummies Questions & Answers

Protecting a folder/directory against root access.

A friend and I run a vbulletin forum which recently got hacked. We believe what wound up happening was the attacker gained access to the VPS box and from there elevated their user accounts to admin status on our forums. Obviously if someone gets into our box in the future it'll be a disaster so... (1 Reply)
Discussion started by: fannypack
1 Replies

5. Shell Programming and Scripting

Password Protecting a File

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. 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

7. Shell Programming and Scripting

How do i set a password to a directory?

A situation where i need to create 10 directories and set its 10 passwords. Since each of the directories contents would be critical, only few users need to access. :wall: I need to write a script so that it creates 10 directories in no time. So, how can i explicitly set a password to a... (1 Reply)
Discussion started by: Manjunath B
1 Replies

8. AIX

Protecting backup with password

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

9. Shell Programming and Scripting

Password Protecting a File

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
lpasswd(1)						      General Commands Manual							lpasswd(1)

NAME
lpasswd - Change group or user password SYNOPSIS
lpasswd [OPTION]... [name] DESCRIPTION
Changes password of user or group name. If the name argument is not provided, username of the invoking user is used; the name argument is ignored if lpasswd is run set-uid to a different user. Entering an empty password (by pressing Enter) aborts the password setting operation. OPTIONS
-F, --plainpassword-fd=fd Read password from file descriptor fd, terminated by end of file, ' ' or ' '. -f, --password-fd=fd Read password hash from file descriptor fd, terminated by end of file, ' ' or ' '. -g, --group Change password of group name. By default the password of user name is changed. -i, --interactive Ask all questions when connecting to the user database, even if default answers are set up in libuser configuration. -P, --plainpassword=password Set the password to password. Note that the password can be viewed while running lpasswd using tools such as ps(1). -p, --password=encrypted Set the password to the password represented by the hash encrypted. Note that the hash can be viewed while running lpasswd using tools such as ps(1). EXIT STATUS
The exit status is 0 on success, nonzero on error. libuser Jan 12 2005 lpasswd(1)
All times are GMT -4. The time now is 09:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy