edit .conf file in /etc linux (java SE)
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: edit .conf file in /etc linux (java SE)

  1. #1
    Join Date
    Sep 2011
    Posts
    15

    edit .conf file in /etc linux (java SE)

    Hi everyone!
    This time I have a java SE web start application hosted in a Linux/Debian server
    I need to edit a .conf file from the /etc directory folder in the Debian server but I have no idea how to access this file if it's not within the public /www folder. I think it has to do with apache users and permissions, but my linux knowledges are just few

    Thanks in advanced!

  2. #2
    Join Date
    Jun 2012
    Posts
    1

    Re: edit .conf file in /etc linux (java SE)

    If you are in Linux system, Just go the terminal and login with root user name and password. From the terminal you can go that folder.

    cd /etc
    vim (your file).conf and enter I then edit as you need.
    Enter Escape button
    To Save file, Enter :wq

    Let me know if it is wrong?

    Thanks,
    Nagaraj

  3. #3
    Join Date
    Nov 2006
    Location
    Barcelona - Catalonia
    Posts
    362

    Re: edit .conf file in /etc linux (java SE)

    Quote Originally Posted by luisp88 View Post
    Hi everyone!
    This time I have a java SE web start application hosted in a Linux/Debian server
    I need to edit a .conf file from the /etc directory folder in the Debian server but I have no idea how to access this file if it's not within the public /www folder. I think it has to do with apache users and permissions, but my linux knowledges are just few

    Thanks in advanced!
    Are you talking about an Apache HTTP Server, right?
    To find out where is located you can check using "httpd -V", or "ps auxww | grep httpd", to know where the process is running.
    Config file is usually named httpd.conf. Whether you can edit or not, depends on permissions.
    If your user belongs to apache group, you probably will able to modify it (check using "groups" command). Another possibility is that your user has permissions in sudoers file: check it using "sudo -l". You will see if your user has permission to modify that file. If you are able to modify, then use command sudo to edit file.
    If nothing works, then you must talk to your system administrator to get permissions.

    Albert
    Please, correct me. I'm just learning.... and sorry for my english :-)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center