Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Password protecting a directory Post 302339166 by akshay61286 on Thursday 30th of July 2009 01:56:17 AM
Old 07-30-2009
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 user from accessing a dir location , i.e can i restrict access to the dir "test" , hence stop "cd /root/temp/test". test may be accessible by providing a password/passphrase.

Thankx

Last edited by akshay61286; 07-30-2009 at 03:04 AM..
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

password protecting a directory

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

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

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

Name
       mzip - change protection mode and eject disk on Zip/Jaz drive

Note of warning
       This  manpage  has been automatically generated from mtools's texinfo documentation, and may not be entirely accurate or complete.  See the
       end of this man page for details.

Description
       The mzip command is used to issue ZIP disk specific commands on Linux, Solaris or HPUX. Its syntax is:

       mzip [-epqrwx]

       Mzip allows the following command line options:

       e      Ejects the disk.

       f      Force eject even if the disk is mounted (must be given in addition to -e).

       r      Write protect the disk.

       w      Remove write protection.

       p      Password write protect.

       x      Password protect

       u      Temporarily unprotect the disk until it is ejected.  The disk becomes writable, and reverts back to its old state when ejected.

       q      Queries the status

       To remove the password, set it to one of the passwordless modes -r or -w: mzip will then ask you for the password, and unlock the disk.	If
       you have forgotten the password, you can get rid of it by low-level formatting the disk (using your SCSI adaptor's BIOS setup).

       The  ZipTools  disk shipped with the drive is also password protected.  On Dos or on a Mac, this password is automatically removed once the
       ZipTools have been installed.  From various articles posted to Usenet, I learned that the  password  for  the  tools  disk  is  APlaceForY-
       ourStuff.   Mzip  knows	about  this  password, and tries it first, before prompting you for a password.  Thus mzip -w z: unlocks the tools
       disk.  The tools disk is formatted in a special way so as to be usable both in a PC and in a Mac.  On a PC, the Mac filesystem appears as a
       hidden file named `partishn.mac'.  You may erase it to reclaim the 50 Megs of space taken up by the Mac filesystem.

Bugs
       This  command  is a big kludge.	A proper implementation would take a rework of significant parts of mtools, but unfortunately I don't have
       the time for this right now. The main downside of this implementation is that it is inefficient on some architectures  (several	successive
       calls to mtools, which defeats mtools' caching).

See Also
       Mtools' texinfo doc

Viewing the texi doc
       This  manpage  has  been automatically generated from mtools's texinfo documentation. However, this process is only approximative, and some
       items, such as crossreferences, footnotes and indices are lost in this translation process.  Indeed, these items have no appropriate repre-
       sentation  in  the manpage format.  Moreover, not all information has been translated into the manpage version.	Thus I strongly advise you
       to use the original texinfo doc.  See the end of this manpage for instructions how to view the texinfo doc.

       *      To generate a printable copy from the texinfo doc, run the following commands:

		     ./configure; make dvi; dvips mtools.dvi

       *      To generate a html copy,	run:

		     ./configure; make html

	      A premade html can be found at: `http://mtools.linux.lu' and also at: `http://www.tux.org/pub/knaff/mtools'

       *      To generate an info copy (browsable using emacs' info mode), run:

		     ./configure; make info

       The texinfo doc looks most pretty when printed or as html.  Indeed, in the info version certain examples are difficult to read due  to  the
       quoting conventions used in info.

mtools-3.9.8							      02Jun01								   mzip(1)
All times are GMT -4. The time now is 04:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy