You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "Suresh Subbiah (JIRA)" <ji...@apache.org> on 2015/08/31 07:36:47 UTC
[jira] [Closed] (TRAFODION-965) LP Bug: 1415657 - trafodion_install
- test for sudo access too late
[ https://issues.apache.org/jira/browse/TRAFODION-965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Suresh Subbiah closed TRAFODION-965.
------------------------------------
Resolution: Fixed
Close issues in JIRA to reflect status in LaunchPad
> LP Bug: 1415657 - trafodion_install - test for sudo access too late
> -------------------------------------------------------------------
>
> Key: TRAFODION-965
> URL: https://issues.apache.org/jira/browse/TRAFODION-965
> Project: Apache Trafodion
> Issue Type: Bug
> Components: installer
> Reporter: Chris Tjepkema
> Assignee: Marvin Anderson
>
> There are around 27 calls to sudo in trafodion_install before a test for sudo access is even possible in a call to traf_add_user.
> The test for sudo access should be one of the first tests in trafodion_install.
> traf_add_user has a test for sudo access:
> sudo echo "***INFO: testing sudo access"
> if [ $? -ne 0 ]; then
> echo "***ERROR: This script must be ran from userid with sudo access."
> exit -1
> fi
> traf_add_user is called by traf_setup which is called by trafodion_install @ line 387
> and if the trafodion username has already been installed traf_add_user and the test for sudo access won't get called.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)