How do I password protect a directory without encrypting everything?

I'm trying to password protect a directory using the java 1.3jdk. I don't want to encrypt the contents just restrict all access to the directory, other than access via my application.
The directory should be password protected, which my java application will supply on starting. On shutdown of the computer the directory should revert to password protected.
Can anyone point me in the right direction.

I'm trying to password protect a directory using the
java 1.3jdk. I don't want to encrypt the contents
just restrict all access to the directory, other
than access via my application.
The directory should be password protected, which my
java application will supply on starting. On shutdown
of the computer the directory should revert to
password protected.It's really not clear to me what you're really trying to do, or at what level you're trying to protect at. Your last sentence ("on shutdown...") seems to imply you are after OS-level protection. This is something outside the scope of Java and will depend on your targeted platform.

Similar Messages

  • How do you password protect web gallery

    Iphoto is easy to protect. How do you password protect your movies in webgallery? The help menu is not very clear

    The best I can figure out is that if you post your movie to the Gallery, but do not select the option to "Show project on Web Gallery home page," the video will not show on your home page for random visitors. When the movie is done posting, you can send the direct link of your video to whomever you want by copying it from the confirmation page after the video uploads. Not perfect, but the only option I see right now.

  • How can I password protect pdf files that intend on email

    How can I password protect a pdf file that I intend on emailing?

    Hi kimberlyb5119003,
    To password protect a PDF file, you need to use Acrobat. For instructions, see Acrobat Help | Security
    Best,
    Sara

  • Hey guys, how can i password protect my files in external hard drive? I want to access those files both from mac and windows PC!

    Hey guys, how can i password protect my files in external hard drive? I want to access those files both from mac and windows PC!

    If you want a cross-platform solution that doesn't require the use of third-party software, use an external drive with hardware encryption. The device will have either a physical key or a numeric keypad. I don't have a specific recommendation.

  • Trying to password protect a directory in my portal web server

    I have a third party web file manage called ckfinder that i am testing for a client and it works fine. However, when i try to password protect the directory using .htaccess file, it doesn't work. It starts out by kicking me to the SSO logine page, which is fine. But when i put a valid user name and password, it displays a page cannot be displayed error with the url being:
    https://infra.portal2.bynum.com:4443/sso/auth
    I checked the ssoServer.log and this is what it reads:
    Wed Jun 18 16:52:24 CDT 2008 [DEBUG] AJPRequestHandler-ApplicationServerThread-10 FilePolicyManager.getAuthLevel: papp success Url=http://por
    tal2.bynum.com/bellin/ckfinder/_samples/php/osso_login_success
    Wed Jun 18 16:52:24 CDT 2008 [DEBUG] AJPRequestHandler-ApplicationServerThread-10 FilePolicyManager.getAuthLevel: pappHostPort=portal2.bynum.
    com
    Wed Jun 18 16:52:24 CDT 2008 [DEBUG] AJPRequestHandler-ApplicationServerThread-10 No auth level found. Returning DefaultAuthLevel
    Wed Jun 18 16:52:24 CDT 2008 [INFO] AJPRequestHandler-ApplicationServerThread-10 FilePolicyManager.getAuthLevel returns 40
    Wed Jun 18 16:52:24 CDT 2008 [DEBUG] AJPRequestHandler-ApplicationServerThread-10 Requested Auth Level: 40
    Wed Jun 18 16:52:24 CDT 2008 [INFO] AJPRequestHandler-ApplicationServerThread-10 Entered SSOLoginServlet: :processSSOPartnerRequest method ..
    Wed Jun 18 16:52:24 CDT 2008 [DEBUG] AJPRequestHandler-ApplicationServerThread-10 AuthUtil: SSO Cookie received: null
    Wed Jun 18 16:52:24 CDT 2008 [DEBUG] AJPRequestHandler-ApplicationServerThread-10 Current Auth Level: -1
    Wed Jun 18 16:52:24 CDT 2008 [DEBUG] AJPRequestHandler-ApplicationServerThread-10 Header Accept: */*
    Any ideas??

    ok, i found out the problem. My web server was inproperly configured with by SSO Server. I reconfigured the server with the defaults and ran again and all worked fine..

  • How to set Password protection in excel using java

    Dear all,
    I have no idea to write a java program that how to set password protection in excel. Please give me some solution using java tools. Thank a lot!
    Regards,
    kzyo

    Dear Bamkin ,
    I used your code and paste it in my program. The error is as the follow:
    Code:
         stmnt = c.createStatement();
                   String query = "select StudentNumber, Email, New_Email_Address from [Sheet1$] where Len(New_Email_Address) > 0";
                   System.out.println(query);
                   rs = stmnt.executeQuery(query);
                   stmnt.executeUpdate("SET PASSWORD=PASSWORD('Test')");
    Error:
    (Remark: Invalid SQL statement)
    java.sql.SQLException: [Microsoft][ODBC Excel Driver] �����I SQL ���q���G�a����'DELETE'�A'INSERT'�A'PROCEDURE'�A'SELECT' �� 'UPDATE' �B
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
         at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
         at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:3111)
         at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:338)
         at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(JdbcOdbcStatement.java:288)
         at hk.gov.edb.util.ExcelHandle.updateNewEmail(ExcelHandle.java:414)
         at hk.gov.edb.core.AppMain.doUpdate(AppMain.java:369)
         at hk.gov.edb.core.AppMain$7.construct(AppMain.java:584)
         at hk.gov.edb.util.SwingWorker$2.run(SwingWorker.java:127)
         at java.lang.Thread.run(Thread.java:595)

  • HT201320 How can i password protect my ipad2 email

    How can i password protect my ipad2 email

    The pass code is no alternative, because it's disturbing the easy handling of the iPad.
    All unsatisfied users should organize protests against Apple. Every missing Dollar makes the company more thinking about their customers. I'm sure that I would change the platform, if there is someone taking care about the wishes of their customers.

  • Hi there, i have Q i have excel file it need to be block with password. Could you please explain how i make password protect to Excel document

    Hi there,
    i have Q i have excel file it need to be block with password. Could you please explain how i make password protect to Excel document
    Thanks

    On the File menu, click Save As.
    On the Tools menu, click General Options.
    Do either or both of the following:
    If you want users to enter a password before they can view the workbook, type a password in the Password to open box, and then click OK.
    If you want users to enter a password before they can save changes to the workbook, type a password in the Password to modify box.
    NOTE   Unlike passwords you specify in the Password to open box, passwords you specify in the Password to modify box are not encrypted. These passwords are only meant to give specific users permission to modify workbook data. For optimal password security, it's best to assign both passwords. An encrypted password to access the workbook, and one to provide specific users with permission to modify its content. IMPORTANT   Use strong passwords that combine uppercase and lowercase letters, numbers, and symbols. Weak passwords don't mix these elements. Strong password: Y6dh!et5. Weak password: House27. Use a strong password that you can remember so that you don't have to write it down.
    If you want to use a different encryption type, click Advanced, click the type you want in the Choose an encryption type list, and then click OK.
    If needed, specify the number of characters you want in the Choose a key length box.
    NOTE   Document property encryption is enabled by default for most encryption types and providers. It prevents unauthorized users from viewing summary and custom file properties (such as the author or any custom file information) in theProperties dialog box. When users right-click the password-protected file, and then click Properties, information won't be available on the Summary tab and Customtab. Authorized users, however, can open the file and view all file properties (Filemenu, Properties command). To disable document property encryption, clear theEncrypt document properties check box.
    Click OK.
    When prompted, retype your passwords to confirm them.
    Click Save.
    If prompted, click Yes to replace the existing workbook.
    NOTE   You can also secure a workbook with a password on the Security tab of the Options dialog box (Tools menu, Options command).

  • Could someone please tell me how can I password protect individual folders?

    Hi
    I use a MacBook Pro 17" with MacOSX(10.4.7) Could someone please tell me how can I password protect individual folders?
    Thanks
    Adnan Yousuf

    Adnan,
    One way to do this is to use Disk Utility to make a password protected disk image of the folder(s) that you need to secure. This is probably the easiest way to do it.
    Go to Disk Utility and choose "New Image" and select encryption.
    Regards,
    Steve M.
    Message was edited by: Steve M.

  • How can I use a new computer without deleting everything on iPod?

    Hey Guys
    I need a bit of help.
    My old computer died, it was running Windows XP. I've got myself a new computer running Windows 7.
    I have a copy of my iTunes folders from my old computer (taken 2 days before it died)
    How can I use a new computer without deleting everything on iPod touch?
    I've imported all the folders (music, apps etc) into the new computer's iTunes, but when I sync my iPod
    I receive a window asking if i want to sync i need to erase and replace with the iTunes library on the computer.
    I particularly don't want to do this.
    My wife also uses my iTunes for her iPhone.
    Any help would be appreciated. Thank you

    Make a backup of the iPod by connecting the iPod to the computer and right clicking on the iPod under Devices in iTunes and selecting Backup. Then restore the iPod from that backup and sync as necessary.

  • When i tried to download iOS8 on my iPad Mini it told me that I needed to connect my iPad to iTunes, I have done that and now it says I need to restore my iPad. How can I get my iPad working without losing everything on my iPad?

    When i tried to download iOS8 on my iPad Mini it told me that I needed to connect my iPad to iTunes, I have done that and now it says I need to restore my iPad. How can I get my iPad working without losing everything on my iPad? I don't want to lose my apps and photos!
    Help would be much appreciated!

    If you are getting the connect to iTunes screen then it's too late to take a new backup and/or copy anything off it. Prior to starting the update did you take a backup, either to the cloud and/or to your computer's iTunes ? If not then have you recently taken a backup that might have your photos and apps content/settings in it ?
    As long as the apps are still in your country's store then you should be able to redownload them via the Purchased tab in the App Store app (and the Purchased link under Quick Links on the right-hand side of the iTunes store homepage on your computer's iTunes), and if the apps store their content on a server/cloud service then you might be able to get their content back from that - if they store their content on the device then you will need to have a backup.
    For our photos you could try doing a search for programs that claim to be able to recover content from a device - I haven't used any so I can't suggest one.

  • How to Password Protect a Directory so all Files are Protected?

    Hello CFers and Happy Holidays,
    I am moving a web site over from a Linux server over to a
    Windows 2000 server. The site was currently password protected via
    the oh so familiar .htaccess method on the Linux server. Now that
    the site is on IIS on Windows, the .htaccess files don't work.
    I have created a MSSQL database with a users table that
    contains all of the username and passwords that are allowed to
    access the site.
    Normally I would just log users in by querying the database,
    setting a session variable, and then using application.cfm to check
    to make sure the users is logged in. However, in this particualr
    site, most of the files are made up of .htm files which do not get
    processed by the ColdFusion application.cfm tag.
    Several posts indicated that I would need to disable
    anonymous access within IIS and then create the individual user
    accounts within Administrative Tools > Computer Management >
    Users and Groups. However, in this case, I don't want to create
    thousands of new users within windows.
    Is there a way for me to password protect all files within a
    directory while still using the accounts set up in my MSSQL
    database for authentication?
    Thanks,
    David Levin

    > Several posts indicated that I would need to disable
    anonymous access within
    > IIS and then create the individual user accounts within
    Administrative Tools >
    > Computer Management > Users and Groups. However, in
    this case, I don't want to
    > create thousands of new users within windows.
    How many users did you have in your .htaccess config? That's
    how many
    you'd need to set up in IIS. With IIS & file system
    permissions you're
    effecting the same thing you would with Apache's .htaccess
    authorisation.
    Except using GUI tools rather than text files; it's the same
    principle,
    though.
    Or... you could just install Apache and use that instead,
    sticking with the
    approach you're used to.
    Adam

  • How to password protect a directory in Tomcat?

    Hi there,
    My configuration is as follows.
    Apache2 + mod_jk + Tomcat 5
    I have enabled the CGI processing servlet (org.apache.catalina.servlets.CGIServlet) in $CATALINA_HOME/conf/web.xml file. Now I can successfully run my perl CGI scripts. All my CGI scripts are located in the directory $CATALINA_HOME/webapps/mywebapp/WEB-INF/cgi/
    I want to secure these CGI scripts by password protecting the above mentioned directory.
    I've read the docs and I think configuring the conf/server.xml file along with conf/tomcat-users.xml file is the best way of doing it. Am I right?? If so, can anyone here please tell me how to proceed with this? What do I need to add to server.xml and tomcat-users.xml to password protect the afore mentioned directory?
    Thank you very much for reading. I really appreciate your response.
    Regards,
    Shashi

    Thanks for a quick reply, Tolmank! You might not be aware of how the CGI servlet shipped with Tomcat works. Here is the relevant portion of the conf/web.xml file for your reference.
    Thanks,
    Shashi
    <!-- Common Gateway Includes (CGI) processing servlet, which supports     -->
    <!-- execution of external applications that conform to the CGI spec      -->
    <!-- requirements.  Typically, this servlet is mapped to the URL pattern  -->
    <!-- "/cgi-bin/*", which means that any CGI applications that are         -->
    <!-- executed must be present within the web application.  This servlet   -->
    <!-- supports the following initialization parameters (default values     -->
    <!-- are in square brackets):                                             -->
    <servlet>                                                               
            <servlet-name>cgi</servlet-name>                                    
            <servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class>
             <init-param>                                                        
              <param-name>debug</param-name>                                    
              <param-value>0</param-value>                                      
            </init-param>                                                       
            <init-param>                                                        
              <param-name>cgiPathPrefix</param-name>                            
              <param-value>WEB-INF/cgi</param-value>                            
            </init-param>                                                       
             <load-on-startup>5</load-on-startup>                               
    </servlet>

  • How to batch password protect files without having to click "Save" for each file

    Hi!
    I need help. I'm trying to batch password protect a few hundred PDF files. I've setup an action for this, however when I run the action, Acrobat asks me to save each file. Isn't this kind of defeating the purpose of batch processing?
    Adrian

    Add a save step at the end.

  • How can I protect my data in numbers from unintentional user of my iPad by other family members? In other words, how can I password protect my numbers and other apps from apple computer company?

    I have other members of my family use my iPad for educational/recreational use, young children who may want to play kid games. I don't want them to accdently get into my data stored in the three business apps from apple. I would like to password protect these files.
    I would also like to log out of the email systems that I use, so some one else can use this device to access their own emails. By leaving my accounts open al the time, is really asking for trouble from a host of sources.
    I can't believe that the iPad is not designed to protect the privacy and data from prying eyes ... Un intuitional as it may be.
    Please fix this issue so I create my info on this device and enjoy it fully. Or tell me how I can protect my data.
    Thnax.

    Thanx for your response. Any data stored anywhere should be able to be protected from stealing, malicious destruction or unintentional destruction. Theo ad an be stolen and without any kind ofpassword protection, the thief could get into your sensitive data.
    If Apple wants iPad to become a business tool that can be used with ideas, thots, data protected, then Apple needs to provide this protection to it's customers. Now it's unto the users to use it or not.
    I know iPad is being considered to be used by doctors, and can u imagine the confidentiality requirements of HIPPA rules... It will make this device not usable without data protection. I am sureweall have heard about hacking going on at all levels. It's surprising that this device's software is left unprotected.
    My iPad may be sitting on my desk and my 3 year old grand daughter would pick it up and start "playing" with it. That means I can't store anything on this machine that may possibly be changed.
    I have discussed this with specialists in apple stores, and those who have been around info technology understand my concerns and they may forward this request further up. They do not have the answer for it..... So far.
    I think data security should be everyone's concern... Be it a one person device or multiple user device.
    I hope that some responsible people at Apple would read this and provide the protection that will make this device lot more acceptable in the business world.

Maybe you are looking for

  • Urgent help ALV report

    HI, report zhr2. tables:pernr. type-POOLs:slis. INFOTYPES:0001,0004,0041. data: begin of itab,       pernr type pernr-pernr,       MASSN type p0000-MASSN,       STAT2 type p0000-STAT2,       STAT3 type p0000-STAT3,       PLANS type p0001-plans,      

  • No longer able to authorize or deauthorize account

    Everything was working fine until I did a fresh install. COMPLETE CLEAN install (no residue of that pesky old install!) Now I cannot Authorize/Deauthorize/Buy or access my account in any way. All I get is a never-ending "Accessing iTunes Store-". I c

  • Satellite M30 - DVD Playing Format

    Can any one advise me if there is software available so I can play Video CD / PAL & NTSC on my laptop.. Though, could anyone advise if a change in the settings will automatically allow me to play these types of formats..

  • Doubt in Solution Manager Workflow

    Hi all I have created one workflow for support disk. I used BUS2000116 business object. Before that i created Z business object for BUS2000116. Bcos i need to include events and methods (Customization). So i created  ZB2000116. After that i selected

  • CS4 illustrator will not boot in OSX 7.5 main ID

    It will boot in a different account ID.  I ran first aid on permissions.  Tried to reload software but software gets hung up on disk 4.  Should I reload my OSX?