I need to change values in a file owned by root (root password is constant)

The file is parameter file has below contents. The file is owned by root. My script is run by normal user and root password is constant and we can hardcode it.
ABCLimit: 90
SpoolLimit: 200
TimeLimit: 345
I need to change the value of SpooLimit from 200 to 400.
Can anybody please give code for this?

Your application needs to be running as root, or the user that started the application needs to have root level permissions for at least specific funtions (i.e. /etc/group, RBAC, sudo, etc).
Java cannot change the users permission level in anyway that the user cannot already do himself.
If you wish to find out how to use the /etc/group file, RBAC, sudo, etc, find your local System Administrator and explain your intentions to him/her (yeah, now that's a conversation I want to hear).

Similar Messages

  • Best approach to change values in .properties file dynamically

    Hi ,
    I am using Jdev 11.1.1.5 . I wanted to change the values used in .properties file (like say a fe email addresses which happen to be different for Test/Prod/Dev instances) dynamically using something like a deployment plan.
    One way to do the same is to include it in a shared libary and do a one -time deployment to the server.
    Are there any better ways like a deployment plan , which unfortunately I think can change values dynamically on for web.xml , weblogic.xml type of files.

    I am using a shared library which takes care of the cases mentioned above.

  • Changing values in property file inside a jar in an ear

    Hi,
    I have an application that contains EJB. The environment values needed for initial context of the ejb is kept in a .properties file. I have created an ear of the application. Inside the ear there is a jar which contains the .properties file. I need to deploy the ear to different environments. However before deploying I need some kind of script to change the values in the .properties file inside the jar in the ear.
    Can anyone provide some help/pointers about how can I achieve it (Using ANT/WLST)

    WLST does not have any capability to update a JAR.
    WLS 10.3 (still in tech preview) has the ability to override properties
    files inside the jar with an external properties file. This would allow you
    to deploy the same ear to different environments, and then only deploy a
    different properties file in the plan directory.
    <Rishi Shah> wrote in message news:[email protected]..
    Hi,
    I have an application that contains EJB. The environment values needed for
    initial context of the ejb is kept in a .properties file. I have created an
    ear of the application. Inside the ear there is a jar which contains the
    .properties file. I need to deploy the ear to different environments.
    However before deploying I need some kind of script to change the values in
    the .properties file inside the jar in the ear.
    Can anyone provide some help/pointers about how can I achieve it (Using
    ANT/WLST)

  • Why are some "caf" files colored green and some blue. I need to change the blue (audio) file to a green one so that I can print the sheet music.

    I've been trying for days to convert blue audio files (caf in garageband) to green files, so that I can print out the sheet music for that file. I've converted the "caf" file to mp3, wav, aiff, even midi - but nothing will load in garageband as a green file. I get them to load as blue audio files but not as green files. I know the difference between the blue and green files, but why do they both have "caf" extensions? I am trying to conver "piano ballad.caf" to something that will show up as a green caf in garageband. I can't believe there isn't someone who has been successful at doing this sort of thing.

    Thank you, that was helpful, it has given me some avenues to explore. I have not used a command prompt for about a decade!
    The command chflags hidden /volumes/HomeShare does not seem to have worked.
    When I use it, there is no error message but I cannot see anything additional in the other computer.
    When I use chflags hidden /volumes/HomeShare/rubbish I see an error message about the folder not existing (which it does not!) so the path is correct.
    When I use chflags hidden /volumes/HomeShare/MBP naming a folder that does exist and was created by this computer/user, it seems to have no effect either.
    Looking at one source of OS X command line commands (http://ss64.com/osx/) I see that 'setfile' might do the trick (setfile v /volumes/Homeshare/MBP) but that command returns 'command not found'. It is apparently part of 'developer tools' ... which I do not have access to (AFAIK).
    In both cases, would the commands work on existing files only, or would new files be visible, or even files copied into this space? Presumably, each person saving to this area would need to then give access via terminal (or a script). Am I right in this thinking? If so, how would I modify the properties of the drive so that they are the same as, for example, a memory stick?

  • Pointers needed to change Value Range in a Domain through a program

    Hi All,
              I have a requirement in which i have to change the Value range of a domain while executing a program...
    Is there any FM available to achieve this functionality.... Kindly provide pointers to achieve my requirement...
    Regards,
    Navin.

    Hi Navin!
    From functional point of view, that's a DDIC change - which you should not do by a program, but in DEV system and transports.
    Otherwise, have a look at table DD07D - with no garantee of the results of direct DB changes in this table.
    Regards,
    Christian

  • Need help changing location of music files on my compute

    I purchased a separate hard drive to store my itunes music files. I copied the music from the default location on my hard drive to the new hard drive. How do I change the path on the iTunes site to the new hard drive location?
    Any help is greatly appreciated.

    Undo what you've done, and follow these directions to consolidate your library:
    http://support.apple.com/kb/HT1364?viewlocale=en_US
    Also, you might consider giving your exHD a letter pretty far down in the alphabet, so when you plug in other USB devices, the drive letter won't change in Windows. That can cause itunes to lose the path to your music with the ! file not found message.

  • Trying to update ipod to new ios, need to change location of backup file in iTunes, how can i do this?

    My HDD is partitioned c for OS and d for program files.  I'm trying to update my ipod touch to the new ios but when it begins to back up my ipod, it attempts to put the back up on my c drive and then says not enough space.  my itunes is stored on my d drive.  how can i get itunes to save the backup to my d drive instead of c?

    I forgot to add that I'm in Afghanistan and have no way of calling for support or going to a friends house to get help. 

  • HELP! I need to change format of swf files to use in ppt on my mac book pro

    I am using my MacBook Pro and Powerpoint 2008 fo rMac... I need to insert a movie (screencapture) which is in swf format... how do I convert it to avi or other ppt-friendly format???
    Thanks in advance

    I would recommend you repost to a Microsoft Office forum, here is one that Microsoft runs:
    http://www.officeformac.com/productforums/
    Good luck!
    Roger

  • I have forgotten my password but there is no "hint" in the box. I need to change some settings so how do I get my password back?

    I have forgotten my password. There is no "hint" in the box.
    How do I recover my forgotten password?

    Mac OS X: Changing or resetting an account password
    After you reset the password, type in a "hint" for future use.

  • How to change value of ${eol} from \n to \r\n, writing by File Adapter

    Hi All,
    How to change value of ${eol} from \n to \r\n, while writing file through File Adapter.
    As my file is being created in Linux environment, so for new line separater, \n is used. I mounted this file directory to windows System.
    As Windows requires \r\n for new line seperator. So I need to change value of ${eol} in the Schema created for file writing.
    Can any one provide help regarding this.
    Thanks in advance

    Hi,
    When an XML payload is written to a file \n would be used as the default line separator regardless of if its windows or linux, as per the XML specification http://www.w3.org/TR/REC-xml/#sec-line-ends.
    As such, one need not worry about the line separators because, the XML file would eventually be processed by a parser which usually would be able to understand both line endings (as they are whitespace characters as far as the parser is concerned).
    If you want to convert the line terminators (for readability etc), 10.1.3.4 has a new feature - in the XML schema definition for the file adapter payload, add these two top level directives to the schema element:
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    nxsd:normalizeLineTerminators="false"
    Regards,
    Shanmu.

  • XML tag  need to  be change in the sorce file (ENCODING)

    Hi
         my source file XML format.. in this file I'm getting as a first tag as  like this..   <b><?xml version="1.0" encoding="ISO-8859-1"?>..</b> but actually in my Message mapping source code i have starting tag is like this...
    <b><?xml version='1.0' encoding = 'UTF-8" ?></b>
    so, som encoding  is    different.. for this how can   solve the problem.. wether i need to change in the source file itself.. or is there any solution to change  that in our scenario itself..
    plz clarryfy this..
    Thanks
    babu

    Hi Babu,
    Check out my answers in this Link
    Re: How to change the incoming xml to a different namespace
    this way you can modify the XML tags which are beyond the reach of mapping
    Regards
    Vishnu

  • Need to change background to white

    I need to change backgrounds of jpg files to white.  Can someone tell me how to do this?  I use Photoshop CS4.  I am a novice woth Photoshop.

    Sounds like you want to select your subject then remove the background.  This is a fairly common operation, for example to put subjects on different backgrounds (different in your case is white).
    See this video by Russell Brown for ideas on masking a subject from a background:
    http://tv.adobe.com/watch/the-russell-brown-show/masking-basics-in-photoshop-cs5/
    -Noel

  • Need to change snmp string for a solaris server

    Hi Everyone ,
    i am new to solaris and i need to change a snmp string for solaris server and we need to add this server into the monitoring system.
    Please tell me the PKG which need to installed in the client ( solaris box ) .
    As of now , i can find these PKGs installed in the machine .
    # pkginfo -i |grep -i snmp
    system SUNWjsnmp Java SNMP API
    system SUNWmibii Solstice Enterprise Agents 1.0.3 SN MP daemon
    Do i need to install any package for setting the snmp string and please tell me the configuration file where i need to
    change the snmp string file ?
    Regards
    Chenthil

    Hi Bhanu,
    I am fine, thanks. Hope you are fine too.
    will this step not required
    $sqlplus apps/appspass
    SQL>exec fnd_conc_clone.setup_clean
    before running autoconfig?If you have the latest AutoConfig patch applied, then I believe it is not required. However, it should be OK to run this command to purge FND_NODES table before running AutoConfig.
    Regards,
    Hussein

  • How can I change the insert SWF File, I need to add a few things and make it better?

    How can I change the insert SWF File, I need to add a few things and make it better? Is there an option inside of the dreamweaver menu that I am not looking at. It would make it easier on me if I changed some things around and didn't have to do it all myself each time I used it. Just incase you was needing to remember what swf flash was, It is not a swf video either.
      <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="640" height="480">
        <param name="movie" value="Sonic Kaboom.swf">
        <param name="quality" value="high">
        <param name="wmode" value="opaque">
        <param name="swfversion" value="9.0.115.0">
        <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
        <param name="expressinstall" value="../Scripts/expressInstall.swf">
        <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="Sonic Kaboom.swf" width="640" height="480">
          <!--<![endif]-->
          <param name="quality" value="high">
          <param name="wmode" value="opaque">
          <param name="swfversion" value="9.0.115.0">
          <param name="expressinstall" value="../Scripts/expressInstall.swf">
          <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
          <div>
            <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
            <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
          </div>
          <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object>
    </div>

    If I understand correctly, Sonic Kaboom.swf needs to be edited in a separate Flash authoring program and then reinserted into your HTML document. 
    As Murray said, Flash is dead.  Nobody uses it anymore.   We use HTML5, CSS3 and JavaScript animations which have universal support from Smartphones, Tablets and other web devices that can't support Flash.   Look at Edge Animate.
    HTML animation | Download free Adobe Edge Animate CC trial
    Nancy O.

  • Change InfoObject value in flat file for Hierarchy load

    Hi Guys,
    I am loading hierarchy for an infoobject from flat file. I have the field InfoObject (IOBJNM) whose value needs to be changed before loading into the hierarchy. Can somebody tell me how can I do that through formula or routine.
    The InfoObject loads 0HIER_NODE and a leaf infoobject values from flat file.
    The hierarchy transfer rules does not contain IOBJNM field., though the Hier Structure under Transfer Structure tab contains IOBJNM.
    In transfer structure I see only NodeName, Date From, Date To, and eaf infoobject.
    Any help would be appreciated.

    Hi,
          Try using the IDOC method while loading the hierarchy and make sure you have this IOBJNM in the external charactersitics for the Infoobect to which you are loading this hier.
    Thanks,
                Peter

Maybe you are looking for