Accessing system files on linux

how do i get permission to access system files on linux?please help!

i want to access a linux system file from my code, but this is what i get:
java.io.FileNotFoundException: /etc/fstab (Permission denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at java.io.FileWriter.<init>(FileWriter.java:73)
at NewJFrame.write(NewJFrame.java:86)
at NewJFrame.<init>(NewJFrame.java:22)
at NewJFrame$1.run(NewJFrame.java:65)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
how do i get the permission???

Similar Messages

  • How to convert the MS access *.mdb files to Linux oracle?

    Dear all,
    I got a MS Access *.mdb file which has several tables inside
    it. We will like to convert this file into our new oracle
    database of Linux. How should I do to accomplish the converting
    task?
    null

    A third way to convert Access to Oracle is to setup ODBC on the
    client PC which has the access databases.
    Start Access and open the database to the Table view.
    For each table:
    Chose File -> Save As/Export... -> External File or DB -> ODBC
    Enter the table name for the table in Oracle (case used to be a
    problem -- you may have to try uppercase or lowercase)
    Choose the Oracle ODBC driver and login to the Oracle DB.
    Should show you a progress bar while the data goes in.
    You can get the client side Oracle stuff by downloading a trial
    NT server or some other trail software. ODBC drivers are free.
    As I understand it, the Access migration assistant will bring
    across more than just the tables.
    You should probably bring across the data into some temporary
    tables first, then create your real tables and copy across the
    data. That way you can fix things that were broken in the Access
    version.
    Cheers,
    Colin
    null

  • How to access system files

    How to see system files in Finder (e.g. the main mail data file) ?

    Not sure what "system files" you mean, but you might find it when you have Finder opened and look in your Menu bar (which starts with the  logo).
    Then you find "Go" to the right.
    1. For the system files -> Click Computer in the list, then Macintosh HD (Or what ever your hard disk is named) and then there is a folder name "System".
    You might also mean that you are trying to find the library, which is located there also.
    2. If it is the library you are seeking, you might need the "User Library" which is hidden by default.
    To get that, open the "Go" menu again and then press and hold the "Option(or alt)" on your keyboard.
    Then "Library" will show up in the middle of the list, and that is your user library.
    I hope I was a bit of help, please do note that these folders contain very important information.
    I strongly advise you to only adjust anything in there, if you perfectly know what you are doing.
    Cheers~

  • Firefox is freezing when accessing system files

    Whenever I try to upload or simply access my system folders, firefox freezes and does not recover when I attempt to click on any file. This happens for everything from trying to upload pictures to attempting to import my bookmarks.html file. I use Windows 7 and have the latest (3.6.8) version of Firefox.

    You can try this:
    Copy and Paste this code in the Code field in the "Tools > Error Console" and click the "Evaluate" button to cleanup and compress the places.sqlite database file.
    <pre><nowiki>Components.utils.import("resource://gre/modules/PlacesDBUtils.jsm");PlacesDBUtils.checkAndFixDatabase();</nowiki></pre>
    See also:
    * http://kb.mozillazine.org/Locked_or_damaged_places.sqlite

  • Oracle 11g /proc file system files on Linux x86-64

    OS: RHEL 5.6
    Oracle: 11.2.0.3 Standard Edition RAC (GI and DB)
    In 11.2.0.3, it is found that the pseudo files for Oracle processes in /proc filesystem were owned by root, even though the process owner is oracle.
    [oracle@dbserver proc]$ ps -ef|grep ckpt
    oracle    7358     1  0 Dec17 ?        00:00:46 ora_ckpt_orcl1
    oracle   28190 27544  0 12:08 pts/1    00:00:00 grep ckpt
    [oracle@dbserver proc]$ cd /proc/7358
    [oracle@dbserver 7358]$ ls -l
    ls: cannot read symbolic link cwd: Permission denied
    ls: cannot read symbolic link root: Permission denied
    ls: cannot read symbolic link exe: Permission denied
    total 0
    dr-xr-xr-x 2 oracle asmdba 0 Dec 19 12:08 attr
    -r-------- 1 root   root   0 Dec 19 12:08 auxv
    -r--r--r-- 1 root   root   0 Dec 19 10:58 cmdline
    -rw-r--r-- 1 root   root   0 Dec 19 12:08 coredump_filter
    -r--r--r-- 1 root   root   0 Dec 19 12:08 cpuset
    lrwxrwxrwx 1 root   root   0 Dec 19 12:08 cwd
    -r-------- 1 root   root   0 Dec 19 12:08 environ
    lrwxrwxrwx 1 root   root   0 Dec 19 12:08 exe
    dr-x------ 2 root   root   0 Dec 17 22:17 fd
    dr-x------ 2 root   root   0 Dec 19 12:08 fdinfo
    -r--r--r-- 1 root   root   0 Dec 19 12:08 io
    -r--r--r-- 1 root   root   0 Dec 19 10:58 limits
    -rw-r--r-- 1 root   root   0 Dec 19 12:08 loginuid
    -r--r--r-- 1 root   root   0 Dec 19 12:08 maps
    -rw------- 1 root   root   0 Dec 19 12:08 mem
    -r--r--r-- 1 root   root   0 Dec 19 12:08 mounts
    -r-------- 1 root   root   0 Dec 19 12:08 mountstats
    -r--r--r-- 1 root   root   0 Dec 19 12:08 numa_maps
    -rw-r--r-- 1 root   root   0 Dec 19 12:08 oom_adj
    -r--r--r-- 1 root   root   0 Dec 19 12:08 oom_score
    lrwxrwxrwx 1 root   root   0 Dec 19 12:08 root
    -r--r--r-- 1 root   root   0 Dec 19 12:08 schedstat
    -r--r--r-- 1 root   root   0 Dec 19 12:08 smaps
    -r--r--r-- 1 root   root   0 Dec 19 10:59 stat
    -r--r--r-- 1 root   root   0 Dec 19 10:58 statm
    -r--r--r-- 1 root   root   0 Dec 19 10:58 status
    dr-xr-xr-x 3 oracle asmdba 0 Dec 19 12:08 task
    -r--r--r-- 1 root   root   0 Dec 19 11:00 wchanAs a result, many diagnostic utility, like the /proc filesystem (especially the fd/ subdirectory), lsof, strace, gdb, ... were not usable by the the oracle OS account. Any idea?
    In 10g + RHEL 5.2, the psuedo files were owned by oracle.

    sb92075 wrote:
    different system, different OS, & different permissions which has NOTHING to do with Oracle RDBMSDon't agree. Permissions, ownership, etc could be reconfigured while process spawn, this is surely related to Oracle Software. (Well, you may argue that it is related to GI only. But the situation is the same for standalone DB running on standalone ASM).

  • Write access other file systems - NTFS, extX, reiser?

    Hi,
    I've purchaseda Media NMH410 to connect to my WRT160N router and am having difficulty gaining write access to my connected USB drives. I've tried NTFS, extX and reisfer file systems, and none of them will allow me write access when connected to the hub. I can't go with fat32 because of the 4GB file size limitation. The Mediahub really should also be able to write to NTFS considering most every other linux disitribution these days can.
    I expected that since the box is a linux system it would be able to access read/write other linux file systems so thought I could move my data to a linux file system. I've learned to expect encountering access problems with NTFS but am very disappointed the MediaHub is presenting these access problems with other linux file systems.
    Does anyone have any suggestions of how to gain write access to my other drives. Is there a setting somewhere, or do I need to format in a particular fashion w/switches or something to that affect. And why isn't the hub able to write access another drives formatted even in the same file system (reiser, right)?
    Thanks so much for any help you can offer.
    Jacqui

    Hi,
    It might just be a system limitation on the device.
    JacquelineGoguen wrote:
    Thanks.
    I had followed that thread. The problem is I can't go fat32 b/c of file size limitations and I have to be able to write to these drives across the network.
    It appears the Mediahub can ONLY write to external USB devices if they are FAT32? That just seems so odd to me - it's a linux Oistro (albeit slimmed down), I would expect it to have the ability to write to other linux filesystems. or at a minimum, the same filesystem (reiser).
    Jacqui

  • Error on load: System.IO.IOException: The process cannot access the file : error in event viewer when users want to view documents from this third party deployed scan solution

    Error on load: System.IO.IOException: The process cannot access the file
    '\\server1\SCANSHARED\.pdf' because it is being used by another process.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
       at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
       at abc.Scan.Layouts.ICC.Scan.View.Page_Load(Object sender, EventArgs e)
    I faced this  error in event viewer  when users want to view documents from this third party deployed scan solution
    here I have two WFS servers  and they configured with load balancing in F5 .
    when I enable both servers in F5 I receive this error messages in 2nd server,
    when users want to view documents
    adil

    Do you have antiVirus installed on the sharepoint servers?
    These folders may have to be excluded from antivirus scanning when you use file-level antivirus software in SharePoint. If these folders are not excluded, you may see unexpected behavior. For example, you may receive "access denied" error messages when files
    are uploaded.
    Please follow this KB and exclude the folders from Scanning.
    http://support.microsoft.com/kb/952167
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • How to access System properties in xml file

    hi,
    i want to read system properties in my xml file using ${} .
    I tried it but did not find any way.But when i use log4j if i set some variable in
    System properties that properties is read by the log4j.properties .
    I am writing a simple program that read a xml properties file file
    try {
                props   = new Properties();
                fis     = new FileInputStream(xmlFile);
                props.loadFromXML(fis);
    }before reading this file i set some properties and accessing this properties from that xml .but i cant.
    Thanks

    sabre150 wrote:
    fun_with_java wrote:
    can you give some example?Not really - I would have to write the code for you and I'm not getting paid for writing your code.Thanks for your kindness.
    I dont ask you to write the code.Need some help to start it .Actually i dont have knowledge that
    whether xml file automatically read it or i have prase the system property manually. Now i got the way to
    access system property in xml..
    Ok thanks again..
    Thanks & Regards

  • Unable to restrict afp folder access using File Sharing in System Prefs

    If I share files using AFP, and authenticate using a standard account from another machine on the LAN, I can browse and access ALL files and folders on the machine, not just those specified under "Shared Folders" in System Preferences->Sharing->File Sharing. Machine is running OS 10.6.5.

    ...You shouldn't be able to authenticate as a user/account that is not on the local machine.
    Also for each item listed in Sharing Preferences, you have to specify POSIX permissions for specific users, check to make sure 'everyone' isn't set to read and write.

  • How do I create an FSDIAG file on Linux systems?

    QuestionHow do I create an FSDIAG file on Linux systems?
    AnswerTo create an FSDIAG file for the Linux Security product:
    Go to a working directory to which the fsdiag.tar.gz file will be created.
    Run the following command:
    # /opt/f-secure/fsav/bin/fsdiag
    Note: Any existing FSDIAG file will be overwritten.
    You will find the fsdiag.tar.gz file on the current working directory. Attach this file to your support request.
    To create an FSDIAG file for the Internet Gatekeeper (IGK) product:
    Create the diagnostic information file (diag.tar.gz) in the product install directory by running the following command:
    - IGK (Japanese 4.x): # cd /home/virusgw; make diag
    - IGK (English 4.x or English/Japanese 5.x): # cd /opt/f-secure/fsigk; make diag
    Note: Any existing FSDIAG file will be overwritten.
    Attach this file to your support request.
    Note that you can also create the diagnostic file by using the Web UI.

    An .srt is simply a plain text file with sequence numbers, time markers, and captions. You can use any text editor to make one. Follow the pattern:
    1
    00:00:00,500 --> 00:00:04,500
    So it was with my formal education
    as well.
    2
    00:00:04,600 --> 00:00:08,250
    Each weekday, while my father worked
    on his Sunday sermon...
    3
    00:00:08,300 --> 00:00:10,000
    I attended the school
    of the Reverend Maclean.
    The first number (e.g., 00:00:00,500) in each pair indicates when the caption starts. The second number (e.g., 00:00:04,500) in each pair indicates when the caption stops.
    If you're going to be captioning many videos, consider an application that merges a text editor and video preview window. Jubler (http://www.jubler.org/) is one.

  • Accessing a file in another  system

    Hello,
             Can Anyone please tell me how to access a file in another system using java.
    Thanks in Advance,
    Venkat

    Hi Venkat
    Check following link.
    This link is helpful for you
    http://java.sun.com/developer/onlineTraining/Programming/BasicJava1/data.html#app
    http://www.devdaily.com/java/edu/pj/pj010004/pj010004.shtml
    Regards
    Ruturaj

  • Configure ODBC to access a CSV file on Linux for access from BI Server

    How to configure an ODBC connection to a CSV file on Linux for access from the BI Server Repository physical layer
    I am migrating a working windows OBIEE installation to Linux and can not seem to connect to csv files on Linux (from th BI server also running on the same Linux machine).
    I am using SUse Linux Enterprise server / 10 (Slash 10) standard odbc drivers
    My odbc ini file entries are:
    [ODBC]
    Trace=0
    TraceFile=odbctrace.out
    TraceDll=/app/oracle/product/10.1.3/OracleBI/odbc/lib/odbctrac.so
    InstallDir=/app/oracle/product/10.1.3/OracleBI/odbc
    UseCursorLib=0
    IANAAppCodePage=4
    [ODBC Data Sources]
    AnalyticsWeb=Oracle BI Server
    Cluster=Oracle BI Server
    SSL_Sample=Oracle BI Server
    idcbicsvfiles=Odbc Text driver
    [idcbicsvfiles]
    Description = Odbc Text driver
    Driver = Odbc Text driver
    Directory = /data/oracle/OracleBIData/idc
    #ReadOnly = No
    #CaseSensitive = No
    #Catalog = No
    ColumnSeperator = ,
    #Trace = 1
    #Tracefile =/data/oracle/OracleBIData/odbctrace.txt
    #Username      = oracle
    #Password      = ''
    [AnalyticsWeb]
    Driver=/app/oracle/product/10.1.3/OracleBI/server/Bin/libnqsodbc.so
    Description=Oracle BI Server
    ServerMachine=local
    Repository=
    Catalog=
    UID=
    PWD=
    Port=9703
    The csv files I want to use are in the directory /data/oracle/OracleBIData/idc to which I have set up a working and checked connection ([idcbicsvfiles]) on the linux machine itself.
    The error message I get when I select view data in the physcial layer is:
    [NQODBC][SQL_STATE: HY000][nQSError: 10058] A general error has occurred.
    [nQSError: 43093] An error occurred while processing the EXECUTE PHYSICAL statement.
    [nQSError: 16023] The ODBC function has returned ans error. The database may not be available, or the network may be down.
    Please can anybody give me a clue on how to get this working e.g. a working odbc.ini file from your own installation (and/or a tip for the odbc driver choice/configuration)
    P.S. I know this is not supported by Oracle but can not imagine, that nobody is using this.

    Hi,
    Chekc this...Re: Is there ODBC driver for excel flat file in Unix Box
    Re: OBIEE to use a CSV file as a data source on Linux
    Regards,
    Srikanth
    Edited by: Srikanth Mandadi on Oct 8, 2010 2:50 AM

  • How can we access the file/directory system in the server

    Hi friends,
    I have made a text editor attached with an audio player for my project.
    Both text editor and audio player are implemented in applet and put in to a
    jsp page using jsp:plugin. Text editor and player are separate applets running
    in the same page and from same server.A client who is using this editor may
    want to save the edited text files to the server as well as hear audio files from
    directories in the server.
    My question is how can we access the file/directory system in the server
    like we do in the local machine.When the user cliks save or openfromserver button
    in the editor, folder/files in the server must be displayed as we do with FileChooser.
    I am using Apache Tomcat 5,wiindows 2000 server, jdk1.5.
    manu

    You can't access it directly. But your applet can make net connections to the server, and the server can provide that kind of functionality. Generally this is easiest by making HTTP connections and having the server provide the functionality via the web server. (So in your case, JSPs or servlets on the server would list/deliver/create/modify/delete files, and the applets would invoke those JSPs and servlets.

  • Access the file from external system which is in the same LAN

    I have created technical system as standalone and given as my server name and attached to business system
    When creating comm. Channel giving path as “\foldername1\ foldername2\”
    Filename : “test.txt”.
    It is giving path does not exists.
    Is that the correct way to do access the file which is in the same LAN.
    Can any one help me on this.
    What path I should give exactly in the Comm channel..
    Thanks
    M

    Dear Murali,
    Try this
    a)Start transaction SXI_CACHE.
    b)From the context menu XI Runtime Cache select Start Complete Cache Refresh.
    If you still face issue try this .
    Many actions require to access System Landscape Directory content from the Integration Builder. To optimize performance, this content is loaded into a cache so that the System Landscape Directory does not have to be accessed directly each time that System Landscape Directory content is required.
    However, this cache is not automatically updated if changes are made to the content of the System Landscape Directory. For this reason that we delete the System Landscape Directory cache if changes have been made to content in the System Landscape Directory. The cache is then filled each time that the System Landscape Directory is accessed. If we log on to the Integration Builder after we have made a change in the SLD, we do not need to delete the SLD cache.
    To clear the SLD cache, from the Integration Builder main menu, choose Environment ® Delete Cache for SLD Data.
    Once we have deleted the cache for SLD data, accessing objects in the SLD may take longer than usual initially.
    Regards
    Agasthuri Doss

  • Hello,i have changed the access of library and system files in macintosh HD through get info option.i changed the access to write only access for library and system files to no access for everyone.then mac stopped working..nothing opening now.

    hello
    i have changed the access of library to WRITE ONLY and also i changed the access of system files to NO ACCESS FOR ANYONE in macintosh HD.then,suddenly it stopped working.i tried it shut down.then it didnot shut down.then i pressed ctrl+command+power button.then it was shut down.
    NOW, nothing is opening in macbook pro.it is opening and only apple logo is shown.what should i do now.i knew nothing in mac.please help me.operating system is 10.7

    hello CT,
    it showed
    permissions differ on library: should be drwxr-xr-r
    repaired "library"
    permissions differ on system: sholud be should be drwxr-xr-r;they are d-wx-----------
    repaired "systems"
    like this many steps occured.
    then next step is permissions repair complete.

Maybe you are looking for