How I can know if a user has the permission to read a file or not ?

Hello,
I have other question :
How I can know if a user has the permission to read a file or not ?
Smaine
ThanK's

I don't think common operating systems have an easy way to do that check.
If you have a limited number of files, implement access control yourself, instead of using operating system permissions. E.g. write a configuration file that contains:
# Syntax: "filename": "list of users who can access that file"
somefile.txt: fred, alice, bob
somedir/anotherfile.txt: bob, joe
Read in the configuration file and check against it when a file is being requested.

Similar Messages

  • How to find out which user has the permission to execute startsap ?

    Hi All
    How do I find out which user has the permission to execute the startsap and stopsap? Do I control the permission on those script using windows standard authorization? For example: only allow certain user have the read and write permission?
    Thank you.!
    Vincent Lo

    Well to me this is really weird question..
    <b>noone un-authorized should have access to OS on your system</b>
    If this is valid you do not need to solve problems who can and who cannot start/stop SAP, because if you want to prevent some users from shutting down the SAP you have really hard job to do - there are many ways how to kill the SAP (for example killing relevant process from task manager, killing of database, messing with services etc.) - yes, this is harmful way of stopping SAP, but we are talking about attack, right? I would contact some Windows specialist to help you disable all the ways how to harm the running SAP. But still after that - there are many files that can be modified/deleted so SAP will crash after restart - you need to protect them too, etc.
    In case you take the first assumption as granted (and you really limit access to this server) you do not need to worry who can stop or start SAP - at the other hand it may be handy to be able to start/stop SAP from other users - for this you can run the stop/start script "under different user".
    But to answer the question - to me this is question just of access control (but really never tried that myself):
    <a href="http://technet2.microsoft.com/WindowsServer/en/library/c6413717-511e-42bd-bd81-82431afe4b2a1033.mspx">Permit or restrict access to a snap-in for a domain</a> (or see other related links down there on this page)
    Please award points for useful answers.
    Thanks

  • HT5244 how do I know whether my mac has the malware?

    I've just installed the java fix, but I don't whether it's to late, ie whether the malware is already installed on my mac. Is there any way to check it, without buying an antivirus (cf. should be an advantage of the Mac so far). Cheers

    a brody wrote:
    ClamAV is a free antivirus too that you can run once to determine if there is any sign of it.
    Apparently, ClamXav has not been doing that well in detecting the latest versions of FlashBack. If you are looking for a free A-V product with a more aggressive update policy, it might be worth checking out Sophos AntiVirus for Mac Home Edition.

  • How do I know if my MacbookPro has the RCMP virus?

    So I got that warning of the RCMP virus..
    It wouldn't let me close the window but eventually I did. Then I opened safari and it appeared again and I quickly closed it. I cleared my history and the website data from safari preferences.
    Now I can go on safari and nothing comes up, but I'm wondering if the "virus" is still on my Mac? Will it steal my passwords and credit card information?
    What can I do to get rid of it if it is on my Mac?
    Please help me!

    You didn't install anything, just visited a webpage that was difficult to close. There never was a 'virus' on your computer, and you have already done what's needed.

  • Hi I would like to know how I can view a video that has been send via mail. When I tap on the video it only gives me the option to send iit as mail again

    Hi  I would like to know how I can view a video that has been send to me via email. When I tap on the video icon it only gives me option to send as a mail or to open in drop box which I don't want to open in.

    Welcome to the Apple community.
    If you are doing this from your phone (as you mention) then you can use the new iPhoto Photo Journal feature to do this.
    Unfortunately, iCloud does not offer equivalents to Mobile Me’s iDisk, Gallery or Web Hosting services. You will need to find a third party solution to replace these services. You might consider DropBox, SugarSync, MediaFire or any other service that offers online storage.

  • How do I know if my imac has a web cam? I want to skype with my grandkids. Thank you

    How do I know if my iMac has a web cam on it so I can skype with my grandkids?
    Could I buy a logitech webcam for $24.98 that is on Amazon?
    Thank you

    What iMac do you Have?
    Go to About this Mac from the Apple icon top left of your finder menu window and it will tell you.

  • I'm not able to see all the tabs words on itunes window. I think I uninstall the font on my system. How I can know wich fonts Itunes uses for install it?

    I think I uninstall the font on my system. How I can know wich fonts Itunes uses for install it?
    I'm using Win Vista 64b - but I try already to install all my fot library but nothing happen,, still not able to see some menu's from lists, tabs titles, etc.
    I search through itune's web site and not sign of info about how can I fix this problem...
    help!

    It has something to do with Segoe fonts in your system.
    Refer this link for solution
    iTunes 10.1 Missing Text

  • How do I know if Mountain Lion has installed properly?

    How do I know if Mountain Lion has installed properly?

    I can only guess that the install process was interrupted, maybe after the files were extracted but before the install, maybe on the reboot?
    If it was dome ot would say version 10.8.  And you would have the reminder and notes apps as well, also an easy thing to check.

  • Hey i have a 4s my friend send me this from Canada now i want to know that is the contract of this iphone is expires or not ?? So i can factory unlock it how i can know that ???

    Hey i have a 4s my friend send me this from Canada now i want to know that is the contract of this iphone is expires or not ?? So i can factory unlock it how i can know that ???

    Check under general app-general-about then look under carrier and see what network it has set on it because some networks I know unlock their phones but to my knowledge iPhones the majority bought through carriers are usually locked.

  • HT5824 hi..i m not sure if i have used the icloud before..how do i know if my iphone has been backed up by icloud?

    hi....i m very blur at this...not sure if i have used icloud before...how do i know if my iphone has been backed up ?
    it all happened 2 days ago when my iphone lost everything after updating to ios7. I couldn't even restore back up even i have done my back up before updating...
    just trying my luck here , if anyone can help he to retrieve my photos and notes.

    Access iCloud.com on a computer to check
    http://support.apple.com/kb/PH2702
    Lost or Stolen iOS device  >  http://support.apple.com/kb/HT5668

  • How to check which user has the privilege to execute a stored procedure?

    I am using Oracle 7 and I would like to check which user has the privilege to execute a stored procedure. How can I check it? Is there any view I can query for?
    Alex Hung

    Please check DBA_SYS_PRIVS.
    SQL> select * from dba_sys_privs
    2 where grantee='HARY';
    GRANTEE PRIVILEGE ADM
    HARY EXECUTE ANY PROCEDURE NO
    ....

  • How i can know if my iPhone 4S is factory unlocked?

    I just got a brand new iPhone 4S from my carrier (GSM) as a contract renewal, (2 Years contract)
    i was messing around and i inserted a SIM card from a different carrier, and it worked! (3G, Voice, Data, SMS/MMS, etc)
    i want to know if this means that my iPhone 4S is factory unlocked?!
    How i can know for sure?
    Thanks!

    i bought it in a 2-year contract.
    but how come it works on different carriers sim cards?
    its possible that my carrier is giving away unlocked iPhones, on 2-year contract?
    Other thing i recall, on the back part of the iPhone's box i recall that the iPhone 4, has the brand of the carrier, as att, like this -> http://cl.ly/BNaG
    Now my iPhone 4S box is unbranded, since it doesnt has the carrier logo anywhere.

  • How I can know which row is parent item code or child item in matrix?

    Hi,
    In marketing document, when insert a item into contents page, if it is a BOM then all child item will be inserted into matrix automatically. My question is when i view the rows in matrix how i can know which row is normal master item and which row is a child item row? From the UI, i can only see the child item code looks readonly but how i can know it in my add-on code? I tried to get the edittext box object from item No. cell, but i can't find any difference.
    Thanks!
    Lan

    Sorry, i found an issue when i try to retrieve the BOM Type column value. I am in adding mode, when i insert a BOM with components, the bom type will appears as "Component of a Sales BOM". But in the event, when I try to get the value from this cell (it is combobox), it gives another value which is not same with the one it appears in the matrix. Is anyone know how to solve my problem?
    Thanks!
    Lan

  • How can I allow a user (client) to choose a local image file (on his hard d

    How can I allow a user (client) to choose a local image file (on his hard drive) and modify it using an applet from his browser ? I am trying to develop a web page that enables the user to choose an Image file, manipulate the image using a java applet, and display the results.
    Using Java�s �JFileChooser� does not work when called from a browser, probably due to security privileges issues. On the other hand, I can choose and upload any file using a JavaScript form:
    <FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="process.asp">
    <INPUT TYPE=FILE NAME="file1"><BR>

    It seems that I can choose an image file with a Java script form and process an image with an applet. How can I choose a file AND process it locally ?
    (I do not wish to upload the file to the server using JavaScript form and then back to the client�s applet for processing since it will be a tremendous waste of resources).
    Will appreciate any solution.
    Thanks !
    ( my email is: [email protected] )

    "Using Java�s �JFileChooser� does not work when called from a browser, probably due to security privileges issues. "
    You can do this if you sign the applet...

  • How do I know if my CPU has decreased speed or what speed my cpu is running?

    I recently noticed that when running PRO app my MBP seems pretty slow unusually. I have met this occasion before . I heard that when temperture is too high , the CPU will decrease its speed to protect itself.  How do I know if my CPU has decreased speed or what speed my cpu is running?
    Thank you!
    MBP 8,2  10.6.8

    Enter in the search field of Google 'CPU speed monitors' and you should get some results.
    Ciao.

Maybe you are looking for