[CentOS] file system resizing with cloud-init on centos/redhat??

2013-08-06 Thread Gelen James
Hi, Has any one used resizefs module with cloud-init on centos/redhat before? How to call it with #cloud-config user data, do I need to give it any parameters? I googled cloud-init, but it is pretty difficult to find a manual/book on this, and mostly they are Ubuntu based. If possible, I'd lik

Re: [CentOS] Failed to create /dev/loop0p* entries for partitions inside loopback devices

2013-05-24 Thread Gelen James
t: Re: [CentOS] Failed to create /dev/loop0p* entries for partitions inside loopback devices On Fri, 24 May 2013, Gelen James wrote: > centos 6 failed to create entries under /dev for newly created loopback > devices. Any one know why? and how to fix/workaround it? > > The steps to du

[CentOS] Failed to create /dev/loop0p* entries for partitions inside loopback devices

2013-05-24 Thread Gelen James
centos 6 failed to create entries under /dev for newly created loopback devices. Any one know why? and how to fix/workaround it? The steps to duplicate is pretty simple dd if=/dev/zero of=/tmp/deleteme bs=1M count=100 losetup /dev/loop0 /tmp/deleteme fdisk /dev/loop0   ## created partitions 1, 2

[CentOS] strange sporadic sssd problem on centos

2013-03-12 Thread Gelen James
>From time to time on centos 6 sssd I got login problems like 'connection >closed by *.*.*.*.', after a while then I login in again and the problem >already disappeared.  For the ssh login problem, I can see the following entries in /var/log/secure. 'Failed public key for '  is the entry fo

[CentOS] Please shed a light: when sssd will return from offline to online?

2013-03-04 Thread Gelen James
Hi all,  I'm new to sssd configs and debugging. Recently we have encountered some problems with sssd. Basically 6 out of 50 servers has 'getent passwd' lost all userIDs from LDAP backend, while others are OK.  My sssd is at version 1.8.0-32. the related error messages are attached below. The s

[CentOS] what does the strange sssd log mesages mean?

2013-03-04 Thread Gelen James
Hi all, I have a few centos 6 boxes running sssd, they are talking to OpenLDAP server still runs on centos 5. Today I enabled sssd debugging and found the following lines of messages in logs: ... (Mon Mar  4 23:11:13 2013) [sssd[be[ldap]]] [get_naming_context] (0x0200): Using value from [namin

[CentOS] Please help: Any way to query host membership in nested ldap groups?

2013-03-02 Thread Gelen James
Hi all, I have a openldap server setup with netsted netgruops,. Say the netgroups are: ngA: (host1, -, - ), (host2, -, - ) ngB: ngA, (host3, - - ) ngc: ngB, (host4, -, -) Is there a way to find host1's membership? so that I can return: ngA, ngB, ngC? Thanks a lot. --Rob

[CentOS] How to query host membership in nested openldap netgroups?

2013-03-02 Thread Gelen James
Hi all, I have a openldap server setup with netsted netgruops,. Say the netgroups are: ngA: (host1, -, - ), (host2, -, - ) ngB: ngA, (host3, - - ) ngc: ngB, (host4, -, -) Is there a way to find host1's membership? so that I can return: ngA, ngB, ngC? Thanks a lot. --Rob

Re: [CentOS] SSHD rootkit in the wild/compromise for CentOS 5/6?

2013-02-25 Thread Gelen James
'rpm -V' can be misleading, if taking into account of prelink on Redhat/Centos Boxes which is running through cron by default. I've shown the steps on reverse the effect of prelink at the comments sections at link  https://isc.sans.edu/diary/SSHD+rootkit+in+the+wild/15229?storyid=15229. I'm afra

[CentOS] Is this right? -- Centos 6 and RHEL 6 infrastrure for continuous update/upgrade

2013-02-08 Thread Gelen James
Hi all, Both RHEL 6 and CentOS 6 can be installed from any minor releases DVDs: 6.0, 6.1, 6.2, 6.3, etc. And then got continuous upgrade/update with command 'yum -y upgrade' if repos are setup correct. But the repos infrastructure is different between the two. CentOS uses two repos:     /

[CentOS] any Log archive tools suggestions?

2012-12-07 Thread Gelen James
Hi all,  Has any one used any log archiving tools? Please suggest one that's your favorite. Presently I have a project to archive raw log files on hundreds of Centos boxes to a central server and stored there for two years. The basic requirements of the project are:  1, The log files will be

Re: [CentOS] strange 'find' tool behavior

2012-11-19 Thread Gelen James
strange 'find' tool behavior On Mon, Nov 19, 2012 at 04:44:31PM -0800, Gelen James wrote: > [root@centos_58_test_box workingDir]# find . -type d -name '.svn' -exec > /bin/rm -rf '{}' \; > find: ./.svn: No such file or directory [...] "find&quo

[CentOS] strange 'find' tool behavior

2012-11-19 Thread Gelen James
Hi all, Just encountered an strange bahavior of frequent 'find' command. I tried to use find to recursively remove .svn directories from my working place, 'find' command removed all the '.svn' directories successfully but reported errors on screen. Any one knows why it shows this behavior? BTW

Re: [CentOS] Please help -- centos 5.8: does the slapcat still breaks ldap data integrity?

2012-11-13 Thread Gelen James
> > Hi all, > > > >  I've a small project to backup and restore openldap servers online on > >centos 5.8. Basically I don't have the luxury to shutdown the ldap server, > >then backup whole /var/lib/ldap/, but have to backup online with slapcat or > >similar command line tool. > > > > The maj

[CentOS] Please help -- centos 5.8: does the slapcat still breaks ldap data integrity?

2012-11-12 Thread Gelen James
Hi all,  I've a small project to backup and restore openldap servers online on centos 5.8. Basically I don't have the luxury to shutdown the ldap server, then backup whole /var/lib/ldap/, but have to backup online with slapcat or similar command line tool. The major concern of using slapcat is

Re: [CentOS] any reliable HTTPS/SFTP based FTP software on Linux?

2012-11-05 Thread Gelen James
Linux? On 11/03/2012 10:24 AM, Gelen James wrote: > I tried Serv-U, Axway SecureTransport and other several software on Linux , > Neither one works as expected. > > Serv-U is very inexpensive and can create unlimited FTP accounts, but crashes > pretty often with unknown rea

[CentOS] any reliable HTTPS/SFTP based FTP software on Linux?

2012-11-03 Thread Gelen James
I tried Serv-U, Axway SecureTransport and other several software on Linux , Neither one works as expected. Serv-U is very inexpensive and can create unlimited FTP accounts, but crashes pretty often with unknown reasons. Axway SecureTransport is a riduculously expensive: about $1K per FTP accoun

Re: [CentOS] any reliable FTP server with HTTPS/FTPS, commercial or not

2012-06-14 Thread Gelen James
FTP server with HTTPS/FTPS, commercial or not On 06/14/12 3:39 PM, Gelen James wrote: >  Just like to know which secure FTP servers are popular in use on Linux, the >FTP server should provides HTTPS, FTPS and SFTP methods. sftp is part of SSH, not FTP.  https is HTTP not FTP. ftps (FT

[CentOS] any reliable FTP server with HTTPS/FTPS, commercial or not

2012-06-14 Thread Gelen James
Hi all,  Just like to know which secure FTP servers are popular in use on Linux, the FTP server should provides HTTPS, FTPS and SFTP methods.  Current we are with Serv-U FTP server, but it has been crashed all the time for unknown reasons -- can not find any causes in its log file at all. Alt

[CentOS] Any documents for python-kerberos package??

2012-05-22 Thread Gelen James
Hi all,  I'm in a project to program Kerberos with Python. The headache encountered is, there is no documents on how to call the Kerberos module functions and results.  when run 'help kerberos.checkPassword' in python, it just show things like: Help on built-in function checkPassword in modul