Execution through "sudo"

Hello,
In our enviornment (GC 10.2.0.3/Solaris), acces to the oracle user on the database servers are restricted and DBAs have to login as themselves
and sudo into oracle using their own password
example:'sudo su - oracle'
we can't login/ssh into these servers as 'oracle'.
Most of the functionalities, including Agent Installation, Upgrade, Listener shutdown/startup need such kind of access
what are the steps need to be done for easy execution of tasks from Grid control GUI?
Thank you.

This is supported 10204. please refer the RN
http://download.oracle.com/docs/cd/B16240_01/doc/doc.102/e12165/toc.htm

Similar Messages

  • Reports failing during execution through CMC

    Currently we have the following configuration in our development and QA environments
    Crystal Reports Server XI R2
    Windows 2003 Server
    Data used to generate reports is kept in Oracle 10G running on Red Hat
    Both servers are virtual environment - they run on VMWare
    We have a particular report that basically bails out 1/2 way through execution for a particular schema. The report uses a SQL command - the SQL query itself can take sometime when executed through SQL Developer - depending of the size of the data set in the schema can take between 5 to 10 min to execute.  When running the report itt fails with the following message:
    A Request was canceled. The necessary security privileges could not be verified. This indicates a problem with the security server.
    In the windows event viewer we can see the following entries
    Security policies were propagated with warning. 0x4b8. An extended error has occurred
    A failure occurred while the Page Server was processing report .... (Event 42452)
    A Page Server subprocess in the processing server was forced to terminate (Event 42445)
    Your request cannot be processed due to low system resources. Please contact your system administrator (Event ID 42443)
    A Page Server subprocess was forced to terminate (Event 42451)
    There is nothing unusual in the logging folder.
    We already look through the knowledge base and the only article that sort of resembles the situation is article 1407795. We confirmed that the report has no printers associated to it.
    The report work with a smaller data set in a different schema.
    We are at a lost - we have changed the JVM parameter to allocate more memory to Tomcat but it does not seem to address the issue.
    Any insight would be appreciated

    When CRS is installed, it defaults to run under the Local System account on the server where it's installed.  This account is local to the server and does not have access to anything on the network.  It sounds like this may be part of your problem. 
    In the CCM, stop each of the "servers", including TomCat, go to its properties and change the login in at the bottom of the first tab to an account that has network access, save and restart the server.  Best Practice is to have a special "services account" on the network where the password doesn't expire to use for this purpose.
    If that's not the issue, I would verify the login being used for the report and also that there's nothing on the database end that would be causing this.  There is no "Security Server" in CRS, so this is a problem that is occuring outside of CRS but is affecting how CRS runs.
    -Dell

  • "Variable applied"display  after query execution  through WAD incorrect

    Hi ,
    In my queries i provide varible entries for  0FISCPER, 0FISCVARNT along with other variables.In the query i dispplay the values for the variables applied.When i run these queries through 2004s WAD  if i were to select 0FISCPER = 01/08/2007 and 0FISCVARNT = AK after query execution the variable applied displays - 
    <b>0FISCPER = AK/01/08/2007
    0FISCVARNT = #</b>.
    It works fine on 3.5 templates.We are on SP9.We have a sandbox also and i tested it out in sandbox  and have no problem there.
    Is anyone facing the same issue?
    Regards,
    Shiva

    Not much experience in WAD but I think there should be a query in BEx Query Designer.
    There you can choose that characteristics which takes time. Select "Advanced" tab from right hand side.
    Under "Filter Value Selection During Query Execution"  you will get 4 options.
    BTW if you have a query on DSO then creating index ( secondary) on the affected characteristics would also resolve your problem
    Regards
    Anindya

  • Stored Proc Execution through OS command using shell script

    Hi All,
    I have a requirement of executing one stored procedure before putting data in Table through JDBC adaptor and two stored procedures after that.
    I was thinking to write a shell script and execute it before and after message processing in adaptor.
    Can anybody please tell me how should i write a shell script for it?
    I have identified that exec <Stored_Proc_Name> is the syntax for it.
    Will i need to write something more in this script?
    Thanks,
    Atul

    Hi Atul,
    Stored procedures are written on the Database server for which you are going to write JDBC adapter.
    you will just call the storedprocedure in to your adapter.
    as per your requirement you shd run one stored procedure (let us say SP1) and then you have to push data into tables and then run SP2 and SP3...
    so for this write three stored procedures and call them into another SP. in this SP you call SP1 first then insert statement to insert data into tables and then SP2 and SP3.
    finally call SP into your JDBC adapter.
    you can call SP1 in SP as below
    Var_SQL :='call SP1 (''' || Var_1 || ''',''' || Var_2 ||''')' ;
    EXECUTE IMMEDIATE Var_SQL;
    i think for this shell script is not required.. correct me if i am wrong...
    Regards,
    Sukarna.

  • Problem in Mat view execution through dblinks

    HI Experts,
    I am refreshing MAT_VIEW's via dblinks. But during refresh i am getting below error.
    I tried both with Complete and Fast. Both are getting errors.
    Seems i missed some privilages.
    Please assist me here..
    With Fast option
    *===========*
    SQL> exec dbms_mview.refresh('CDS_BANK_BRANCH_NLD',*'F'*);
    BEGIN dbms_mview.refresh('CDS_BANK_BRANCH_NLD','F'); END;
    ERROR at line 1:
    ORA-12018: following error encountered during code generation for
    "ACCOUNTINFO"."CDS_BANK_BRANCH_NLD"
    ORA-00942: table or view does not exist
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2256
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2462
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2431
    ORA-06512: at line 1
    With Complete Option
    SQL> exec dbms_mview.refresh('CDS_BANK_BRANCH_NLD',*'C'*);
    BEGIN dbms_mview.refresh('CDS_BANK_BRANCH_NLD','C'); END;
    ERROR at line 1:
    ORA-12018: following error encountered during code generation for "ACCOUNTINFO"."CDS_BANK_BRANCH_NLD"
    ORA-00942: table or view does not exist
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2256
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2462
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2431
    ORA-06512: at line 1

    Fran wrote:
    You are calling materialized view at local DB where the m_view doesn't exists. To refer another database through dblink you must use m_view@remote_databaseyou are right , i just notice this :)

  • FM execution through xi

    Hi Everbody,
    Am using the FM "BAPI_DOCUMENT_CHECKIN2" to checkin the file in to DMS system.
    Backend Systen ERP is configured with DMS system , When FM of above is executed from backendsystem file gets attached.
    But Scenario gets different when i use this FM in  external system (Ex. XI system).The FM is executed b y specifying the destination  but file is not getting attached even though there is no error.
    Here in FM i found a parameter : Hostname  -- which describes :::: Computer name of the frontend computer used to call BAPI. Only necessary if the call of the function module is executed from an external system. The frontend type is deteremined using the computer name from DMS customizing.
    Did anyone get of any kind prob ??
    kindly advice .. i need to execute this FM using XI (Receiver RFC Adapter) ;;; Adapter status is green saying no error ::: but n ofile is getting attached.

    Hi I use the
    as advice and still see no File checked in to the DMS
    Below is the CODE
    *& Report  YTEST
    REPORT  ytest.
    DATA: lf_doctype(003),    "LIKE bapi_doc_draw-documenttype,
          lf_docnumber(025),  "LIKE bapi_doc_draw-documentnumber,
          lf_docpart(003),    "LIKE bapi_doc_draw-documenttype,
          lf_docversion(002), "LIKE bapi_doc_draw-documentversion,
          lf_status(002).     "LIKE bapi_doc_draw-statusextern.
    *//DATA STRUCTURE FOR BAPI RETURN
    DATA: BEGIN OF  ls_return,
    type(001),
    id(002),
    number(003),
    message(220),
    log_no(020),
    log_msg_no(006),
    message_v1(050),
    message_v2(050),
    message_v3(050),
    message_v4(050),
    parameter(032),
    row(010),
    field(030),
    system(010),
    END OF ls_return.
    *//DATA STRUCTURE FOR DOCUMENT ORGINALS
    DATA:BEGIN OF lt_files,
    deletevalue(001),
    documenttype(003),
    documentnumber(025),
    documentpart(003),
    documentversion(002),
    originaltype(005),
    sourcedatacarrier(010),
    storagecategory(010),
    wsapplication(003),
    docpath(255),
    docfile(255),
    statusintern(002),
    statusextern(002),
    statuslog(020),
    application_id(032),
    file_id(032),
    description(040),
    language(001),
    checkedin(001),
    active_version(001),
    created_at(014),
    changed_at(014),
    created_by(012),
    changed_by(012),
    content_description(050),
    END OF lt_files.
    **.... Bapi-Return structure
    DATA : pr_ls_return LIKE ls_return .
    **.... Originals
    DATA: pr_lt_files LIKE lt_files OCCURS 0 WITH HEADER LINE.
    lf_doctype    = 'STD'.
    lf_docnumber  = '296501'.
    lf_docversion = '00'.
    lf_docpart    = '000'.
    lf_status     = 'CT'.
    Check in original 1 into SAP Database
    REFRESH pr_lt_files.
    CLEAR pr_lt_files.
    PR_lt_files-storagecategory = 'Z_BHEL_HYD'.    " Storage = SAP-DB
    PR_lt_files-docfile = '
    10.x.x.xxx\sapmnt\trans\abcd1.txt'.           ".SRM System
    APPEND PR_lt_files.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input                    = lf_docnumber
      IMPORTING
        output                   = lf_docnumber.
    break-point.
        call function 'BAPI_DOCUMENT_CHECKIN2' DESTINATION 'SNDCLNT100' EXPORTING: documentnumber            = lf_docnumber
                                                                                    documenttype             = lf_doctype
                                                                                    documentpart             = lf_docpart
                                                                                    documentversion          = lf_docversion
                                                                                   hostname                 = 'SNDCLNT100'
                                                                                    statusintern             = ''
                                                                                    statusextern             = lf_status
                                                                                    PF_HTTP_DEST             = 'SAPHTTP'
                                                                                   PF_FTP_DEST              = 'SAPFTP'
                                                                                    statuslog                = ''
                                                                         IMPORTING: return                = pr_ls_return
                                                                         TABLES:    documentfiles         = pr_lt_files.
    break-point.
    *if sy-subrc eq 0.
    **commit work.
    *else.
    *message 'error' type 'E'.
    *endif.

  • Exception in query execution through JDBC code

    Hi all,
    I am getting the following error when I am trying to use JDBC in a web dynpro application. I need to execute select query on table XI_AF_MSG.
    java.sql.SQLException: Invalid object name 'BC_DDDBTABLERT'
    When I tried to debug the code, I came to know that connection is getting done successfully but error comes when I try to execute the query.
    Can anyone help me to solve the problem?
    Regards,
    Bhargav

    Sure I can show my code.
    try {
         //        Get the database connection
              InitialContext dbInitContext = new InitialContext();
              String dbName = "jdbc/SAP***DB";  //datasourcename
              DataSource dataSource = (DataSource) dbInitContext.lookup(dbName);
              Connection conn = dataSource.getConnection();
              str=str" Connection is done successfully. "dataSource.toString();
              messageMgr.reportSuccess(str);
              String SelectStmt = "Select * from XI_AF_MSG";
         //        Prepare the SQL statements
         str=str+" before preparing statement";
                   messageMgr.reportSuccess(str);
              Statement stmt = conn.createStatement();
              str=str+" statement is prepared.";
                        messageMgr.reportSuccess(str);
         //        Execute the Query
              ResultSet resultSet = stmt.executeQuery(SelectStmt);
              str=str+"query is executed.";
                        messageMgr.reportSuccess(str);
    catch(Exception e)
    As you can see in the code, I have created messages at several points. When I execute the application, i can see message "statement is prepared" before exception is thrown. It means, connection is getting established and statement is also getting created but query is not getting executed.
    Regards,
    Bhargav

  • [SOLVED] Unable to login to root unless it's through another account.

    I'm fairly inexperienced with Linux and am having a frustrating problem.
    I've forgotten my root password (oh boy) and am experiencing some weird problems attempting to reset it.
    I have other accounts, which I can log in to, and they have sudo privileges. So I am not very restricted as to what I can actually do.
    So I tried to use "passwd root" to change my root account password.
    This allowed me to log in to root (at least I believe it is root) using "su" and the newly created password.
    However, when I reboot and try to log in to root from the normal log in screen, it claims I'm using the wrong password.
    I also tried logging in to root using "su" and then using "passwd" to change the root password. I got the same results as before.
    I even tried removing the root password from the "etc/shadow" file, though I'm really not familiar with how that file works in archlinux.
    I've searched around online, and stumbled across some similar topics in this forum, but all of them have worked around the problem by using a boot disc in some way.
    I would really like to know what exactly is going on with my system here and why this password confusion is happening. If possible, I'd really really like to reset my root password remotely.
    If this has been addressed before and I missed it, please link me to the old topic.
    Thanks for reading guys. Any help is appreciated.
    Last edited by bluekirby (2011-04-05 04:55:20)

    bluekirby wrote:If there were any location where I could deny people from logging in as root, where would that file be?
    I'm really hoping it's just something I edited months ago and forgot about.
    Take a look to this topic:
    https://bbs.archlinux.org/viewtopic.php?id=67753
    And try this to reset the password:
    http://www.howtoforge.com/how-to-reset- … knoppix-p2
    After that, only the users who knows(and are listed on /etc/sudoers) the root password will be able to do root jobs, like installing/removing packages or modify the filesystem.
    Note that if you use sudo you can use visudo to edit /etc/sudoers command to prevent or allow users to do root jobs, example:
    root ALL=(ALL) ALL
    # %wheel ALL=(ALL) ALL
    If you uncomment %wheel line all users in wheel group can do root jobs if they know the root password.
    But you can leave commented %wheel line and add users manually, example(for "edward" and "christine" users):
    root ALL=(ALL) ALL
    # %wheel ALL=(ALL) ALL
    edward ALL=(ALL) ALL
    christine ALL=(ALL) ALL
    By doing this,these two users(through sudo) and root will be allowed to do root jobs and nobody else
    NOTE: Editing /etc/sudoers through visudo is hardly recommended, please dont edit the file manually with nano,vi,vim,etc. USE "visudo"
    P.S. Reseting the password through a live distro is the most recommended way to reset the root password.
    Last edited by AurosGamma (2011-04-05 04:31:34)

  • [SOLVED] How to get sudo and kdesu to honor my user password?

    Hi folks,
    Well, I must be missing something. I think I've tried everything listed here https://bbs.archlinux.org/viewtopic.php?id=143487 and in the referenced links, but I still have the problem of my system rejecting my password for some uses of sudo and kdesu but not others.  I've included my /etc/sudoers file below.
    My problem may be due to screwing around with users:  I started out using bruce (1000), then switched to bbraley (1001), then deleted bruce in kusers, then changed bbraley to 1000. When that created more problems without solving the original one, I switched back to 1001.  I've played with adding and removing my user from groups, including creating a sudo group, making sure I am a member of wheel group, etc. 
    What seemed to be everyone's magic fix,
    pacman -S pambase
    didn't work when I tried it successfully with my bbraley password, then later, when that began failing, using the root password. pambase reinstalls, but there is no resulting change in the behavior of sudo.
    Side question: Most of my experience is with kubuntu in which I never created a root user and never had any trouble having my user password work with sudo or kdesu. Is there a reason Archwiki beginners guide suggests assigning a separate root account and password?
    Can anyone help?
    Here's the output of
    groups
    root adm disk wheel log locate network video audio optical storage scanner power users nm-openconnect systemd-network bbraley sudo sddm
    Here's the output of
    cat /etc/group |grep `id -un`
    root:x:0:bbraley
    adm:x:4:root,daemon,bbraley
    disk:x:6:root,bbraley
    wheel:x:10:root,bbraley
    log:x:19:root,bbraley
    locate:x:21:bbraley
    network:x:90:bbraley
    video:x:91:bbraley
    audio:x:92:bbraley
    optical:x:93:bbraley
    storage:x:95:bbraley
    scanner:x:96:bbraley
    power:x:98:bbraley
    users:x:100:bbraley
    systemd-network:x:193:bbraley
    nm-openconnect:x:104:bbraley
    sddm:x:619:bbraley
    bbraley:x:500:
    sudo:*:501:bbraley
    Here's what
    ls -l /etc/sudoer
    yields:
    -r--r----- 1 root root 2948 Mar 22 07:25 /etc/sudoers
    And here's my sudoers file:
    ## Defaults specification
    ## You may wish to keep some of the following environment variables
    ## when running commands via sudo.
    ## Locale settings
    # Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
    ## Run X applications through sudo; HOME is used to find the
    ## .Xauthority file. Note that other programs use HOME to find
    ## configuration files and this may lead to privilege escalation!
    # Defaults env_keep += "HOME"
    ## X11 resource path settings
    # Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
    ## Desktop path settings
    # Defaults env_keep += "QTDIR KDEDIR"
    ## Allow sudo-run commands to inherit the callers' ConsoleKit session
    # Defaults env_keep += "XDG_SESSION_COOKIE"
    ## Uncomment to enable special input methods. Care should be taken as
    ## this may allow users to subvert the command being run via sudo.
    # Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
    ## Uncomment to enable logging of a command's output, except for
    ## sudoreplay and reboot. Use sudoreplay to play back logged sessions.
    # Defaults log_output
    # Defaults!/usr/bin/sudoreplay !log_output
    # Defaults!/usr/local/bin/sudoreplay !log_output
    # Defaults!REBOOT !log_output
    ## Runas alias specification
    ## User privilege specification
    root ALL=(ALL) ALL
    ## Uncomment to allow members of group wheel to execute any command
    ##%wheel ALL=(ALL) ALL
    ## Same thing without a password
    %wheel ALL=(ALL) NOPASSWD: ALL
    ## Uncomment to allow members of group sudo to execute any command
    %sudo ALL=(ALL) ALL
    bbraley ALL=(ALL) ALL
    ## Uncomment to allow any user to run sudo if they know the password
    ## of the user they are running the command as (root by default).
    Defaults targetpw # Ask for the password of the target user
    ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
    ## Read drop-in files from /etc/sudoers.d
    ## (the '#' here does not indicate a comment)
    #includedir /etc/sudoers.d
    Last edited by Bruce1956 (2015-03-28 05:16:03)

    Trilby wrote:I've never used the targetpw setting, but I wouldn't be surprised if that was the problem.  With that setting, if you want to run something as root (the default use of sudo) then you'd need the root password, not the user password.  Comment out that setting, and the next line.
    I had never used it, either, but I misread some reference and thought it might help. Since you say it causes the behaviour I'm trying to eliminate, I will get rid of it, as suggested. However, the behavior preceded my addition of this line in the file, so I don't think this will correct the problem. Edit: Removing it kept the root password from being universally required (I can now edit /etc/sudoers using my user password) and returned it to requiring it sometimes (I still need the root password to use kdesu).
    As for some other distro not having a root account, that is simply impossible.  There was a root account.  If you didn't have the password for it, then that installation was severely crippled.
    Sorry, you're right. I should have said that kubuntu does not expect users to assign a password to the root account and instead expects primary users to access that account's privileges via su, sudo, or kdesu only.
    https://help.ubuntu.com/community/RootSudo
    By default, the root account password is locked in Ubuntu. This means that you cannot login as root directly or use the su command to become the root user. However, since the root account physically exists it is still possible to run programs with root-level privileges. This is where sudo comes in - it allows authorized users (normally "Administrative" users; for further information please refer to AddUsersHowto) to run certain programs as root without having to know the root password.
    Thanks for responding to my request for help. Any other ideas?
    Edit:  Here's what I keep getting that only accepts the root password, not my user password
    http://s15.postimg.org/4z0o86oln/Runasroot_KDEsu.png
    -- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --
    Last edited by Bruce1956 (2015-03-23 04:41:06)

  • Devtools update causes problems with sudo when used in a script?

    I'm a little confused by this one, but I'm not convinced that it's a bug.. yet.
    Long story short, I compile packages using the ABS via a script/wrapper which uses devtools. The script is available here: https://github.com/WorMzy/compilepackage
    Now, this script is far from perfect, but has worked perfectly well (in various states of completeness) for the past year or so. However, with the recent update of devtools (20120720-1 => 20121013-1), my script fails to execute correctly. After entering the password when prompted (by sudo, at this line: https://github.com/WorMzy/compilepackag … tions#L107), the script terminates unexpectedly.
    Downgrading devtools "fixes" this problem, but I'm not sure if this is a bug in devtools, sudo, zsh, my script, or something else.
    Here is the full output from the compilation of "arch-install-scripts":
    build@sakura[pts/10]:~/builds/devtools$ . ~/.scripts/compilepackage arch-install-scripts
    ==> Downloading sources
    ==> arch-install-scripts directory already exist. Replace ? [Y/n]
    ==> Download arch-install-scripts sources
    receiving file list ... done
    sent 28 bytes received 70 bytes 39.20 bytes/sec
    total size is 656 speedup is 6.69
    :: Synchronizing package databases...
    core is up to date
    extra is up to date
    community is up to date
    :: Starting full system upgrade...
    there is nothing to do
    ==> Building in chroot for [extra] (x86_64)...
    ==> Creating clean working copy...done
    ==> Making package: arch-install-scripts 8-1 (Fri Oct 19 23:45:52 BST 2012)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving Sources...
    -> Found arch-install-scripts-8.tar.gz
    -> Found arch-install-scripts-8.tar.gz.sig
    ==> Validating source files with md5sums...
    arch-install-scripts-8.tar.gz ... Passed
    arch-install-scripts-8.tar.gz.sig ... Passed
    ==> Verifying source file signatures with gpg...
    arch-install-scripts-8.tar.gz ... FAILED (unknown public key 1EB2638FF56C0C53)
    ==> WARNING: Warnings have occurred while verifying the signatures.
    Please make sure you really trust them.
    ==> Extracting Sources...
    -> Extracting arch-install-scripts-8.tar.gz with bsdtar
    ==> Starting build()...
    make: Entering directory `/build/src/arch-install-scripts-8'
    GEN arch-chroot
    GEN genfstab
    GEN pacstrap
    make: Leaving directory `/build/src/arch-install-scripts-8'
    ==> Entering fakeroot environment...
    ==> Starting package()...
    make: Entering directory `/build/src/arch-install-scripts-8'
    install -dm755 /build/pkg/usr/bin
    install -m755 arch-chroot genfstab pacstrap /build/pkg/usr/bin
    install -Dm644 zsh-completion /build/pkg/usr/share/zsh/site-functions/_archinstallscripts
    make: Leaving directory `/build/src/arch-install-scripts-8'
    ==> Tidying install...
    -> Purging unwanted files...
    -> Compressing man and info pages...
    -> Stripping unneeded symbols from binaries and libraries...
    ==> Creating package...
    -> Generating .PKGINFO file...
    -> Compressing package...
    ==> Leaving fakeroot environment.
    ==> Finished making: arch-install-scripts 8-1 (Fri Oct 19 23:45:54 BST 2012)
    ==> Installing package arch-install-scripts with pacman -U...
    loading packages...
    resolving dependencies...
    looking for inter-conflicts...
    Targets (1): arch-install-scripts-8-1
    Total Installed Size: 0.03 MiB
    Proceed with installation? [Y/n]
    (1/1) checking package integrity [######################################################################] 100%
    (1/1) loading package files [######################################################################] 100%
    (1/1) checking for file conflicts [######################################################################] 100%
    (1/1) installing arch-install-scripts [######################################################################] 100%
    resolving dependencies...
    looking for inter-conflicts...
    Targets (5): elfutils-0.155-1 pyalpm-0.5.3-2 python-3.3.0-1 python-pyelftools-0.20-2 namcap-3.2.4-2
    Total Installed Size: 99.58 MiB
    Proceed with installation? [Y/n]
    (5/5) checking package integrity [######################################################################] 100%
    (5/5) loading package files [######################################################################] 100%
    (5/5) checking for file conflicts [######################################################################] 100%
    (1/5) installing python [######################################################################] 100%
    Optional dependencies for python
    tk: for tkinter
    sqlite
    (2/5) installing pyalpm [######################################################################] 100%
    (3/5) installing elfutils [######################################################################] 100%
    (4/5) installing python-pyelftools [######################################################################] 100%
    (5/5) installing namcap [######################################################################] 100%
    Checking PKGBUILD
    Checking arch-install-scripts-8-1-any.pkg.tar.xz
    arch-install-scripts W: Dependency bash included but already satisfied
    arch-install-scripts W: Dependency included and not needed ('coreutils')
    arch-install-scripts W: Dependency included and not needed ('pacman')
    arch-install-scripts W: Dependency included and not needed ('util-linux')
    ==> Compilation complete, installing...
    Password:
    loading packages...
    warning: arch-install-scripts-8-1 is up to date -- reinstalling
    resolving dependencies...
    looking for inter-conflicts...
    Targets (1): arch-install-scripts-8-1
    Total Installed Size: 0.03 MiB
    Net Upgrade Size: 0.00 MiB
    Proceed with installation? [Y/n] % build@sakura[pts/10]:~/builds/arch-install-scripts$
    That "%" is inverted, just like what you get when you run
    echo -n "text"
    in zsh. Incidentally, here is my .zshrc: https://github.com/WorMzy/Config-files/ … ter/.zshrc, however, the problem persists with a new user with an unconfigured zsh.
    Here is my sudoers too:
    ## sudoers file.
    ## This file MUST be edited with the 'visudo' command as root.
    ## Failure to use 'visudo' may result in syntax or file permission errors
    ## that prevent sudo from running.
    ## See the sudoers man page for the details on how to write a sudoers file.
    ## Host alias specification
    ## Groups of machines. These may include host names (optionally with wildcards),
    ## IP addresses, network numbers or netgroups.
    # Host_Alias WEBSERVERS = www1, www2, www3
    ## User alias specification
    ## Groups of users. These may consist of user names, uids, Unix groups,
    ## or netgroups.
    # User_Alias ADMINS = millert, dowdy, mikef
    ## Cmnd alias specification
    ## Groups of commands. Often used to group related commands together.
    # Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
    # /usr/bin/pkill, /usr/bin/top
    ## Defaults specification
    ## You may wish to keep some of the following environment variables
    ## when running commands via sudo.
    ## Locale settings
    # Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
    ## Run X applications through sudo; HOME is used to find the
    ## .Xauthority file. Note that other programs use HOME to find
    ## configuration files and this may lead to privilege escalation!
    # Defaults env_keep += "HOME"
    ## X11 resource path settings
    # Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
    ## Desktop path settings
    # Defaults env_keep += "QTDIR KDEDIR"
    ## Allow sudo-run commands to inherit the callers' ConsoleKit session
    # Defaults env_keep += "XDG_SESSION_COOKIE"
    ## Uncomment to enable special input methods. Care should be taken as
    ## this may allow users to subvert the command being run via sudo.
    # Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
    ## Uncomment to enable logging of a command's output, except for
    ## sudoreplay and reboot. Use sudoreplay to play back logged sessions.
    # Defaults log_output
    # Defaults!/usr/bin/sudoreplay !log_output
    # Defaults!/usr/local/bin/sudoreplay !log_output
    # Defaults!/sbin/reboot !log_output
    Defaults timestamp_timeout=0,passwd_timeout=0,passprompt="Password:",badpass_message="Incorrect password",editor=/usr/bin/vim:/usr/bin/vi,targetpw
    ## Runas alias specification
    ## User privilege specification
    root ALL=(ALL) ALL
    build sakura=/usr/bin/pacman-color -U *,/usr/bin/pacman-color -Sy,/usr/bin/pacman-color -Syy
    build sakura=/usr/bin/pacman -U *
    build sakura=NOPASSWD: /usr/bin/extra-x86_64-build,/usr/bin/multilib-build,/usr/sbin/makechrootpkg
    ## Uncomment to allow members of group wheel to execute any command
    %wheel sakura=(ALL) ALL
    ## Same thing without a password
    #%wheel ALL=(ALL) NOPASSWD: /sbin/sdshutdown, /sbin/sdreboot
    ## Uncomment to allow members of group sudo to execute any command
    # %sudo ALL=(ALL) ALL
    ## Uncomment to allow any user to run sudo if they know the password
    ## of the user they are running the command as (root by default).
    # Defaults targetpw # Ask for the password of the target user
    # ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
    ## Read drop-in files from /etc/sudoers.d
    ## (the '#' here does not indicate a comment)
    #includedir /etc/sudoers.d
    Further information will be provided on request. Suggestions for improving the script will also be appreciated.
    Thanks.

    Update: It appears that the cause is systemd's nspawn. Disabling it in mkarchroot (have_nspawn=0) resolves the problem.
    However, I don't understand why it's causing this behaviour. User input works fine for the sudo password prompt, but then fails for the pacman user prompt? Do they use different input buffers or something? Does that question even make sense?
    Anyway, I'll open a bug report on flyspray and upstream about this when I get the chance.

  • [SOLVED] sudo doesnt work

    Hi guys,
    I'm having the strangest issues since my last installation of archlinux. First I could not login into any tty (after entering the username, nothing happened). I could solve that by installing the util-linux package. Now I cannot use sudo.
    The user is in the group wheel (which is uncommented in sudoers). I have changed nothing in the sudoers file, here's the content:
    ## sudoers file.
    ## This file MUST be edited with the 'visudo' command as root.
    ## Failure to use 'visudo' may result in syntax or file permission errors
    ## that prevent sudo from running.
    ## See the sudoers man page for the details on how to write a sudoers file.
    ## Host alias specification
    ## Groups of machines. These may include host names (optionally with wildcards),
    ## IP addresses, network numbers or netgroups.
    # Host_Alias WEBSERVERS = www1, www2, www3
    ## User alias specification
    ## Groups of users. These may consist of user names, uids, Unix groups,
    ## or netgroups.
    # User_Alias ADMINS = millert, dowdy, mikef
    ## Cmnd alias specification
    ## Groups of commands. Often used to group related commands together.
    # Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
    # /usr/bin/pkill, /usr/bin/top
    ## Defaults specification
    ## You may wish to keep some of the following environment variables
    ## when running commands via sudo.
    ## Locale settings
    # Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
    ## Run X applications through sudo; HOME is used to find the
    ## .Xauthority file. Note that other programs use HOME to find
    ## configuration files and this may lead to privilege escalation!
    # Defaults env_keep += "HOME"
    ## X11 resource path settings
    # Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
    ## Desktop path settings
    # Defaults env_keep += "QTDIR KDEDIR"
    ## Allow sudo-run commands to inherit the callers' ConsoleKit session
    # Defaults env_keep += "XDG_SESSION_COOKIE"
    ## Uncomment to enable special input methods. Care should be taken as
    ## this may allow users to subvert the command being run via sudo.
    # Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
    ## Uncomment to enable logging of a command's output, except for
    ## sudoreplay and reboot. Use sudoreplay to play back logged sessions.
    # Defaults log_output
    # Defaults!/usr/bin/sudoreplay !log_output
    # Defaults!/usr/local/bin/sudoreplay !log_output
    # Defaults!/sbin/reboot !log_output
    ## Runas alias specification
    ## User privilege specification
    root ALL=(ALL) ALL
    ## Uncomment to allow members of group wheel to execute any command
    %wheel ALL=(ALL) ALL
    ## Same thing without a password
    # %wheel ALL=(ALL) NOPASSWD: ALL
    ## Uncomment to allow members of group sudo to execute any command
    # %sudo ALL=(ALL) ALL
    ## Uncomment to allow any user to run sudo if they know the password
    ## of the user they are running the command as (root by default).
    # Defaults targetpw # Ask for the password of the target user
    # ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
    ## Read drop-in files from /etc/sudoers.d
    ## (the '#' here does not indicate a comment)
    #includedir /etc/sudoers.d
    In the auth.log there are following lines which seem to be important:
    Jul 12 13:46:18 localhost sudo: PAM _pam_init_handlers: no default config /etc/pam.d/other
    Jul 12 13:46:21 localhost sudo: PAM no modules loaded for `sudo' service
    Jul 12 13:46:22 localhost sudo: pam_unix(sudo:auth): conversation failed
    Jul 12 13:46:22 localhost sudo: pam_unix(sudo:auth): auth could not identify password for [archUser]
    Jul 12 13:46:22 localhost sudo: archUser: 1 incorrect password attempt ; TTY=pts/2 ; PWD=/home/archUser; USER=root ; COMMAND=/usr/bin/pacman -Syyuu
    So I looked up the content of /etc/pam.d/sudo:
    root@arch /etc/pam.d # cat sudo
    #%PAM-1.0
    auth required pam_unix.so
    auth required pam_nologin.so
    The files pam_unix.so and pam_nologin.so are both saved in /usr/lib/security.
    I noticed that if I enter the password wrong, I need to wait one or two seconds before I can try it again (this behaviour seems to be normal). But when I enter the password correct, there is no waiting time and I can enter the pass again.
    I have no idea what to do and hope that anyone can help me to use sudo again.
    4 years ago, after installing archlinux the first time, I had not a single error. Everything worked just fine but now I get two errors at once after the installation!
    --blackdeagle
    Last edited by blackdeagle (2012-07-12 14:05:53)

    blackdeagle wrote:
    65kid wrote:
    blackdeagle wrote:Please stay away from my thread! I don't need people like you telling me to search the forums and which parameters I can use and which not!
    seriously? it is stated in multiple news, the wiki and in about every third forum thread that you shouldn't use force unless you know exactly what you are doing or you are explicitly told to use it. I don't blame you that you didn't notice this, a lot of people don't (unfortunately). But when people correct you and want to help you are like "whatever, I do what I want! go away!" ???
    And what do you think the search function is for?
    Please stay away from Arch... geez...
    Come on, do you seriously think you are the only one using the search function? Show me some threads with the solution for my issue!
    https://bbs.archlinux.org/viewtopic.php?id=143335
    https://bbs.archlinux.org/viewtopic.php?id=144079
    https://bbs.archlinux.org/viewtopic.php?id=143487
    https://bbs.archlinux.org/viewtopic.php?id=142729
    https://bbs.archlinux.org/viewtopic.php?id=142720
    https://bbs.archlinux.org/viewtopic.php?id=142941
    https://bbs.archlinux.org/viewtopic.php?id=144599

  • Execution of Coded UI scripts with least possible test execution time in Windows7 Operating system using Visual Studio Test Agent 2010 without VS2010 installed

    Hi All,
    We are trying to execute coded UI scripts without Visual Studio installed. We are using “Visual Studio Test Agent 2010” for executing coded UI scripts without VS2010 in Windows 7, it is working fine. Also we verified executing the same script with VS2010
    Premium, it works fine as well.
    Here the challenge we are facing is with the Test execution time.
    When we run the coded UI script with IE11-Windows 7 OS-Visual Studio 2010 Premium it takes
    3min 36sec to complete the execution whereas with IE11-Windows 7 OS-Visual Studio Test Agent 2010  it takes
    6min 40sec for the same script to execute (which is almost double the time it takes while executing using VS2010).
    My question is what may be the reason for this difference? and how we can reduce the test execution time when running from Test Agent 2010?
    Kindly let us know what is the best practice to execute the coded UI scripts with least test execution time in Windows 7 Operating system using Visual Studio Test Agent 2010 without VS2010
    installed.
    Looking forward for your positive response.
    Thanks in advance..!!

    Tina-Shi, Thanks for the information.
    As you mentioned, we tried to execute the coded UI test using Mstest.exe in command on VS2010 Premium and checked on the execution
    time, there was a slight difference.
    Please find below execution time.
    Using Mstest.exe in command on VS2010 Premium/Win7 – 3.47 minutes
    Using VS2010 Premium/Win7 – 3.53 minutes
    Using Test Agent/Win7 – 7.3 minutes
    Also, I closed all the other processes in Task manager before starting up the execution.
    Still , I am facing the same Issue. Could you please suggest any other way to reduce the scripting time of coded UI script execution
    through Test agent 2010.
    Looking forward for your earliest response.

  • Debugging a report on execution

    How do i debug a report a  during execution?
    1) I know we can do  this by putting a breakpoint in a Program before execution through se38.
    2) Or it can be done by putting a /h before execution.
    But what  if i forget to  put break point and also forget  /h. Now during the execution,the program takes a long time in processing , so i want to know at which statement or loop is the processing going on.Is there any transaction or way how i can find this out and then put a break point there .

    Hi Dilip
    As per my understanding,implementing the Watch Points mechanism is the best solution for your case.
    Using the watch points, we can came to know where exactly the problem is occuring if the execution is taking long hours.
    For example I have 1- 10000 employee numbers and for each employee,I am handling some mechanism.
    In this case suppose let assume EMP# 1024 is giving some problem.
    By putting the Watching point as EMPNo = 00001024, directly we can go to that EMP# part and can observe the problematic statements.
    Hope you got some idea if not please let me know so that I can provide more stuff with live examples.
    Regards,
    Sreeram Kumar.Madisetty

  • Getting Report File Path location at execution in TestStand 2012 and later

    I need to include PNG pictures into my TestStand Report (HTML, XML, ATML).
    When report generation was made through plugins (before TestStand 2012), it was easy to get report file location during execution through variable RunState.Root.Locals.ReportFilePath in order to save PNG files near the report file (in same directory).
    I didn't find yet an easy an simple way to do the same in TestStand 2012 with Result Processing Plugins.
    Any idea ?
    Remarks :
    Since this functionnality has to be included within MESULOG TS+ last version which is a TestStand Add-on, I cannot modify Report Options, Process Model or include a callback (like GetReportFilePath.
    In need ReportFilePath within a Custom Step Type which cannot wait for PostUUT or ReportGeneration to save its PNG files.
    Jean-Louis SCHRICKE
    ├ CTA - Certified TestStand Architect (2008 & 2010 & 2014)
    ├ CTD - Certified TestStand Developer (2004 & 2007)
    └ CLD - Certified LabVIEW Developer (2003 & 2005)

    jiggawax,
    Thank you for you quick answer.
    RunState.Root.Locals.ModelPluginConfiguration.Plug​ins[<plugin index>].PluginSpecific.Options.Directory is valid only if  
    RunState.Root.Locals.ModelPluginConfiguration.Plug​ins[<plugin index>].PluginSpecific.Options.DirectoryType is set to "SpecificDirectory".
    It seems that I cannot get the complete ReportFilePath before "UUT Done" plugin entry which is after MainSequence execution.
    Jean-Louis SCHRICKE
    ├ CTA - Certified TestStand Architect (2008 & 2010 & 2014)
    ├ CTD - Certified TestStand Developer (2004 & 2007)
    └ CLD - Certified LabVIEW Developer (2003 & 2005)

  • Help 'Exiting' after Automator Shell Script Execution

    Hello,
    I've recently installed and got running GCalDaemon (http://gcaldaemon.sourceforge.net/) which allows me to Synch Rainlendar <-> Google Calendar through iCal (You can also synch iCal <-> Google Calendar). I needed to start up a shell script/applescript after each startup/login in order for GCalDaemon to start the synching process each time and continue to do so at the timed intervals. I would do so by the following terminal code:
    cd /usr/local/sbin/GCALDaemon/bin
    ./standalone-start.sh
    I then tried automating this process and came across shell script execution through Automator. I did so and created a .app with the above mentioned code. This works and it starts up the necessary .sh file I need and the snyching works under StartUp. My concern is however, how do I exit terminal once the code has executed the necessary file? All I have in my .app is the above mentioned code for now. I just need it to exit terminal because on startup or after starting the program, I get this issue (See Attachment)
    This continues to run, so my guess is that I need to add code to exit terminal and allow the .app to close itself properly after doing so.
    Please guide me in the right direction.
    Picture Belows shows what happens when I run the Automator App. It continues to run until I quit out of the app manually (TheGCal programs works fine though). I feel I need to have app quit Terminal or fully end the process and quit out on it's own.
    Thanks
    <table style="width:auto;"><tr><td></td></tr><tr><td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From GCalDaemon</td></tr></table>

    i redirected the command output to /dev/null which is unix equivalent of a black hole and I also redirected error output to standard output in case the script produces any errors.
    also & at the end tells it to continue without waiting for the script to finish.
    Message was edited by: V.K.

Maybe you are looking for