Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 451917

Summary: can't update the configuration
Product: [Community] Spacewalk Reporter: Deependra Singh Shekhawat <jeevanullas>
Component: InstallationAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: low    
Version: 0.1CC: dgoodwin, mzazrivec
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-17 06:59:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 456550    

Description Deependra Singh Shekhawat 2008-06-18 04:33:40 UTC
Description of problem:
When I logged in into the WebUI for the first time after creation of the account
I was asked to continue with configuring the other configuration options inside 
https://server/rhn/admin/config/GeneralConfig.do
And when I pressed update button it said
An error occurred and your satellite configuration changes could not be stored.
When I looked into /var/log/secure I found this

server sudo:   tomcat : sorry, you must have a tty to run sudo ;
TTY=unknown ; PWD=/usr/share/tomcat5 ; USER=root ; 
COMMAND=/usr/bin/rhn-config-satellite.pl
--target=/etc/rhn/rhn.conf
--option=server.satellite.http_proxy_username= 
--option=server.satellite.http_proxy= --option=mount_point=/var/satellite 
--option=kickstart_mount_point=/var/satellite
--option=server.satellite.http_proxy_password= 2>&1 > /dev/null

Looks like it's trying to run the command via sudo but TTY is not set.

Thanks
Deependra Singh Shekhawat

Comment 1 Clifford Perry 2008-06-23 22:47:12 UTC
The Spacewalk server should have both config entries within it, along with I
assume apache running as apache user, and tomcat5 running as tomcat user. 

http://git.fedorahosted.org/git/?p=spacewalk.git;a=tree;f=satellite/install/Spacewalk-Setup/share;h=3653c26b6fb5e8903cb0acc727cbed9056df3c65;hb=master

	sudoers.base
	sudoers.rhn

If this content is missing, then I would expect it to fail. Since the installer
was recently modified, if could be a bug not putting the content into
/etc/sudoers correctly. (or change in sudo in F9 compared to RHEL 4). 

Cliff. 


Comment 2 Milan Zázrivec 2008-08-04 13:18:26 UTC
Following two lines need to be present in /etc/sudoers for the things to work
properly (i.e. apache and tomcat users being able to run stuff via sudo even
without a real tty):

Defaults:tomcat !requiretty
Defaults:apache !requiretty

Comment 3 Milan Zázrivec 2008-08-04 15:42:41 UTC
Fix commited to git: 54a22bab4bfe3273b8c84417d79b331c14ac4589

Comment 4 Devan Goodwin 2008-09-03 15:07:36 UTC
Verified against spacewalk 0.2.

Sep  3 11:03:29 dhcp77-172 sudo:   tomcat : TTY=unknown ; PWD=/usr/share/tomcat5 ; USER=root ; COMMAND=/usr/bin

/rhn-config-satellite.pl --target=/etc/rhn/rhn.conf --option=server.satellite.http_proxy_username=admin --optio

n=server.satellite.http_proxy= --option=server.satellite.http_proxy_password= 2>&1 > /dev/null

Comment 5 Miroslav Suchý 2009-09-17 06:59:16 UTC
Spacewalk is released for long time.