How to set owner-only access file permissions both on Linux and Windows

Hi everybody.
I have the following problem. I need to store some private user information in file system. So I need to set owner-only access permissions for some directory in user home. I did not find API for doing this. As I understand this is platform specific thing. Could anybody tell me how can I do this both on Linux and Windows?
Thank you in advance.

More ideas just came back to me (of something I did before)
Each OS requires a different control.
For Windows you will need to set the .policy file for each user (a pain if you have more than a dozen of clients) granting access (R or RW) to files/directories.
Then you have to write some native code (access via JNI) to access/modify your authorization.
A more professional solution that I used was J-Integra (other similar tool exist).
Basically it is a bridge between Java and COM. It magically give you access to the COM API from Java (and vice versa).
In my case it was to read/write/modify Winword documents transfered between PC and server.
From memory you have to run the com2java.exe to build the bridge (classes in Java language) between the 2 families. Compile those classes and you have a "driver" for the COM (Microsoft Objects).
Here I must confess my ignorance on Microsoft.
Those COM objets must give you some easy/integrated access to the API for LDAP or Microsoft Active Directory Service (for centralize control with more complex setup).

Similar Messages

  • How do I edit the contacts files on both my iPad and iPhone?

    How do I edit the contacts files on both my iPad and iPhone?

    Open Contacts, select a contact, then tap Edit in the upper right corner.

  • How To Change Default Expiration Date for Portal User in Linux and Windows?

    Hello,
    I have a couple of environments I recently installed:
    1. Oracle Application Server 10 Release 2 (10.1.2) SEOne on Windows
    2. Oracle Application Server 10g Release 2 (10.1.2) Enterprise Edition on Linux
    I heard the portal and orcladmin user passwords will expire in about 60 days. I want to prevent this from happening. How can I set the expiration date to never expire for both these users? Or at least give me some warning?
    I heard that you can do this through the Oracle Directory Manager. However, I am unsure as which server to enter on the field. I've used the following:
    <servername>.hostname.com/389
    <DBname>.hostname.com/389
    They say 389 is the default port. Since I did not really
    Does anyone have any ideas?

    You have the answer in yours hands:
    Search for "60 days" in the forum
    How can I enfore Password Expiry Without Lockout?
    for instance.
    For the servername, it's the name of your server and the port is depending of your platform (have a look to $ORACLE_HOME_INFRA/install/portlist.ini) and
    chech the value for: Oracle Internet Directory port
    Patrick.

  • How can I use single hard drive for both Mac OS and Windows without changing the formats and reformatting?

    I have a windows PC and a Macbook Air and a 1TB external hard drive. They said in order to transfer large files into the hard drive you have to change the format of your hard drive (which would be from MS-DOS to Mac Os extended) so how can I use my external hard drive on my windows PC without reformatting its files? Please heeeelp 

    Natively Windows can read and write to NTFS, FAT32, and exFAT while the Mac can read and write to FAT32, exFAT, and MacOS Extended.
    Option 1: You can purchase driver software for Windows to allow it to read and write Mac's MacOS Extended or you can purchase a driver to allow the Mac to read and write to NTFS.
    Option 2: you can format the hard drive for exFAT and use it with both Windows and the Mac without purchasing any special drivers. (Obviously the 4GB file size limit is why you don't want to use FAT32)

  • How to set up a basic file sharing server for my small architectural business?

    I have no idea if I have posted in the correct area as this is my first forum post within the apple support community!
    I have been using a 21.5" imac running 10.6.8 for the past 5 years to run my small home based architectural design business. I have been using the internal hard drive & backing up the necessary data to a simple usb external hard drive. I am now looking to firstly purchase a new imac 27" retina and purchase new autocad lt 2015 for mac software. I am looking to have another imac (my old mac) running in conjunction with the new mac. I want both macs to be able to access the same data and am slightly unsure what is the best way to achieve this.....As my old mac is currently only running snow leopard and an old version of autocad for mac 2011 it wont run on any more recent OS. Essentially i believe I have 2 main options with this.... (1) I Accept that I have to purchase 2 no. autocad lt 2015 licences @ a cost of £2300. Or option (2), I only run autocad on the new mac as this will be the primary station and the old mac used for primarily for admin & accounts. I have also recently discovered that it is possible to rent autocad licences for £300p/a which may also be another option (3)!
    I previously had a problem where my hard drive failed on my mac & lost all data on the internal hard drive, luckily I had been backing up all data regularly to my external hard drive and now loss occurred! Obviously with any new system I want to ensure that my data is safe!
    I currently utilise about 250GB of data for business operations but this will obviously grow with time.
    In the future I would like to have the option of potentially being able to access the network data remotely via macbook pro whilst abroad although at this stage this really isnt my primary objective. Although I believe I could achieve this through apple remote desktop.
    I suppose I should provide some information with regard to the required speed of the system...I regularly open 50-100 photos at the same time totalling around 250-500MB. I would like the system to be able to handle this fairly easily.
    I have been trawling through forums and to be honest they are totally confusing me. I have also spent time on the phone to the apple business team and have also discussed my objectives with a member of the apple team in store.
    There have been various options advised to me and I really do not know which is the most appropriate route forward.
    1 - Using a mac mini as the file server and linking the 2 mac devices to this and backing up the mac mini to an external hard drive to ensure no loss of data.
    2 - Using a time capsule as a file server and linking the 2 mac devices to this and backing up the TC to an external hard drive to ensure no loss of data.
    3 - Using the new mac hard drive and linking the 2 macs via thunderbolt (old mac does not have thunderbolt and so I guess I would need another new mac?!) and then backing up the data to a time capsule.
    4 - Using a RAID based server and linking the 2 no. macs.
    Sorry to ramble but any advice really would be greatly received!

    Hi sblemings,
    Welcome to the community.
    I think with your scenario you should ask yourself, how complicated do you want the setup to be and how much time would you have to be able to resolve an issue should one occur with this setup.
    All the options that have been advised would work but they come with complexity and therefore time.
    1 - Using a mac mini as the file server and linking the 2 mac devices to this and backing up the mac mini to an external hard drive to ensure no loss of data.
    2 - Using a time capsule as a file server and linking the 2 mac devices to this and backing up the TC to an external hard drive to ensure no loss of data.
    3 - Using the new mac hard drive and linking the 2 macs via thunderbolt (old mac does not have thunderbolt and so I guess I would need another new mac?!) and then backing up the data to a time capsule.
    4 - Using a RAID based server and linking the 2 no. macs.
    Sorry to ramble but any advice really would be greatly received!
    option 1
    Would be a way to achieve what you want, it would centralise your files and you would only need to backup your file server (as long as all the files you wanted backed up were on it). This could be achieved either using the client and sharing various folders or using Server which would give you more options than you would possibly need.
    option 2
    This is exactly like option 1 except that you wouldn't have to administer another mac however you may limit any future growth.
    option 3
    This option I probably wouldn't pick, you could achieve this with firewire and use a firewire to thunderbolt adapter (saves you having to buy a new iMac)
    option 4
    This option would, depending on your RAID level, give you disk redundancy but remember you would still need to back this up, as RAID is NOT a backup solution.
    I would also ask is there a pressing need to keep the old iMac in service and complicating things by having a server / NAS? Could you not just transfer all your information over to this and continue with the one backup? I would say that doing it this was would be the simplest way of achieving what you want from what I can take from your question.
    As for remotely accessing your data, if you have the right hardware the way to achieve this would be to use a VPN and connect back to your data. However a potentially easier way for you ,would be to use a service like logmein or teamviewer to connect back.
    Hope this helps, and by all means any questions please ask.
    Dan
    How to set up a basic file sharing server for my small architectural business?

  • How to Set JFilechooser to show file with the same extension in the filetyp

    How to Set JFilechooser to show file with the same extension in the filetypes??
    help

    I also don't understand, but if you mean how to display only files with a certain extension in your JFileChooser then you should have a look at the JFileChooser API:
    http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JFileChooser.html
    The introduction shows an example of how to do that.

  • NEED info on How to Set Router to access just one website???

    Ok here we go again, Finally found out it's my Linksys not letting me onto one website..I had a 310N and thought that was the problem so went out and bought a 610N ..same darn thing just won't let me access one website I need to sell my goods for income. I remove linksys from my modem and plug it directly into one of my computers and I got the website..Yes it's a Linksys problem !!!
    I need some info on how to set up a access point in my router's setting to let me log on to this website www.denofangels or http://74.86.166.210/
    Is it time for me to call the support team??????????????
    I'm running XP on my computers, have 3 of the 4 computers using wirelessN adapters and on the main computer is the WRT 610
    Help Please ....linksysDoll
    Gone Nutz trying to figure out Linksys again!!

    MY Internet provider is Time Warner / Roadrunner cable..Does this help you to solve my problem. Nothing wrong with the modem..just my wrt 610N settings, I'm guessing it carried over from my wrt 310N..this was working fine until a couple of months ago and then nothing for this one website.
    I'm running XP
    Thank you in advance for any help or info
    Gone Nutz trying to figure out Linksys again!!

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

  • How can I quickly view pdf files like I can do with Windows Picture and Fax viewer for jpg files?

    How can I quickly view pdf files like I can do with Windows Picture and Fax viewer for jpg files? I need to look at several thousand PDF files. It takes too long to open each one individually. The only thing I could think of is combining them into large groups and then using the Navigation index. But I like the way windows Picture and Fax Viewer does it because you can keep the files separate. Combining PDFs causes loss of individual file names. That would be a problem since I do need to have the individual file names.

    Windows Picture and Fax Viewer is a DLL and is started via a rundll32.exe call and can't be set as an application to handle images in Firefox 3 and later versions.
    Try to set Windows Picture and Fax Viewer as the default viewer in Windows, then it should be listed automatically in the Mozilla Firefox Browse dialog.
    *http://www.winhelponline.com/articles/115/1/Windows-Picture-and-Fax-Viewer-as-the-default-viewer-in-Mozilla-Firefox.html
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • How to set up a mail server with a private DNS and relay over a public mail

    How to set up the mail server that we can send and pick up emails inside and outside?
    Our private network has the DNS name dnsname1.private.
    We have our privat DNS Server and he can forward requests to outside over our router.
    Our public emails are hosted by an internet provider. This dns name is dnsname2.com and dnsname2.org.
    How we have to set up our mail server that we can pick up our emails from our public dnsname2.com?
    And when we write an email how we have to set up it that the dnsname is dansname2.com and not dnsname1.private?

    If you want to move your mailservice to your own (internal) server, start by making sure you can recieve traffic on port TCP 25 (SMTP). Some ISPs blocks this port, especially on "non business" connections.
    Can you send mail from your LAN directly to where your mail is hosted using port 25 TCP or do you have to relay via your ISP?
    You have a static public IP?

  • I have about 1000 contacts on my iPhone 4 after syncing with iCloud there are only about 120 contacts on iCloud How can I have the same info on both the iCloud and my iPhone

    Hi
    I have about 1000 contacts on my iPhone 4 after syncing with iCloud there are only about 120 contacts on iCloud How can I have the same info on both the iCloud and my iPhone

    On the iPhone tap Settings > iCloud
    Switch Contacts off then back on then reset the device.
    Hold the On/Off Sleep/Wake button and the Home button down at the same time for at least ten seconds, until the Apple logo appears.

  • How to set up the interaction between InDesign CS6 8.0 and Photoshop CS 6 - if Photoshop is installed and the 64 and 32-bit?? default InDesign refers to the 64-bit version of Photoshop and scripts do not work.

    how to set up the interaction between InDesign CS6 8.0 and Photoshop CS 6 - if Photoshop is installed and the 64 and 32-bit?? default InDesign refers to the 64-bit version of Photoshop and scripts do not work.

    Nice of you to point it out here as I at least don’t follow Mr.Nash’s blog regularly.

  • How can i send a PDF file to my i phone and be able to read it

    How can i send a PDF file to my i phone and be able to read it

    Use the free Adobe Reader for iPhone -> https://itunes.apple.com/us/app/adobe-reader/id469337564?mt=8.
    Clinton

  • How can set screen resolution on firefox , i know zoom in and out but i want set my broswer to my favorie levelof zoom

    hi
    how can set my firefox screen resolution ( i know zom in and zom out but when i restart my firefox , it chanaged to perviose level of zoom )

    In case you are using "Clear history when Firefox closes":
    *do not clear the Site Preferences
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
    *https://support.mozilla.org/kb/Clear+Recent+History
    Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords and website specific setting like the page zoom.
    Clearing cookies will remove all specified (selected) cookies including cookies with an allow exception.

  • HT4623 How come my ipod only updates to ios 6.1.6 and not a iso 7 or 8?

    How come my ipod only updates to ios 6.1.6 and not an ios 7 or 8?

    Because iOS 7 requires 512MB of RAM and iOS 8 requires a dual-core processor. Your device doesn't have either of those.
    (118885)

Maybe you are looking for

  • IPod Nano Is Not Recognised on Computer

    Hello. My iPod has been working fine for a good while, but then it stopped being able to connect to my computer. It can charge on the mains, but the iPod screen does not change to 'please do not disconnect' while it is plugged in and the iPod does no

  • Customizing "Disabled" color for specific components only

    Hello, when uncommenting the "UIManager.put(...)" line in the following code all combos display their text ungreyed when disabled. But how to proceed, if you want to give this feature only to specific combos? Setting the foreground colour, even when

  • Why is my external hard drive running continuously while running iTunes?

    Ever since the latest iTunes update, my 1TB external hard drive (which holds all of my iTunes music and apps, etc.) is constantly running. It used to cycle down after I stopped playing music or a movie or updated my apps, but now it is constantly run

  • Which telephone software for ICI ?

    Hello, at the moment we use snapware via sapphone for the integration between sap and the pbx. My question now is what software can we use instead of snapware because we want to use the ICI - interface ? Which manufacturers are on the market ? Thanks

  • ADF Faces EA15: table update not working properly after dialog return event

    Hi, in my application I have a table with read-only records and an edit button for each row. The button triggers a dialog where one field of of the record can be edited. The record is a bean which is put into processScope. After accepting the change