File Permission Denied

Hello again! I have now come across the problem of being denied permission to open certain directories on my computer. If I am logged on as root that does not happen but when writing the program not everyone will be logged on as root. So, I guess what I am asking is how can I "catch" this error? Can I change permissions for this directory just to open and get the list and then change back. I would not be making any changes I am just trying to read the list of files/directories in there.
Any ideas?

Create a java.io.File object from the directory name and use the canRead() method to determine whether you can list the files.
  File directory = new File(..); // however you'd get this
  if (directory.isDirectory() && directory.canRead()) {
     File[] list = directory.listFiles();
     // do stuff
  // you can check to see if you can make new files in the
  // directory using canWrite
  if (directory.isDirectory() && directory.canWrite()) {
     // create a new file in the directory.
  }

Similar Messages

  • "Couldn't create destination temporary file:Permission denied"

    I am running the latest version of Final Cut Server on a Mac Pro Tower running Mac Server 10.6.X.
    I keep getting 2 Error messages every time my users are trying to send content to the server via Final Cut Server client application:
    (1) "Broken Pipe" and (2) "Couldn't create destination temporary file:Permission denied"
    Anybody have any Ideas on how I could correct this?
    Thanks

    Can you elaborate on what you did to fix this? I am getting the same error. Everything was fine about a week ago. I tried repairing the disk permission in Disk Utility.

  • Unable to open USB port device file: Permission denied

    I have an up-to-date system (full "pacman -Syu" yesterday), I am in a "lp" group and the printer (Canon Pixma MP270) started to give "Unable to open USB port device file: Permission denied" error, although in the past it worked and still works in Windows. Doesn't anybody have a similar problem?

    Thanks for reply.
    CUPS worked, I could use CUPS-PDF and localhost:631 was accessible and working.
    Today I managed to print again. I did "pacman -Rcsn cups" and reinstalled it again.
    My printer is Canon Pixma MP270 and so far it wasn't the best choice for Arch Linux—scanning works fine but it's like throwing a coin when it comes to printing. I've written a simple PKGBUILD for installing its printing driver as a regular package, but I don't know what to set as a license.
    pkgname=mp270-printer
    pkgver=3.20
    pkgrel=1
    pkgdesc="Canon Pixma MP270 printer driver"
    arch=('i686')
    url="http://software.canon-europe.com/products/0010753.asp"
    license=('unknown')
    depends=('libpng12' 'gtk2' 'popt')
    makedepends=('deb2targz')
    source=(http://files.canon-europe.com/files/soft37268/software/MP270_debian_driver_pack.tar)
    md5sums=('d26c36e2d1799ddc09e644dc7765f0a3')
    build() {
    cd $srcdir
    tar xzf cnijfilter-mp270series-$pkgver-1-i386-deb.tar.gz
    cd cnijfilter-mp270series-$pkgver-1-i386-deb/packages
    deb2targz *
    tar xzf cnijfilter-common_$pkgver-1_i386.tar.gz
    tar xzf cnijfilter-mp270series_$pkgver-1_i386.tar.gz
    ln -s /usr/lib/libtiff.so usr/lib/libtiff.so.4
    package () {
    cd $srcdir/cnijfilter-mp270series-$pkgver-1-i386-deb/packages
    cp -r usr $pkgdir/

  • Unzipping an archive file-permission denied

    Each time I try to unzip (with the system "Archive Utility") a file in an external drive i get an error message. "operation can not be opened, permission denied"
    I have just repaired permissions and verified in my SYS HDD without success.
    Any ideas here?

    Should have defined better...
    I did drag the .zip file from the portable drive to my desktop and looked at permissions in the info window. I am the admin and owner of the file as shown. Tried again to open the .zip file and again the same error message. I then "repaired permissions" throiugh the disk utility and had the same results. This is true for a copy of the file on another drive that i also tried to open. Same error message.
    Other .zip files open fine with the archive utility, its just these two that will not open,

  • Cannot save numbers file, permission denied

    Permission denied trying to save a spread sheet. Tried the repair permissions and nothing. I really do not want to reboot as I have spent too much ime working on the spreadsheet.

    Chris,
    Just ran into this same problem with Saving a pre-existing Numbers file under Snow Leopard / OS 10.6.8.
    Solution for me was to notice, in the Finder, that weeks ago, I had previously moved the problem Numbers file into a locked folder that I was using to protect its contents from accidental changes. (The file itself was not locked!) I had forgotten that I had done this! "Insufficient permissions" or "possible full disk error messages" on attempts to save it resulted.
    Try this: First, check if the problem file is locked in the Finder.
    Select the Numbers file that is giving you trouble in the Finder,
    then press Command+I to open its Get Info window
    In the General section (NOT in the Sharing & Permisions section) check to see if the Locked box is checked.
    If it is, Click it to uncheck and unlock the file
    Close the Get Info window
    If the problem file itself was NOT locked - follow this same procedure for the Folder in which it resides, as well as any folders above it in the Finder hierarchy.
    Actually, if you just OPTION+CLICK on highest folder in which the problem file is nested, you will open it AND open all its sub-folders. If ANY are LOCKED you will see a tiny padlock icon over its lower left corner. Just unlock them as needed and you should regain full access to your problem Numbers file …assuming your problem had the same cause as mine.

  • J2SE File Permission Denied

    Hi, I'm a student currently developing games as my School attachment. I created a JApplet Game and tried to attach it onto my webpage but have a problem. There is an Access Control Exception where i have an Access denied for a read protection on an image file that i created.
    it shown : Exception: java.security.AccessContrtolException: Access denied(java.io.filePermission image/bgrd.jpg read)
    Anyone could help me??
    Thanks

    i created the Jar file and got to the step of verified, added the jar into the code for the web site but still face the problem . Error Goes as follow
    java.security.AccessControlException: access denied (java.io.FilePermission image/bgrd.jpg read)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
         at java.security.AccessController.checkPermission(AccessController.java:401)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
         at java.lang.SecurityManager.checkRead(SecurityManager.java:887)
         at sun.awt.SunToolkit.getImageFromHash(SunToolkit.java:408)
         at sun.awt.SunToolkit.getImage(SunToolkit.java:422)
         at HackIt.<init>(HackIt.java:37)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at java.lang.Class.newInstance0(Class.java:296)
         at java.lang.Class.newInstance(Class.java:249)
         at sun.applet.AppletPanel.createApplet(AppletPanel.java:548)
         at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1621)
         at sun.applet.AppletPanel.runLoader(AppletPanel.java:477)
         at sun.applet.AppletPanel.run(AppletPanel.java:290)
         at java.lang.Thread.run(Thread.java:536)

  • XML File in External Table - OS error permission denied.

    Hi.
    10g R2, Red Hat Linux
    I'm using the article (see below, taken from http://www.dbazine.com/olc/olc-articles/scardina1 by Mark Scardina) to create an external table where I'd store my XML file.
    So, I
    1. Created a directory xmlfile_dir
    2. Granted access to needed db user
    3. Created the table
    CREATE TABLE relayxml_xt (doc CLOB)
    ORGANIZATION EXTERNAL
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY xmlfile_dir
    ACCESS PARAMETERS
    FIELDS (lobfn CHAR TERMINATED BY ',')
    COLUMN TRANSFORMS (doc FROM lobfile (lobfn))
    LOCATION ('xml.dat')
    REJECT LIMIT UNLIMITED;
    4. mv relay.xml /xmlfile_dir/xml.dat
    When I run SELECT * FROM relayxml_xt I get this:
    Error starting at line 1 in command:
    select * from relayxml_xt
    Error report:
    SQL Error: ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04063: unable to open log file RELAYXML_XT_28773.log
    OS error Permission denied
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
    29913. 00000 - "error in executing %s callout"
    *Cause:    The execution of the specified callout caused an error.
    *Action:   Examine the error messages take appropriate action.
    What am I doing wrong?
    Thanks,
    Using External Tables
    Introduced in Oracle9i, Oracle’s external table feature offers a solution to define a table in the database while leaving the data stored outside of the database. Prior to Oracle Database 10g, external tables can be used only as read-only tables. In other words, if you create an external table for XML files, these files can be queries and the table can be joined with other tables. However, no DML operations, such as INSERT, UPDATE, and DELETE, are allowed on the external tables.
    Note: In Oracle Database 10g , by using the ORACLE_DATAPUMP driver instead of the default ORACLE_DRIVER, you can write to external tables. In Oracle Database 10g, you can define VARCHAR2 and CLOB columns in external tables to store XML documents. The following example shows how you can create an external table with a CLOB column to store the XML documents. First, you need to create a DIRECTORY to read the data files:
    CREATE DIRECTORY data_file_dir AS 'D:\xmlbook\Examples\Chapter9\src\xml';
    GRANT READ, WRITE ON DIRECTORY data_file_dir TO demo;
    Then, you can use this DIRECTORY to define an external table:
    CREATE TABLE customer_xt (doc CLOB)
    ORGANIZATION EXTERNAL
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY data_file_dir
    ACCESS PARAMETERS
    FIELDS (lobfn CHAR TERMINATED BY ',')
    COLUMN TRANSFORMS (doc FROM lobfile (lobfn))
    LOCATION ('xml.dat')
    REJECT LIMIT UNLIMITED;
    The xml.dat file follows:
    customer1.xml
    customer2.xml
    If you describe the table, you can see the following definition:
    SQL> DESC customer_xt;
    Name Null? Type
    DOC CLOB
    Then, you can query the XML document as follows:
    SELECT XMLType(doc).extract('/Customer/EMAIL')
    FROM customer_xt;
    Though the query requires run-time XMLType creation and XPath evaluation, this approach is useful when applications just need a few queries on the XML data and don’t want to upload the XML data into database. In Oracle Database 10g, you cannot create external tables that contain pre-defined XMLType column types.
    Message was edited by:
    vi2167

    Your don't have the proper operating system privileges. Be sure that you (=oracle OS user / the OS Linux user that is starting the database) are allowed have read privs on the path and/or file.
    for example...
    chown -Rf /xxxxxxx/xxxx/etc
    ls -l file.xml
    file.xml    oracle:oinstall    rw-rw-rw

  • Receiver File adapter - FTPEx: 550 Permission denied

    Hi all,
    We are getting the following error from a File receiver comm. channel:
    Delivery of the message to the application using connection AFW failed, due to: com.sap.aii.adapter.file.ftp.FTPEx: 550 Permission denied to "inbound"..
    The FTP connection is anonymous so anyone (within our network) can login on this server, folder rights are also set to all i.e. anonymous user can create, read, delete files on the target folder.
    I have tested to the target folder using IE browser, I was able to logon the server, read, create and delete files.
    Has anyone of you an idea why the adapter engine still cannot create a file?
    Regards,
    Roberto

    > Hi Roberto,
    > 'Anonymous' is a default user that exists in Unix
    > nix layer. But for this user also you need to provide
    > the file write/read/delete permissions into the
    > folder. Then only you can write a file evenif you are
    > using 'Anonymous' User.
    >
    > Cheers
    > JK
    Hi there,
    As explained before; we have tested the same FTP connection (using the same anonymous account) via a DOS session and also via IE (from the XI server), both tests were successful and we were able to create/delete files without any problem.
    So again, the problem is only with the File/FTP adapter which for some unexplained reason cannot get access to this folder.
    Are there any special (not mentioned in the SAP documentation?) prerequisites to establish a FTP connection using the file adapter?
    Any help is highly appreciated!
    Thanks, Roberto
    BTW; we are on SP14 and the XI server runs under a Windows Server machine.
    Message was edited by: Roberto Viana

  • Receiver File Adapter - Permission Denied

    Hi,
    I have a problem with posting a file to a specific address at a ftp (file adapter). I get the follwing error.
    <i>Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: XI_ftp_467febcd-b4df-25c4-e100-00000af501ca.tmp: Permission denied.: com.sap.aii.adapter.file.ftp.FTPEx: 553 XI_ftp_467febcd-b4df-25c4-e100-00000af501ca.tmp: Permission denied.</i>
    I have no problem posting to other addresses so the file adapter is working. I have two things that I can thing of, that is different from the ones working.
    - The username and the address both has "_" in them.
    user: com<b>_</b>test
    address: /test/comp<b>_</b>test/
    - The password contains special characters
    password: Q2bE3x  (example)
    Can any of those things be the problem or is there somthing else?
    Best Regard
    Claes

    Check out the directory has enough permission to write on...atleast 660
    also make sure that, FTP site is able to connect from the PI via ftp command..
    Hope this helps,
    Rgds,
    Moorthy

  • OS command error=13, Permission denied in File Adapter

    Hi All,
    I am trying to call the OS commands in File adaper, when i check the Audit log i am getting Error exectuting the command. the same command when i check in OS its working fine.
    i have collected the debug log and i can see the message saying
    Catching #1#java.io.IOException: java.io.IOException: error=13, Permission denied
         at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
         at java.lang.ProcessImpl.start(ProcessImpl.java:65)
         at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
         at java.lang.Runtime.exec(Runtime.java:591)
         at java.lang.Runtime.exec(Runtime.java:429)
         at java.lang.Runtime.exec(Runtime.java:326)
         at com.sap.aii.af.lib.util.system.CommandLauncher.exec(CommandLauncher.java:64)
         at com.sap.aii.adapter.file.util.OSCommand.exec(OSCommand.java:58)
         at com.sap.aii.adapter.file.util.OSCommand.exec(OSCommand.java:33)
         at com.sap.aii.adapter.file.File2XI.processFileList(File2XI.java:991)
         at com.sap.aii.adapter.file.File2XI.invoke(File2XI.java:622)
         at com.sap.aii.af.lib.scheduler.JobBroker$Worker.run(JobBroker.java:500)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:169)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:266)
    I hope the problem with problem XI communication with OS level, Could you pls suggest me the problem?
    Thanks,
    Venkat

    Hello!
    You can see more information about os command using the file adapter in SAP note:
    #841704 - XI File & JDBC Adapter: Operating system command
    o  The command line of an operating system command run through the
       File and JDBC Adapter is interpreted slightly different compared
       to common operating system shells. E.g. quotes and apostrophes
       are handled differently. If in doubt, check if the command can be
       successfully run through the Java Runtime.exec(...) API. Also
       note that the command is run as user "<sid>adm" (Unix) /
       "SAPService<SID>" (Windows).
       Under Windows, this especially means that you cannot use any
       shell commands interpreted by teh command processor (such as
       "copy", "ren" or "del") using the operating system command.
    Best regards,
    Franklin

  • Cannot create file "/Applications/ " Permission denied.

    When installing new software Iget the following error message: "Cannot create file "/Applications/ ". Permission denied. I have used disk utilities to try to repair my permissions with no sucsess. I have also tried reinstaling the software. Any advise is appreciated.
    I am using Mac OS X Yosemite 10.10.2 and Safari 8.0.4

    You may need to rebuild permissions on your user account. To do this,boot to your Recovery partition (holding down the Command and R keys while booting) and open Terminal from the Utilities menu. In Terminal, type:  ‘resetpassword’ (without the ’s), hit return, and select the admin user. You are not going to reset your password. Click on the icon for your Macs hard drive at the top. From the drop down below it select the user account which is having issues. At the bottom of the window, you'll see an area labeled Restore Home Directory Permissions and ACLs. Click the reset button there. The process takes a few minutes. When complete, restart.   
    Repair User Permissions

  • Permission denied in calling ssh file from job

    hello
    i tried to create program and a job to execute ssh file using sql i am using oracle 10g R2
    as following :
    begin
    DBMS_SCHEDULER.create_program (
       program_name => 'START_SCRIPT_INVOIC',
       program_type => 'EXECUTABLE',
       program_action => 'root/[email protected]:/home/admin/services/fd_listener/INVOICStart.sh',
       number_of_arguments => 0,
       enabled => TRUE,
       comments => 'COMMENTS ABOUT THE SCRIPT ROLE');
    dbms_scheduler.create_job 
      (job_name => 'START_SERVICE_INVOIC', 
       program_name=> 'START_SCRIPT_INVOIC', 
       enabled=>true, 
       auto_drop=>false, 
       comments=>'Job used to run the program START_SCRIPT');
    end;
    then i tried to start to exec the job as follow
    BEGIN
    dbms_scheduler.RUN_JOB('START_SERVICE_INVOIC');
    END;
    and give me this error :
    >[Error] Script lines: 1-4 --------------------------
    ORA-27369: job of type EXECUTABLE failed with exit code: Permission denied
    ORA-06512: at "SYS.DBMS_ISCHED", line 150
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 441
    ORA-06512: at line 2 
    please help me i need to execute  this urgently 

    user11114041 wrote:
    hello
    i tried to create program and a job to execute ssh file using sql i am using oracle 10g R2
    as following :
    begin
    DBMS_SCHEDULER.create_program (
       program_name => 'START_SCRIPT_INVOIC',
       program_type => 'EXECUTABLE',
       program_action => 'root/[email protected]:/home/admin/services/fd_listener/INVOICStart.sh',
       number_of_arguments => 0,
       enabled => TRUE,
       comments => 'COMMENTS ABOUT THE SCRIPT ROLE');
    dbms_scheduler.create_job 
      (job_name => 'START_SERVICE_INVOIC', 
       program_name=> 'START_SCRIPT_INVOIC', 
       enabled=>true, 
       auto_drop=>false, 
       comments=>'Job used to run the program START_SCRIPT');
    end;
    then i tried to start to exec the job as follow
    BEGIN
    dbms_scheduler.RUN_JOB('START_SERVICE_INVOIC');
    END;
    and give me this error :
    >[Error] Script lines: 1-4 --------------------------
    ORA-27369: job of type EXECUTABLE failed with exit code: Permission denied
    ORA-06512: at "SYS.DBMS_ISCHED", line 150
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 441
    ORA-06512: at line 2 
    please help me i need to execute  this urgently
    This is a forum of volunteers.  There is no "urgent" here.

  • Permission denied - unable to "compress" file

    Hi I have a weird scenario which I would need help on.
    SunOS mysvr 5.10 Generic_127127-11 sun4u sparc SUNW,Sun-Fire-880
    I have a user "myuat" which belongs to a group "pc"
    # id
    uid=30008(myuat) gid=101(pc)
    and in /etc/group
    pc::101:otheruat,myuat
    I am running a compress command to compress a file in a directory and I get permission denied
    # cd /myprod/mycor/mycom/myarch
    # compress mytxtcom.20080804
    mytxtcom.20080804: Permission denied
    # ls -l mytxtcom.20080804
    ----rwx---+ 1 myuat pc 239268 Aug 5 00:23 mytxtcom.20080804*
    # getfacl mytxtcom.20080804
    # file: mytxtcom.20080804
    # owner: myuat
    # group: pc
    user::---
    group::rwx #effective:rwx
    group:hmis:r-- #effective:r--
    mask:rwx
    other:---
    # getfacl /myprod/mycor/mycom/myarch
    # file: /myprod/mycor/mycom/myarch
    # owner: root
    # group: pc
    user::---
    group::rwx #effective:rwx
    group:hmis:r-x #effective:r-x
    mask:rwx
    other:---
    I noticed that if I chown from:
    ----rwx---+ 1 myuat pc 239268 Aug 5 00:23 mytxtcom.20080804*
    TO:
    ----rwx---+ 1 root pc 239268 Aug 5 00:23 mytxtcom.20080804*
    then I will be able to compress the file, why? I wonder why "myuat" id is not able to compress file eventhough it belongs to same group?
    ----rwx---+ 1 myuat pc 42120 Aug 5 00:23 mytxtcom.20080804.Z*
    Any idea? Please help.
    Thanks

    Were you the root user when you compressed the file?
    It looks like the user 'myuat' does not have permission to write to the '/myprod/mycor/mycom/myarch' directory. You need to have write permission to the directory in order to compress a file in it, even if you have permission to write to the file itself.

  • ORA-22288: file or LOB operation FILEOPEN failed Permission denied

    I have installed Oracle XE (Universal) on Fedora Core 8
    I am trying to update Apex to 3.1.1. I have downloaded and extracted the zip file using unizp apex_3.1.1.zip
    I ran @apexins SYSAUX SYSAUX TEMP /i/
    and @apxchpwd
    Both were successful
    Now when I am executing this
    @apxldimg.sql /home/myuser
    I am getting
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    PL/SQL procedure successfully completed.
    old 1: create directory APEX_IMAGES as '&1/apex/images'
    new 1: create directory APEX_IMAGES as '/home/myuser/apex/images'
    Directory created.
    declare
    ERROR at line 1:
    ORA-22288: file or LOB operation FILEOPEN failed
    Permission denied
    ORA-06512: at "SYS.DBMS_LOB", line 523
    ORA-06512: at "SYS.XMLTYPE", line 287
    ORA-06512: at line 15
    PL/SQL procedure successfully completed.
    Commit complete.
    timing for: Load Images
    Elapsed: 00:00:00.06
    Directory dropped.
    Kindly help.

    I had the same problem on centos (RHEL 5.2). It think maybe it is something to do with permissions with the folder to which you extract the software. I unziped apex download in the home for the super user /root then changed directory to /root/apex to do the install. In sqlplus connected as sys as sysdba the command @apxldimg.sql /root failed with ora-22288. My workaround was to copy the images to a different directory and then it worked. rm -rf /tmp/apex/images/ then mkdir -p /tmp/apex/images/ then cp -r /root/apex/images/* /tmp/apex/images/ then back in sqlplus @apxldimg.sql /tmp. This time it worked!

  • Permission Denied Error when RWD auto playback file is published in portal

    Hi All,
    We are trying to Publish RWD Auto play back file link in Portal Environment. While doing so, we getting error Permission Denied" error(Java script error which comes on the status bar)
    Following are the steps been followed so far for enabling this RWD file
    1. We have uploaded an entire folder consisting of  RWD Document say a HTML file which is of size say 15 MBwhich makes use of many other image files,GIF files, HTML files which are all present inside the folder into KM content of SAP EP Portal
    2. We have created a KM document iview out of the HTML file(flash file)
    Regards,
    Sowmya

    Hi,
    Its not related to Work flow.Its just related to KM upload in the portal but the problem is the file will play only when the entire folder is uploaded.But after creating the KM document iview out of the link to the file,its not opeining.Its giving a blank screen with the "permission denied" error in the status bar
    Regards,
    Sowmya

Maybe you are looking for

  • Update the cost in sale order

    dear sir i check with abaper ,he says the value is updated from sale order they get the consumption of sales using customized transaction actual cost is zero user create the material master withot pricing we ask to update the material master and they

  • Returning non stock items from a return sales order

    Hello Everyone: I have a return sales order that I am receivi9ng an error meesage on for only two of the line items... The Error Message is "update Control of movement type is incorrect (entry 651 X__L)...the other items on the sales order that are b

  • Trying to download and install Adobe Photoshop Lightroom 4.1.

    trying to download and install Adobe Photoshop Lightroom 4.1. and keep running into "Ligfhtroom_4_LS11_w_LS11_w...exe 730/730 MB, Interupted" after the 7-8 minute down load. ANy thoughts as to what I amor am not doing cauing this interruption?

  • Headings are duplicated in Printed Document

    I noticed that some headings in my Printed Document were duplicated. I investigated and found that topics used as Books in the TOC had that problem: The first heading was duplicated in the Printed Document. I also happened to use the first heading as

  • How to clean the iPad Smart Cover(Leather)?

    how to clean the iPad Smart Cover(Leather)?