modifying a .ini file in linux

Posted on 2012-08-28
Last Modified: 2012-09-04
I have a server that needs a couple of lines added to a .ini file see below:

current file name:  TacacsPrompts.ini

current file contents:

file needs to be changed to:

My unix command line skills are limited.  Anytime i try and change this file i get an error message about permissions.  I have tried to use winscp to copy a new file in this same server directory, however this gives permission issues too.  Is it possible to edit this file directly from command line?  please see the error that i am getting

Question by:bryanord
    LVL 12

    Assisted Solution

    LVL 6

    Assisted Solution

    If you don't like vi, try nano (or pico) - a much more easier editor in linux.
    if you do require root type access to save then if you do have enough user privileges just go
    "sudo nano *filename*" obviously changing *filename* for the actual file. You'll be asked for a super user password.
    LVL 7

    Accepted Solution

    Do you have root access to the server ?  if you do you can use winscp , login to the server and then right click the file and click on edit, you can then edit and save the file  through winscp without having to use command line. If you get permission issue , can you please list the output of :

    ls -l  TacacsPrompts.ini  

    The file could have acl set if you cannot edit the file with root access.

    Thank you

    Author Closing Comment

    i found a colleague that helped me with VI.   Thanks for the contributions.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now