Re: [CentOS] CentOS 6: hostname and timezone

2011-10-04 Thread John Kennedy
On Tue, Oct 4, 2011 at 15:22, John Kennedy 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 go

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

[CentOS] Silly logrotate question

2011-10-19 Thread John Kennedy
e while 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

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 se

Re: [CentOS] Building a custom install CD

2009-06-09 Thread John Kennedy
On Mon, Jun 8, 2009 at 11:13 PM, Fred Moyer 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 while > since I have n

Re: [CentOS] how to setup account which can 'su" to another account (NON-root)?

2010-08-19 Thread John Kennedy
; > my /etc/sudoers setup: > > # User privilege specification > rootALL=(ALL) ALL > user1 ALL=(root) /bin/su > > > any ideal to fix it? > > > > Use complete command like this: user1 ALL=(root) /bin/su - user2 This will limit user1 to that specific comm

[CentOS] Update to base release

2010-09-07 Thread John Kennedy
g 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

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

2010-09-17 Thread John Kennedy
man/listinfo/centos > It's all about picking the right tool for the job. Python is good for some things, 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

Re: [CentOS] OpenOffice or LibreOffice?

2010-10-04 Thread John Kennedy
ll install it to see how it goes. The way Oracle 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] 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 Ke

Re: [CentOS] Determine next UID number

2010-10-13 Thread John Kennedy
On Wed, Oct 13, 2010 at 16:09, Joseph L. Casale wrote: > > Is there an equivalent in CentOS? > > cat /etc/passwd |cut -d ":" -f 3 |sort -n > > ;) > I am more looking at what the system thinks is the next UID. Does the useradd command use this when it assigns the ne

Re: [CentOS] Determine next UID number

2010-10-13 Thread John Kennedy
gets truncated)... I have been able to use things like these 2 examples (cat /etc/passwd | cut -d: -f3 | sort -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] Determine next UID number

2010-10-14 Thread John Kennedy
On Wed, Oct 13, 2010 at 17:16, Spiro Harvey wrote: > John Kennedy 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 in

[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] No "last command" in VIM?

2010-10-21 Thread John Kennedy
p.mit.edu --recv-keys EB3467D6 > > ___ > CentOS mailing list > CentOS@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
his is just an example) > so instead of copying the above line 832 times and appending that user's > number in each "$USER" > > is there a way to do it in a smarter way ? > > > thanks, > > --Rolad > > > _____

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 wrote: > for i in `ls -d /opt` > do > cp /opt/${i}/test/ /backup/${i} > done > > > On

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 wrote: > Not quite right... > > for i in `ls -d /opt | cu

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

2010-10-31 Thread John Kennedy
ling list > CentOS@centos.org > http://lists.centos.org/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] 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
imultaneous > > releases. > > I expect that 5.6 will get the first 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.

Re: [CentOS] Fwd: ntp help

2010-11-11 Thread John Kennedy
t; this presentation on comment resolution on the 802.15.4g ballot. boring). > > > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > To fit this in a bit with your set up. Have your 192

[CentOS] SSH keys question

2010-11-15 Thread John Kennedy
assword serverc --> serverb 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, Jo

Re: [CentOS] SSH keys question [RESOLVED]

2010-11-15 Thread John Kennedy
Paul Heinlein <> heinl...@madboa.com <> http://www.madboa.com/ > ___ > 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 director

Re: [CentOS] good shell script examples?

2010-11-15 Thread John Kennedy
o want to do, if you require interactive logins (i.e. ssh keys not set 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

Re: [CentOS] ssh prompting for password

2010-11-16 Thread John Kennedy
> > > Considering that this key is internal network only and doesn't have a > passphrase set (it does not traverse internet boundaries) why on earth > am I being prompted for a password whenever I ssh into this machine? > > thanks! > -- > H

Re: [CentOS] ssh prompting for password

2010-11-16 Thread John Kennedy
__ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > I would think 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 Kenn

Re: [CentOS] good shell script examples?

2010-11-17 Thread John Kennedy
list > > Subject: Re: [CentOS] 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 s

Re: [CentOS] Novell sale news?

2010-11-22 Thread John Kennedy
My guess (and I REALLY hope I am right) is that the IP in question is related to NetWare and eDirectory. Both products (started out 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] Converting to Raid1

2010-11-30 Thread John Kennedy
M is installed. I 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 u

[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 wasting

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 > > > I do not have package @mysql in the list - yet after install "rpm -qa | > grep -i mysql" reports mysql load

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

2011-09-03 Thread John Kennedy
mean. Or maybe You should think how to > get back the lost confidence, because too many people now think that > CentOS is no more enterprise distribution, not at all! > ___ > CentOS mailing list > CentOS@cento

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 box

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

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 kn

[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 pos

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] why i can not put my swap files in /dev?

2010-07-06 Thread John Kennedy
; > Well, /dev is *not* a good place for anything but device files. > > > > /dev is not a real directory for data files. > > Um, er, what do you mean about it not being a "real" directory? > > mark > &