[CentOS] Silly logrotate question

2011-10-19 Thread John Kennedy
keeping the current day? Here is the logrotate file: /var/log/app/*.log { daily rotate 10 compress missingok notifempty create 0644 user user } I added notifempty to keep the old empty log files from being compressed... Thanks, John John Kennedy

Re: [CentOS] CentOS 6: hostname and timezone

2011-10-04 Thread John Kennedy
On Tue, Oct 4, 2011 at 15:22, John Kennedy skeb...@gmail.com wrote: For changing the hostname without restart use the hostname command: hostname newhost.domain.com To keep the new hostname between restarts edit /etc/sysconfig/network, and change the hostname there. Also its a good idea

Re: [CentOS] CentOS 6: hostname and timezone

2011-10-04 Thread John Kennedy
For changing the hostname without restart use the hostname command: hostname newhost.domain.com To keep the new hostname between restarts edit /etc/sysconfig/network, and change the hostname there. Also its a good idea to check /etc/hosts, it can contain the old hostname, change/delete it. John

Re: [CentOS] Where are the CentOS 6 security updates?

2011-09-03 Thread John Kennedy
many people now think that CentOS is no more enterprise distribution, not at all! ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos -- John Kennedy ___ CentOS

Re: [CentOS] Converting to Raid1

2010-11-30 Thread John Kennedy
think you then need to add your partitions as physical drives and partition the new drive to match your existing one. Add the new drive partitions as physical drives and pair them up. How difficult it is depends on your current set up. John -- John Kennedy

Re: [CentOS] Novell sale news?

2010-11-22 Thread John Kennedy
to be)/are better than MS products, not Linux/SUSE stuff. -- John Kennedy ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] good shell script examples?

2010-11-17 Thread John Kennedy
] good shell script examples? I wrote a simple one a few years back: http://www.happyhacker.org/gtmhh/basha.shtml Is there an alternate location for this? My corp's websense blocks this site for some reason. They probably only want sad hackers... John -- John Kennedy

Re: [CentOS] ssh prompting for password

2010-11-16 Thread John Kennedy
pgp.mit.edu --recv-keys 5A4873A9 Share and enjoy!! ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos -- John Kennedy ___ CentOS mailing list CentOS@centos.org http

Re: [CentOS] ssh prompting for password

2010-11-16 Thread John Kennedy
that would just cause a failed login and not ask for a password then let him in. From reading, it looks like he can SSH, just not without the password... John -- John Kennedy ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo

[CentOS] SSH keys question

2010-11-15 Thread John Kennedy
No password If they are all identical from an ssh standpoint (at least the authorized_keys, /etc/sshd_config, and UID for the user on all 3 hosts), why will serverc not play nicely with the other 2 Is there something else I should be checking? Thanks, John -- John Kennedy

Re: [CentOS] SSH keys question [RESOLVED]

2010-11-15 Thread John Kennedy
/ ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Found it... In /var/log/secure I got Authentication refused: bad ownership or modes for directory /home/zema/.ssh I had checked the file, not the directory... Thanks all... John -- John Kennedy

Re: [CentOS] good shell script examples?

2010-11-15 Thread John Kennedy
up for password-less logins) then bash is not the best choice. For this you would want to use either Python (with pyexpect module) or the Expect scripting language (Expect is an extension of the TCL scripting language. John -- John Kennedy ___ CentOS

Re: [CentOS] Fwd: ntp help

2010-11-11 Thread John Kennedy
of the respective 10.5/6 boxes can get their time from their attached server. Robert's info can be modified for this... John -- John Kennedy ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

[CentOS] RHEL 6 Officially Released

2010-11-10 Thread John Kennedy
When will CentOS 6 be released??? (Just kidding...Just wanted to let you all know that RHEL6 has been released...And yes, I know that most of you all know...) John -- John Kennedy ___ CentOS mailing list CentOS@centos.org http://lists.centos.org

Re: [CentOS] RHEL 6 Officially Released

2010-11-10 Thread John Kennedy
priority, if for no other reason than it was out first, and thus probably already being worked on. Can't wait for CentOS 6.0 though! I thought 5.6 was only a Beta. RHEL 6 is fully released. John -- John Kennedy ___ CentOS mailing list CentOS

Re: [CentOS] Possible to reboot a system after kickstart installation without pressing a key?

2010-10-31 Thread John Kennedy
/mailman/listinfo/centos The default is to ask you for a reboot. Since a newly built system is most vulnerable, many people do not want to reboot unless they are there to finish the configuration John -- John Kennedy ___ CentOS mailing list CentOS

Re: [CentOS] No last command in VIM?

2010-10-21 Thread John Kennedy
@centos.org http://lists.centos.org/mailman/listinfo/centos -- John Kennedy ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] how to do repetetive command in shell

2010-10-21 Thread John Kennedy
that user's number in each $USER is there a way to do it in a smarter way ? thanks, --Rolad ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos -- John Kennedy

Re: [CentOS] how to do repetetive command in shell

2010-10-21 Thread John Kennedy
Not quite right... for i in `ls -d /opt | cut -d/ -f2` do cp /opt/${i}/test/ /backup/${i} done Takes out the /opt/ from my first try... John On Thu, Oct 21, 2010 at 14:51, John Kennedy skeb...@gmail.com wrote: for i in `ls -d /opt` do cp /opt/${i}/test/ /backup/${i} done On Thu, Oct 21

Re: [CentOS] how to do repetetive command in shell

2010-10-21 Thread John Kennedy
Damn...I will get this right...Need more sleep... for i in `ls -d /opt/* | cut -d/ -f3` do cp /opt/${i}/test/ /backup/${i} done I KNOW this one will work...If not, I quit!!! John On Thu, Oct 21, 2010 at 14:55, John Kennedy skeb...@gmail.com wrote: Not quite right... for i in `ls -d /opt

[CentOS] Disk Problem???

2010-10-20 Thread John Kennedy
know that one of the drives (set in LSI as a failed Hot Spare) has failed but that is in slot 0 and should not be an issue here. Any ideas on what is breaking? Thanks, John -- John Kennedy ___ CentOS mailing list CentOS@centos.org http

Re: [CentOS] Determine next UID number

2010-10-14 Thread John Kennedy
On Wed, Oct 13, 2010 at 17:16, Spiro Harvey sp...@knossos.net.nz wrote: John Kennedy skeb...@gmail.com wrote: This also does not tell me how useradd knows that on this system at this time the highest UID assigned to a user is 20015. From the source's mouth (this is from useradd.c

[CentOS] Determine next UID number

2010-10-13 Thread John Kennedy
When I used Solaris years and years ago there was a command that would be able to tell you the next available non-system UID number for the system (can't remember what it is now, I have slept since then...). Is there an equivalent in CentOS? Thanks, John -- John Kennedy

Re: [CentOS] Determine next UID number

2010-10-13 Thread John Kennedy
-- John Kennedy ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] Determine next UID number

2010-10-13 Thread John Kennedy
-n | tail -2 | head -1 in this case) but I want to get the next UID from the system not by parsing /etc/passwd John -- John Kennedy ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] OpenOffice or LibreOffice?

2010-10-04 Thread John Kennedy
is acting towards Open Source I will likely stay with LibreOffice and also start learning PosgreSQL just so I have no Oracle products (in much the same way I have no M$ products (in my personal life))... John -- John Kennedy ___ CentOS mailing list CentOS

Re: [CentOS] looking for cool, post-install things to do on a centos 5.5 system

2010-09-17 Thread John Kennedy
, perl for others, awk for still different things... It is the beauty of Linux... John -- John Kennedy ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

[CentOS] Update to base release

2010-09-07 Thread John Kennedy
with the CLI version of it. We need to go to stock versions to match our production RHEL 4.8 machines. Thanks, John -- John Kennedy ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

[CentOS] Upgrading from 4.4 to 4.7

2010-06-24 Thread John Kennedy
Hello all, For (system) certification purposes, we have to upgrade our 4.4 machines to 4.7. In the past I usually have just reinstalled machines to save the (perceived) headaches of upgrading. That is not an option in this case. Are there any pitfalls to watch out for when upgrading? Is it even

Re: [CentOS] Upgrading from 4.4 to 4.7

2010-06-24 Thread John Kennedy
Only going to 4.7 because the required app is not certified for 4.8 (In the RHEL world which is what we are basing this on). 4.7 is as high as they will go. I know I will be doing this again in a month's time when they have 4.8 certified... I just do as I am told...To an extent... Thanks, John On

Re: [CentOS] NFS - Permission Denied

2010-06-17 Thread John Kennedy
Try turning off root_squash in your /etc/exports file... Default NFS server behavior is to prevent root on client machines from having privileged access to exported files. Servers do this by mapping the root user to some unprivileged user (usually the user nobody) on the server side. This is known

Re: [CentOS] help!

2010-03-24 Thread John Kennedy
On 03/24/2010 04:48 AM, Roland RoLaNd wrote: hello, i've just wrote the following : more ./*.csv | grep -i XXX | echo Dear XXX, This email is for informative purposes. Your total number of hours for the week of `date` is: `cut -d, -f2` hours Kindly note that the average weekly working

Re: [CentOS] SSH Remote Execution - su?

2010-03-03 Thread John Kennedy
On Wednesday 03 March 2010 16:20:21 Tim Nelson wrote: Greetings All- I'm about to embark on some remote management testing and need a way to login to a remote system running CentOS 4.x/5.x via SSH, su to root (using a password), then execute a command. I currently login to the boxes

Re: [CentOS] Building a custom install CD

2009-06-09 Thread John Kennedy
On Mon, Jun 8, 2009 at 11:13 PM, Fred Moyer f...@redhotpenguin.com wrote: Greetings, I am looking for resources on how to build my own Centos install CD for a preselected package set that I want to install. I think Red Hat may have had this functionality at some point but it has been a

Re: [CentOS] Auto-installing security updates?

2009-05-19 Thread John Kennedy
On Tuesday 19 May 2009 16:11:35 Anne Wilson wrote: I've been asked to think about setting up an installation for a recently- widowed man. His needs are small - mail, Internet, on-line banking, basically - but his wife dealt with all of it on her laptop and he feels very insecure. It seems

Re: [CentOS] kickstart question

2009-05-05 Thread John Kennedy
On Monday 04 May 2009 18:28:16 Jerry Geis wrote: Hi all, My kickstart section for packages is %packages @base-x @dialup @gnome-desktop @base @development-libs @core snip I do not have package @mysql in the list - yet after install rpm -qa | grep -i mysql reports mysql loaded. how

[CentOS] Errors using custom install disk

2009-03-04 Thread John Kennedy
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 (Sorry if this is a dupe. Sent originally from unregistered email address) All, I am trying to make a custom install CD for CentOS 5.2. I am building the iso in a VirtualBox image and testing the iso in another VirtualBox image so I don't keep