incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleksandr Diachenko (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-2494) Various issues when running ambari-server as non-root
Date Wed, 26 Jun 2013 14:06:21 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-2494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13693974#comment-13693974
] 

Oleksandr Diachenko commented on AMBARI-2494:
---------------------------------------------

+1
                
> Various issues when running ambari-server as non-root
> -----------------------------------------------------
>
>                 Key: AMBARI-2494
>                 URL: https://issues.apache.org/jira/browse/AMBARI-2494
>             Project: Ambari
>          Issue Type: Bug
>          Components: controller
>    Affects Versions: 1.2.5
>            Reporter: Dmitry Lysnichenko
>            Assignee: Dmitry Lysnichenko
>             Fix For: 1.2.5
>
>         Attachments: AMBARI-2494.patch
>
>
> This is on SLES 11. 
> *Issue 1*
> Any {{ambari-server}} command run as non-root generates the following: */usr/sbin/ambari-server:
line 32: /var/lib/ambari-server/ambari-env.sh: Permission denied* which should not be displayed.
> {noformat}
> test2@localhost:~> /usr/sbin/ambari-server
> /usr/sbin/ambari-server: line 32: /var/lib/ambari-server/ambari-env.sh: Permission denied
> Using python  /usr/bin/python2.6
> Usage: /usr/sbin/ambari-server {start|stop|restart|setup|upgrade|status|upgradestack|setup-ldap|setup-https|resetmasterkey}
[options]
> {noformat}
> *Issue 2*
> {{/usr/sbin/ambari-server setup-https | resetmasterkey | setup-ldap}} does not warn like
other options that root privileges are required. Instead it goes all the way to save {{/etc/ambari-server/conf/ambari.properties}}
and fails.
> {noformat}
> est2@localhost:~> /usr/sbin/ambari-server setup-https
> /usr/sbin/ambari-server: line 32: /var/lib/ambari-server/ambari-env.sh: Permission denied
> Using python  /usr/bin/python2.6
> Ambari-server setup-https
> Do you want to configure HTTPS (y/n) y?
> SSL port [8443] ?
> Do you want to import trusted certificate and private key (y/n) y? n
> Traceback (most recent call last):
>   File "/usr/sbin/ambari-server.py", line 3047, in <module>
>     main()
>   File "/usr/sbin/ambari-server.py", line 2897, in main
>     setup_https(options)
>   File "/usr/sbin/ambari-server.py", line 2657, in setup_https
>     f = open(conf_file, 'w')
> IOError: [Errno 13] Permission denied: '/etc/ambari-server/conf/ambari.properties'
> {noformat}
> *Issue 3*
> Grammar correction to sentence {{Ambari-server process is configured run under user myself.
Change this setting [y/n] (n)?}}.
> Need a *to* in there.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message