Re: [Spacewalk-list] change root password for all machines in a group
2010/2/4 Michiel van Es michi...@info.nl: Hi, Is it possible to change the root password on all machines in a group? We want to change the root password for al lot of systems, we thought perhaps is spacewalk of some use (since you can install packages, reboot the machines) Is such an option possible through spacewalk? Kind regards, Michiel if it generates a new file / etc / passwd and charges through the area concerning configuration files (perhaps your user role does not allow you to do this) and only select group of systems the option to work with group and send him to send the configuration file to all computers SSM. Another option is through a small script using sed-i editing the file / etc / passwd directly on each machine together (SSM). ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
Re: [Spacewalk-list] change root password for all machines in a group
2010/2/4 Jeffrey Watts jeffrey.w.wa...@gmail.com: I think he means /etc/shadow. Sorry, my mistake, really is a /etc/shadow can send to execute in all machines ( how root ): echo fedora | passwd -d root /dev/null and shall have the root password fedora There are several approaches, one would be to script the 'passwd' command, using expect or something like it. The downside is that you'll need to have the password in plain text in the script. You could then use Spacewalk to run the script remotely. This is probably what I'd do, but make sure you test it thoroughly first, as if you screw it up you might make your systems inaccessible. Another option would be to copy the password hash from a system where you've set that password, and then write a script to edit /etc/shadow on a target system and replace the old string with the new one. Finally, if your systems are all homogeneous, you can simply push out a new shadow file with the updated hash. Most people won't be in this situation. Jeffrey. On Wed, Feb 3, 2010 at 10:51 AM, Edwind Richzendy Contreras Soto richze...@gmail.com wrote: 2010/2/4 Michiel van Es michi...@info.nl: Hi, Is it possible to change the root password on all machines in a group? We want to change the root password for al lot of systems, we thought perhaps is spacewalk of some use (since you can install packages, reboot the machines) Is such an option possible through spacewalk? Kind regards, Michiel if it generates a new file / etc / passwd and charges through the area concerning configuration files (perhaps your user role does not allow you to do this) and only select group of systems the option to work with group and send him to send the configuration file to all computers SSM. Another option is through a small script using sed-i editing the file / etc / passwd directly on each machine together (SSM). ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
Re: [Spacewalk-list] Problem with RHNPUSH (ORACLE ???)
2009/7/25 Tommaso Rossetto tommaso.rosse...@gmail.com: Hi all, when I launch rhnpush I get this error message : Using POST request Error pushing base/CentOS/setroubleshoot-2.0.5-3.el5.noarch.rpm: Error 500Error Message: ORA-12899: value too large for column SPACEWALK.RHNPACKAGECHANGELOG.TEXT (actual: 3002, maximum: 3000) Error Class Code: 54 Error Class Info: Package Upload Failed due to uniqueness constraint violation. Make sure the package does not have any duplicate dependencies or does not already exists on the server (500) Waiting 1 seconds and trying again... Uploading package base/CentOS/setroubleshoot-2.0.5-3.el5.noarch.rpm Using POST request Error pushing base/CentOS/setroubleshoot-2.0.5-3.el5.noarch.rpm: Error 500Error Message: ORA-12899: value too large for column SPACEWALK.RHNPACKAGECHANGELOG.TEXT (actual: 3002, maximum: 3000) Error Class Code: 54 Error Class Info: Package Upload Failed due to uniqueness constraint violation. Make sure the package does not have any duplicate dependencies or does not already exists on the server (500) Waiting 4 seconds and trying again... Uploading package base/CentOS/setroubleshoot-2.0.5-3.el5.noarch.rpm Using POST request Error pushing base/CentOS/setroubleshoot-2.0.5-3.el5.noarch.rpm: Error 500Error Message: ORA-12899: value too large for column SPACEWALK.RHNPACKAGECHANGELOG.TEXT (actual: 3002, maximum: 3000) Error Class Code: 54 Error Class Info: Package Upload Failed due to uniqueness constraint violation. Make sure the package does not have any duplicate dependencies or does not already exists on the server (500) Waiting 2 seconds and trying again... and this in the final : Error Message: ORA-1: unique constraint (SPACEWALK.RHN_CNP_CID_NID_UQ) violated ORA-06512: at SPACEWALK.RHN_CHANNEL, line 916 ORA-06512: at line 1 Error Class Code: 23 Error Class Info: Could not update database entry. xargs: rhnpush: exited with status 255; aborting Could someone help me to resolve it please? There is something wrong in my oracle settings? many thanks. login in oracle using sqlplus, set max conections to 400, use this commands: # sqlplus spacew...@xe SQL alter system set processes = 400 scope=spfile; SQL alter system set _optimizer_filter_pred_pullup = false scope=spfile; SQL alter system set _optimizer_cost_based_transformation = off scope=spfile; SQL alter system set query_rewrite_enabled = true; SQL quit and restart oracle: # /sbin/service oracle-xe restart ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
Re: [Spacewalk-list] spacewalk installation on centos 5.3
2009/7/6 rob morrien rmorr...@xs4all.nl: Hello, During the installation of spacewalk , using the documentation on the centos site wiki.centosorg/how tos/packageManagement/spacewalk i get afther the command yum install spacewalk the next error messages: osa-dispatcher-5.9.10-1.el5.noarch from spacecewalk has depsolving problems -- Missing Dependency: jabberpy is needed by package osa-dispatcher-5.9.10-1.el5.noarch (spacecewalk) NPalert-1.126.7-1.el5.noarch from spacecewalk has depsolving problems -- Missing Dependency: perl(Crypt::GeneratePassword) is needed by package NPalert-1.126.7-1.el5.noarch (spacecewalk) spacewalk-moon-0.5.23-1.el5.noarch from spacecewalk has depsolving problems -- Missing Dependency: perl(Math::FFT) is needed by package spacewalk-moon-0.5.23-1.el5.noarch (spacecewalk) Error: Missing Dependency: perl(Crypt::GeneratePassword) is needed by package NPalert-1.126.7-1.el5.noarch (spacecewalk) Error: Missing Dependency: jabberpy is needed by package osa-dispatcher-5.9.10-1.el5.noarch (spacecewalk) Error: Missing Dependency: perl(Math::FFT) is needed by package spacewalk-moon-0.5.23-1.el5.noarch (spacecewalk) You have configurated a EPEL[1] repository? [1] http://fedoraproject.org/wiki/EPEL how to fix this regards rob ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
Re: [Spacewalk-list] spacewalk installation on centos 5.3
2009/7/6 rob morrien rmorr...@xs4all.nl: yep i have created the etc/yum.repos.d/epel.repo which is documented in the wiki document Do: yum clean headers or: yum clean all and again yum install spacewalk yum install spacewalk 2009/7/6 rob morrien rmorr...@xs4all.nl: Hello, During the installation of spacewalk , using the documentation on the centos site wiki.centosorg/how tos/packageManagement/spacewalk i get afther the command yum install spacewalk the next error messages: osa-dispatcher-5.9.10-1.el5.noarch from spacecewalk has depsolving problems -- Missing Dependency: jabberpy is needed by package osa-dispatcher-5.9.10-1.el5.noarch (spacecewalk) NPalert-1.126.7-1.el5.noarch from spacecewalk has depsolving problems -- Missing Dependency: perl(Crypt::GeneratePassword) is needed by package NPalert-1.126.7-1.el5.noarch (spacecewalk) spacewalk-moon-0.5.23-1.el5.noarch from spacecewalk has depsolving problems -- Missing Dependency: perl(Math::FFT) is needed by package spacewalk-moon-0.5.23-1.el5.noarch (spacecewalk) Error: Missing Dependency: perl(Crypt::GeneratePassword) is needed by package NPalert-1.126.7-1.el5.noarch (spacecewalk) Error: Missing Dependency: jabberpy is needed by package osa-dispatcher-5.9.10-1.el5.noarch (spacecewalk) Error: Missing Dependency: perl(Math::FFT) is needed by package spacewalk-moon-0.5.23-1.el5.noarch (spacecewalk) You have configurated a EPEL[1] repository? [1] http://fedoraproject.org/wiki/EPEL how to fix this regards rob ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
Re: [Spacewalk-list] spacewalk installation on centos 5.3
2009/7/6 rob morrien rmorr...@xs4all.nl: i have done the commands: yum clean all and again yum install spacewalk yum install spacewalk and i get the next error messages NPalert-1.126.7-1.el5.noarch from spacecewalk has depsolving problems -- Missing Dependency: perl(Crypt::GeneratePassword) is needed by package NPalert-1.126.7-1.el5.noarch (spacecewalk) spacewalk-moon-0.5.23-1.el5.noarch from spacecewalk has depsolving problems -- Missing Dependency: perl(Math::FFT) is needed by package spacewalk-moon-0.5.23-1.el5.noarch (spacecewalk) Error: Missing Dependency: perl(Crypt::GeneratePassword) is needed by package NPalert-1.126.7-1.el5.noarch (spacecewalk) Error: Missing Dependency: perl(Math::FFT) is needed by package spacewalk-moon-0.5.23-1.el5.noarch (spacecewalk) regards rob can you paste here your /etc/yum.repos.d/epel.repo file ? I install spacewalk last week in a centos 5.3 and I had no dependency problems. i use this install guide ( for install spacewalk 0.4 ): http://wiki.woop.es/Instalacion_Spacewalk but i use ( for install spacewalk 0.5 ) : rpm -Uvh http://spacewalk.redhat.com/yum/0.5/RHEL/5/i386/os/Packages/spacewalk-repo-0.5-2.el5.noarch.rpm and i confiure mi EPEL repo with: rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm 2009/7/6 rob morrien rmorr...@xs4all.nl: yep i have created the etc/yum.repos.d/epel.repo which is documented in the wiki document Do: yum clean headers or: yum clean all and again yum install spacewalk yum install spacewalk 2009/7/6 rob morrien rmorr...@xs4all.nl: Hello, During the installation of spacewalk , using the documentation on the centos site wiki.centosorg/how tos/packageManagement/spacewalk i get afther the command yum install spacewalk the next error messages: osa-dispatcher-5.9.10-1.el5.noarch from spacecewalk has depsolving problems -- Missing Dependency: jabberpy is needed by package osa-dispatcher-5.9.10-1.el5.noarch (spacecewalk) NPalert-1.126.7-1.el5.noarch from spacecewalk has depsolving problems -- Missing Dependency: perl(Crypt::GeneratePassword) is needed by package NPalert-1.126.7-1.el5.noarch (spacecewalk) spacewalk-moon-0.5.23-1.el5.noarch from spacecewalk has depsolving problems -- Missing Dependency: perl(Math::FFT) is needed by package spacewalk-moon-0.5.23-1.el5.noarch (spacecewalk) Error: Missing Dependency: perl(Crypt::GeneratePassword) is needed by package NPalert-1.126.7-1.el5.noarch (spacecewalk) Error: Missing Dependency: jabberpy is needed by package osa-dispatcher-5.9.10-1.el5.noarch (spacecewalk) Error: Missing Dependency: perl(Math::FFT) is needed by package spacewalk-moon-0.5.23-1.el5.noarch (spacecewalk) You have configurated a EPEL[1] repository? [1] http://fedoraproject.org/wiki/EPEL how to fix this regards rob ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
Re: [Spacewalk-list] spacewalk installation on centos 5.3
2009/7/6 rob morrien rmorr...@xs4all.nl: 2009/7/6 rob morrien rmorr...@xs4all.nl: i have done the commands: yum clean all and again yum install spacewalk yum install spacewalk and i get the next error messages NPalert-1.126.7-1.el5.noarch from spacecewalk has depsolving problems -- Missing Dependency: perl(Crypt::GeneratePassword) is needed by package NPalert-1.126.7-1.el5.noarch (spacecewalk) spacewalk-moon-0.5.23-1.el5.noarch from spacecewalk has depsolving problems -- Missing Dependency: perl(Math::FFT) is needed by package spacewalk-moon-0.5.23-1.el5.noarch (spacecewalk) Error: Missing Dependency: perl(Crypt::GeneratePassword) is needed by package NPalert-1.126.7-1.el5.noarch (spacecewalk) Error: Missing Dependency: perl(Math::FFT) is needed by package spacewalk-moon-0.5.23-1.el5.noarch (spacecewalk) regards rob can you paste here your /etc/yum.repos.d/epel.repo file ? [epel] name=Extra Packages for Enterprise Linux 5 - $basearch #baseurl=http://download.fedora.redhat.com/pub/epel/5/$basearch mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5arch=$basearch failovermethod=priority gpgkey=http://download.fedora.redhat.com/pub/epel/RPM-GPG-KEY-EPEL gpgcheck=1 includepkgs=bea-stax* cobbler git* java-1.6.0-openjdk* jakarta-commons-cli jcommon jfreechart libapreq2 libyaml perl-Algorithm-Diff \ perl-Apache-DBI perl-BerkeleyDB perl-Cache-Cache perl-Class-MethodMaker perl-Class-Singleton \ perl-Convert-BinHex perl-Config-IniFiles perl-Crypt-DES perl-DateTime perl-DateTime-Format-Mail \ perl-DateTime-Format-W3CDTF perl-Error perl-FreezeThaw perl-Frontier-RPC perl-GD perl-Git \ perl-HTML-TableExtract perl-IO-Capture perl-IO-stringy perl-IPC-ShareLite perl-libapreq2 perl-MIME-Lite \ perl-MIME-tools perl-Net-SNMP perl-Params-Validate perl-Proc-Daemon perl-SOAP-Lite perl-TermReadKey \ perl-Text-Diff perl-Unix-Syslog perl-XML-RSS perl-version perlAlgorithm-Diff python-cheetah python-netaddr PyYAML \ python-simplejson rhino tzdata-java me /etc/yum.repos.d/epel.repo [epel] name=Extra Packages for Enterprise Linux 5 - $basearch baseurl=http://download.fedora.redhat.com/pub/epel/5/$basearch #mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5arch=$basearch failovermethod=priority enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL [epel-debuginfo] name=Extra Packages for Enterprise Linux 5 - $basearch - Debug #baseurl=http://download.fedora.redhat.com/pub/epel/5/$basearch/debug mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-5arch=$basearch failovermethod=priority enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL gpgcheck=1 [epel-source] name=Extra Packages for Enterprise Linux 5 - $basearch - Source #baseurl=http://download.fedora.redhat.com/pub/epel/5/SRPMS mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-5arch=$basearch failovermethod=priority enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL comment your includepkgs line, and try again ( do not forget to clear your cache of yum ) I install spacewalk last week in a centos 5.3 and I had no dependency problems. i use this install guide ( for install spacewalk 0.4 ): http://wiki.woop.es/Instalacion_Spacewalk but i use ( for install spacewalk 0.5 ) : rpm -Uvh http://spacewalk.redhat.com/yum/0.5/RHEL/5/i386/os/Packages/spacewalk-repo-0.5-2.el5.noarch.rpm and i confiure mi EPEL repo with: rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm 2009/7/6 rob morrien rmorr...@xs4all.nl: yep i have created the etc/yum.repos.d/epel.repo which is documented in the wiki document Do: yum clean headers or: yum clean all and again yum install spacewalk yum install spacewalk 2009/7/6 rob morrien rmorr...@xs4all.nl: Hello, During the installation of spacewalk , using the documentation on the centos site wiki.centosorg/how tos/packageManagement/spacewalk i get afther the command yum install spacewalk the next error messages: osa-dispatcher-5.9.10-1.el5.noarch from spacecewalk has depsolving problems -- Missing Dependency: jabberpy is needed by package osa-dispatcher-5.9.10-1.el5.noarch (spacecewalk) NPalert-1.126.7-1.el5.noarch from spacecewalk has depsolving problems -- Missing Dependency: perl(Crypt::GeneratePassword) is needed by package NPalert-1.126.7-1.el5.noarch (spacecewalk) spacewalk-moon-0.5.23-1.el5.noarch from spacecewalk has depsolving problems -- Missing Dependency: perl(Math::FFT) is needed by package spacewalk-moon-0.5.23-1.el5.noarch (spacecewalk) Error: Missing Dependency: perl(Crypt::GeneratePassword) is needed by package NPalert-1.126.7-1.el5.noarch (spacecewalk) Error: Missing Dependency: jabberpy is needed by package osa-dispatcher-5.9.10-1.el5.noarch (spacecewalk) Error: Missing Dependency:
[Spacewalk-list] error sending hardware profile to spacewalk server
Hi, all. I can't register a machine with Fedora 10 in spacewalk server, i use: /usr/sbin/rhnreg_ks --serverUrl=http://spacewalk.example.com/XMLRPC --activationkey=1-71ffe74ddaskldjaldjasljdlkajsdkljsa this problem it's better explained in a bug[1] I could register the machine using the following command:: /usr/sbin/rhnreg_ks --nohardware --force --serverUrl=http://spacewalk.example.com/XMLRPC --activationkey=1-71ffe74ddaskldjaldjasljdlkajsdkljsa i use: [r...@callp3e1 ~]# rpm -qa | grep rhn rhnlib-2.5.12-1.fc10.noarch rhnsd-4.5.10-1.fc10.i386 rhn-setup-0.6.1-1.fc10.noarch rhncfg-client-5.9.6-1.fc10.noarch yum-rhn-plugin-0.5.7-1.fc10.noarch rhncfg-management-5.9.6-1.fc10.noarch rhn-check-0.6.1-1.fc10.noarch rhn-client-tools-0.6.1-1.fc10.noarch rhncfg-5.9.6-1.fc10.noarch rhncfg-actions-5.9.6-1.fc10.noarch [r...@callp3e1 ~]# rhn-profile-sync Actualizando perfil de paquetes... Actualizando perfil de hardware... Ha ocurrido un error: type 'exceptions.AttributeError' Vea /var/log/up2date para obtener mayor información And the file /var/log/up2date contains: [Fri Jul 3 13:31:23 2009] up2date logging into up2date server [Fri Jul 3 13:31:23 2009] up2date successfully retrieved authentication token from up2date server [Fri Jul 3 13:46:24 2009] up2date updateLoginInfo() login info [Fri Jul 3 13:46:24 2009] up2date logging into up2date server [Fri Jul 3 13:46:24 2009] up2date successfully retrieved authentication token from up2date server [Fri Jul 3 14:12:04 2009] up2date updateLoginInfo() login info [Fri Jul 3 14:12:04 2009] up2date logging into up2date server [Fri Jul 3 14:12:04 2009] up2date successfully retrieved authentication token from up2date server [Fri Jul 3 14:12:04 2009] up2date Updating package profile [Fri Jul 3 14:12:05 2009] up2date Traceback (most recent call last): File /usr/sbin/rhn-profile-sync, line 54, in module cli.run() File /usr/share/rhn/up2date_client/rhncli.py, line 65, in run sys.exit(self.main() or 0) File /usr/sbin/rhn-profile-sync, line 45, in main rhnHardware.updateHardware() File /usr/share/rhn/up2date_client/rhnHardware.py, line 12, in updateHardware hardwareList) File /usr/lib/python2.5/xmlrpclib.py, line 1150, in __call__ return self.__send(self.__name, args) File /usr/share/rhn/up2date_client/rpcServer.py, line 38, in _request1 ret = self._request(methodname, params) File /usr/lib/python2.5/site-packages/rhn/rpclib.py, line 318, in _request request = self._req_body(params, methodname) File /usr/lib/python2.5/site-packages/rhn/rpclib.py, line 222, in _req_body return xmlrpclib.dumps(params, methodname, encoding=self._encoding) File /usr/lib/python2.5/xmlrpclib.py, line 1083, in dumps data = m.dumps(params) File /usr/lib/python2.5/xmlrpclib.py, line 623, in dumps dump(v, write) File /usr/lib/python2.5/xmlrpclib.py, line 638, in __dump f(self, value, write) File /usr/lib/python2.5/xmlrpclib.py, line 698, in dump_array dump(v, write) File /usr/lib/python2.5/xmlrpclib.py, line 638, in __dump f(self, value, write) File /usr/lib/python2.5/xmlrpclib.py, line 719, in dump_struct dump(v, write) File /usr/lib/python2.5/xmlrpclib.py, line 634, in __dump self.dump_instance(value, write) File /usr/lib/python2.5/xmlrpclib.py, line 753, in dump_instance self.dump_struct(value.__dict__, write) type 'exceptions.AttributeError': 'dbus.String' object has no attribute '__dict__' any solution to this problem? [1] https://bugzilla.redhat.com/show_bug.cgi?id=494019 ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
[Spacewalk-list] spacewalk with other apache virtualhosts
how can set other virtualhosts in same apache configuration file from spacewalk? i add in last part from file /etc/http/conf/httpd.conf NameVirtualHost *:80 # # NOTE: NameVirtualHost cannot be used without a port specifier # (e.g. :80) if mod_ssl is being used, due to the nature of the # SSL protocol. # # # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # The first VirtualHost section is used for requests without a known # server name. # VirtualHost *:80 ServerAdmin sopo...@example.com ServerName repo.example.com ServerAlias repo.example.com DocumentRoot /home/repo Directory /home/repo Options Indexes FollowSymLinks MultiViews Order allow,deny Allow from all /Directory /VirtualHost But, this don't work. ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list