[CentOS] Basic Permissions Questions

2011-01-26 Thread James Bensley
Hi List :) So, I have a folder1, its owner is user1 who has r+w on the folder. User2 is the group owner who only has read access (when I say user2, I mean the group called user2, because when you make a new user the OS can make them their own group). You can see these permissions below: [user2@ho

Re: [CentOS] Basic Permissions Questions

2011-01-26 Thread James Bensley
On 26 January 2011 10:17, Rafa Griman wrote: > Directories should have +x permissions. Do a: > > chmod    0750    /directory > > And see what happens. > Hi Rafa, like a fool I sent that email and then worked this out shortly after :) Still, if I hadn't your response was quick so I wouldn't have

Re: [CentOS] Basic Permissions Questions

2011-01-26 Thread James Bensley
Thanks to all for your replies; the ability to set the group ID (SGID) was the solution I needed, thanks very much guys :D -- Regards, James. http://www.jamesbensley.co.cc/ There are 10 kinds of people in the world; Those who understand Vigesimal, and J others...? __

Re: [CentOS] SSH Automatic Log-on Failure - Centos 5.5

2011-01-27 Thread James Bensley
Hello all, I've been reading this thread and have a question. I would like to set up passwordless ssh between two servers for some automated tasks but I don't like the paswordless key's option. How can I supply a passphrase when generating my keys but still have this process automated? --James. (

Re: [CentOS] SSH Automatic Log-on Failure - Centos 5.5

2011-01-27 Thread James Bensley
On 27 January 2011 08:48, Cameron Kerr wrote: > I think 'keychain' is often used for this. It's a bit like ssh-agent, in > that you unlock the key manually (eg. just after starting the system), but > it can be accessed by other programs later. I've never used it myself. Ah yes, I see thats what N

[CentOS] Lost root access

2011-02-02 Thread James Bensley
So on a virtual server the root password was no longer working (as in I couldn't ssh in anymore). Only I and one other know it and neither of us have changed it. No other account had the correct privileges to correct this so I'm wondering, if I had mounted that vdi as a secondary device on another

[CentOS] User Details

2011-02-03 Thread James Bensley
I have some questions on how I can perform the following actions from the terminal in CentOS 5.5 final. My Google searches aren't helping and I keep seeing references to the command 'useradd' but this isn't present on my box; -How to add a new user? $ useradd -bash: useradd: command not found (Thi

Re: [CentOS] Lost root access

2011-02-03 Thread James Bensley
On 2 Feb 2011 15:07, "Robert Heller" wrote: > > At Wed, 2 Feb 2011 14:44:01 + CentOS mailing list wrote: > > > > > So on a virtual server the root password was no longer working (as in > > I couldn't ssh in anymore). Only I and one other know it and neither > > of us have changed it. No other

Re: [CentOS] Lost root access

2011-02-03 Thread James Bensley
On 2 Feb 2011 16:36, wrote: > > Well, if you could get on the system at all, and had sudo privileges, no > problem. > > mark No sudo priv's, remote VM so ssh only to a stanard user not in sudoers. --James. (This email was sent from a mobile device)

Re: [CentOS] User Details

2011-02-15 Thread James Bensley
On 3 February 2011 12:45, Nico Kadel-Garcia wrote: > But the result for normal users is that command like "useradd", > "chkconfig", and "service" need to be typed out with their full path, > such as "/usr/sbin/useradd" or "/sbin/chkconfig". Thanks Nico, I was aware of this but I couldn't find the

[CentOS] Authentication Problems

2011-02-16 Thread James Bensley
Hi List, We have a CentOS VPS running a web site in a DC far away. The chap that dev's this site told me he couldn't SFTP in yesterday, his password was being rejected (I went to his desk to confirm and saw it was telling him the password was incorrect but neither him nor me had changed it and we

Re: [CentOS] Authentication Problems

2011-02-16 Thread James Bensley
On 16 Feb 2011 12:34, "Nico Kadel-Garcia" wrote: > > Uh-oh. Has your developer, or you, been editing the /etc/passwd, > /etc/shadow, /etc/group, or /etc/gshadow files manually? Nope. > And do you > use NIS or LDAP for authentication? Nope. > And this is a publicly exposed > webserver, right? H

Re: [CentOS] Authentication Problems

2011-02-16 Thread James Bensley
Thanks to all for your various replies On 16 February 2011 12:50, Nico Kadel-Garcia wrote: >>> Check the /etc/shadow and /etc/group for consistent numbers of >>> entries, and /etc/group and /etc/gshadow. >> >> Do you mean duplicate entries? If so there are none of those. > > No, I mean the sa

Re: [CentOS] Authentication Problems

2011-02-16 Thread James Bensley
On 16 February 2011 13:00, ... wrote: > you realize that there are no passwords in /etc/passwd, so if you > delete /etc/shadow and rebuild it using pwconv there will be no > passwords in the new /etc/shadow... depending on the exact state, > you either won't be able to log in, or the machine will b

Re: [CentOS] Authentication Problems

2011-02-16 Thread James Bensley
On 16 February 2011 14:17, wrote: > What does lastlog | grep -v Never show you? > Hi Mark, This has shown something (potentially) interesting: [root@server ~]# lastlog | grep -v Never Username Port From Latest root pts/2x.x.x.x Wed Feb 16 13:41:40 +

Re: [CentOS] Authentication Problems

2011-02-16 Thread James Bensley
On 16 February 2011 14:34, ... wrote: > yes, that is what doing an "su - " as *root* will do, which > doesn't tell you much. instead of doing this from a root login, do > it from a regular account (you don't routinely log in as root i hope > - actually it sounds like you do). > > if this works, the

Re: [CentOS] Authentication Problems

2011-02-16 Thread James Bensley
On 16 February 2011 14:50, Jeff wrote: > What does /etc/nsswitch.conf look like? Anything other than "files" > for passwd, shadow and group? If that's OK, I would start comparing > files in /etc/pam.d to a known-good system. Thanks for the info, I will look into the pam.d stuff :) cat /etc/nsswi

Re: [CentOS] Authentication Problems

2011-02-16 Thread James Bensley
Ok, everything is fixed now. I spoke with the VPS providers; The jailed shell was removed from the webdev user (and the webmaster user?) and they reset the password. I logged into ssh as the webdev user to change the password and they told me off for trying and said I must do it through WHM/cPanel

Re: [CentOS] Authentication Problems

2011-02-18 Thread James Bensley
No --James. (This email was sent from a mobile device) ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

[CentOS] Basic Bash Script Question

2011-02-21 Thread James Bensley
I'm stuck trying to work this one out and my Google skills are apparently lacking today. This is a test bash script; #!/bin/bash do something | tee a.log if [ $? -ne 0]; then echo broken fi The problem with this script is $? contains the exit value of the tee command, but I want to check the

Re: [CentOS] Basic Bash Script Question

2011-02-21 Thread James Bensley
On 21 February 2011 11:05, Pascal wrote: > man bash > > search for Pipelines, pipefail and PIPESTATUS. Great, thanks for that, pipefail is exactly what I need :) -- James. http://www.jamesbensley.co.cc/ There are 10 kinds of people in the world; Those who understand Vigesimal, and J others...?

[CentOS] File-system Corruption

2011-04-06 Thread James Bensley
Hi List, I suppose this isn't strictly CentOS but I'm talking about some 5.5 servers so I thought someone else here may have had the same issues; We power on servers at night via IPMI and shut them down the same way for automation. The problem I'm facing is that the servers are shutdown in about

Re: [CentOS] vncserver startup error??

2009-10-07 Thread James Bensley
I have no idea what your issue is but for us vncserver works great. If you are having a lot of difficulties then I would suggest un-installing it and starting again as it works pretty well; i.e. all you have to do is install and configure it like any other program and it works. We didn't have any i

Re: [CentOS] To all of the group

2009-10-22 Thread James Bensley
Wait a minute, didn't someone just try and offer their help to the community; Where in their email did they mention cpanel? 2009/10/22 Christopher Chan > DTS-Corp (Knowledgebase) wrote: > > I am pretty much a newbie at CentOS, and Linux on client side, > > Just in case it is not clear to you. cp

Re: [CentOS] To all of the group

2009-10-22 Thread James Bensley
2009/10/22 Chan Chung Hang Christopher > Sorry, got mixed up. I thought he was talking about what he was doing > for his company. Just kind of wary of people who go: Calling all Hackers > but they actually mean Calling all Crackers Now what are you on about, are you posting to the wrong thread

Re: [CentOS] To all of the group

2009-10-22 Thread James Bensley
Agreed! http://theweekendhaslanded.org/ 2009/10/22 Chan Chung Hang Christopher > James Bensley wrote: > > 2009/10/22 Chan Chung Hang Christopher > > > > > > >> Sorry, got mixed up. I thought he was talking about what he was doing > >> for his c

[CentOS] CentOS Mirrored On RapidShare [Links Here]

2009-11-01 Thread James Bensley
Hey List, Firstly I am sorry for the length of this email and that you are all having too receive it but the point is that this email will now go into the archive and be indexed by Google (hopefully) and thusly, people will be able to find these links through Google. My goal is to mirror CentOS on

[CentOS] RAIDs and JBOD?

2009-11-10 Thread James Bensley
Hey Guys, I have some questions regarding a new home server I am going to build in the hopefully very near future (ASAP, I just need to finish planning everything and this is the penultimate hurdle), I will be creating a software RAID... Lets say I have three drives "knocking" around which are al

Re: [CentOS] RAIDs and JBOD?

2009-11-10 Thread James Bensley
Thanks all for the promptness of your responses and the details you have provided it is greatly appreciated. Since this is a home media server performance isn't imperative and mirroring and RAID 10/0+1 are too expensive so I am going to use my three existing drives of different manufactures as the

Re: [CentOS] OMG! Microsoft patents sudo! Linux and MacOS dead!

2009-11-12 Thread James Bensley
Worked for me, see http://downforeveryoneorjustme.com/ -- Regards, James ;) Ogden Nash - "The trouble with a kitten is that when it grows up, it's always a cat." ___ CentOS mailing list Cen

Re: [CentOS] RAIDs and JBOD?

2009-11-16 Thread James Bensley
Ok, I'm back again... Thanks again to all for more replies and info, all the info of the list members is really appreciated. So I have found this card and wondered if anyone has a second opinion on it (http://www.supermicro.com/products/accessories/addon/AOC-SAT2-MV8.cfm). Seeing as it states on

Re: [CentOS] RAIDs and JBOD?

2009-11-16 Thread James Bensley
Thanks for the speedy replies guys, I had an itch, so I itched it; In the back of my head I couldn't help but think I had miss-read the details about my mobo and that it was PCI-E not PCI-X and I was right, so the previous card is no longer an option although I am not liking the look of it thanks

[CentOS] GGI or Server Based Proxy Recommendations

2009-11-26 Thread James Bensley
Hey List, Can anyone recommend any software like that at http://proxify.co.uk/ for me to install on a server for use as a http proxy? TIA, -- Regards, James ;) ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] GGI or Server Based Proxy Recommendations

2009-11-26 Thread James Bensley
I didn't think you could access squid via a web front end like proxify.co.uk? -- Regards, James ;) Mike Ditka - "If God had wanted man to play soccer, he wouldn't have given us arms." - http://www.brainyquote.com/quotes/authors/m/mike_ditka.html ___ C

Re: [CentOS] GGI or Server Based Proxy Recommendations

2009-11-26 Thread James Bensley
Haven't used webmin in a while, I'll give a go! -- Regards, James ;) Pablo Picasso - "Computers are useless. They can only give you answers." - http://www.brainyquote.com/quotes/authors/p/pablo_picasso.html ___ CentOS mailing list CentOS@centos.org htt

Re: [CentOS] SAMBA vs NFS

2009-11-26 Thread James Bensley
I think the file locking only causes a problem with windows clients because of certain files types such as Access databases (.mdb) wanting to lock the file so that other users don't open the same database and corrupt data, for example. -- Regards, James ;) Charles de Gaulle - "The better I get

[CentOS] Unable to share directory via Samba?

2009-12-01 Thread James Bensley
So I went to System > Administration > Server Settings > Samba and added a folder to share and initially set it to guest access to get things going. I couldn't access this one and only share on this server with guest access from either my Windows laptop (XP Pro SP3) or a Leopard server (10.5.8) s

Re: [CentOS] Unable to share directory via Samba?

2009-12-01 Thread James Bensley
The server is called Mars with one user, Mars! [m...@mars ~]$ testparm Load smb config files from /etc/samba/smb.conf Processing section "[homes]" Processing section "[printers]" Processing section "[hestia]" Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your s

Re: [CentOS] Unable to share directory via Samba?

2009-12-01 Thread James Bensley
This is the repeating entry from my smbd.log from every time I try to mount the share via samba; [2009/12/01 09:32:59, 0] lib/util_sock.c:get_peer_addr(1224) getpeername failed. Error was Transport endpoint is not connected I had read online that this can be caused by samba not making its mind

Re: [CentOS] Unable to share directory via Samba?

2009-12-01 Thread James Bensley
Hmm some progress has been made. I removed the smb.conf file and wrote a new one manually but for some reason it only wants to let me connect as "Guest" and not a real user with some privileges? [global] workgroup = my group server string = Mars netbios name = Mars security = SHARE load printer

Re: [CentOS] Unable to share directory via Samba?

2009-12-01 Thread James Bensley
No I haven't but thanks for having a guess xD -- Regards, James ;) Ogden Nash - "The trouble with a kitten is that when it grows up, it's always a cat." - http://www.brainyquote.com/quotes/authors/o/ogden_nash.html ___ CentOS mailing list CentOS@cento

Re: [CentOS] Migrating to RAID

2009-12-10 Thread James Bensley
You will have to reinstall because if you add two more 500GB drives to make your set up into a three drive horse, you then need to format each drive and synchronise them together creating the new logical RAID volume so no data can be kept on said disks prior to the creation of the RAID. HTH! --

Re: [CentOS] Unable to share directory via Samba?

2009-12-10 Thread James Bensley
Thanks for all the input everyone, Basically I trashed the smb.conf and the folder I wanted to share, restarted the machine, re-wrote the smb.conf (again) and re-made the directory and set permissions etc, restarted the machine and all is well! Thanks all for your input it has helped me write an

Re: [CentOS] .htaccess and ?

2009-12-10 Thread James Bensley
You might have to enable re-writes in you Apache conf? Or did I imagine that??? -- Regards, James ;) Stephen Leacock  - "I detest life-insurance agents: they always argue that I shall some day die, which is not so." ___ CentOS mailing list CentOS@centos

[CentOS] Apache + auth_mod_kerb + Active Directory = SSO

2009-12-17 Thread James Bensley
Hey List, I have been setting up SSO on our Intranet Apache server. All seems well, I think I have just about cracked it but it seems a little rough around the edges; I enabled auth_mod_kerb, and created a test directory in my web root (/secure) and added a directory directive under the httpd.con

Re: [CentOS] [OT] Urgent request

2009-12-17 Thread James Bensley
> The server is running c-sytems software on a sco operating system.  They tell > us we can't pull the hard drive and move it to another pc - something about a > bug causing it to lose data. Pull out the drives, mirror them and then put them back, put the mirroed drives in a spare desktop pc and

[CentOS] mdadm help

2009-12-20 Thread James Bensley
Hey List, So I had a 4 drive software RAID 5 set up consisting of /dev/sdb1, /dev/sdc1, /dev/sdd1 and /dev/sde1. I reinstalled my OS and after the reinstall I made the mistake of re-assembling the array incorrectly by typing "sudo mdadm --assemble /dev/md0 /dev/sdb /dev/sdc /dev/sdd /dev/sde" in a

Re: [CentOS] mdadm help

2009-12-20 Thread James Bensley
Already I have made some progress with this, It would seem I had some how wrote a superblock to the drives hence mdadm picking the drives up as potential raid devices so I used the mdadm option --zero-superblock on each drive and solved that little issue. On to the next problem! -- Regards, Jame

Re: [CentOS] Lost mdadm.conf

2009-12-31 Thread James Bensley
2009/12/31 Luciano Rocha : > On Thu, Dec 31, 2009 at 11:39:25AM -0400, robert mena wrote: >> Hi, >> >> I lost my mdadm.conf (and /proc/mdadm shows nothing useful) and I'd like to >> mount the filesystem again.  So I've booted using rescue but I was wondering >> if I can do a command like this safel

Re: [CentOS] Lost mdadm.conf

2009-12-31 Thread James Bensley
Now you've got your array working give us a fuller picture, how many hard drives have you got, in what configuration, how many arrays, how many partitions, what file systems, output of "mount" command, fstab details etc etc -- Regards, James ;) Jonathan Swift - "May you live every day of your l

[CentOS] Lost mdadm.conf

2009-12-31 Thread James Bensley
-- Forwarded message -- From: robert mena Date: 2009/12/31 Subject: Re: [CentOS] Lost mdadm.conf To: CentOS mailing list each map to a different mdX.   I've been able to mount the /boot but no other. --- So have you got one RAID0 which is partitioned into /boot, /tmp

Re: [CentOS] Lost mdadm.conf

2010-01-01 Thread James Bensley
2010/1/1 Luciano Rocha : > On Thu, Dec 31, 2009 at 04:40:56PM +, Joseph L. Casale wrote: >> >Not all rescue environments have MAKEDEV or have it in $PATH, so this >> >should always work. ;) >> >> Really, on my hp's as well? I don't have any /dev/hdx or /dev/sdx on the >> ones with software ra

Re: [CentOS] 8-15 TB storage: any recommendations?

2010-01-08 Thread James Bensley
A bit OT but you did you ever see http://blog.backblaze.com/2009/09/01/petabytes-on-a-budget-how-to-build-cheap-cloud-storage/ -- Regards, James ;) Pablo Picasso - "Computers are useless. They can only give you answers." - http://www.brainyquote.com/quotes/authors/p/pablo_picasso.html _

Re: [CentOS] error rsyncing large file

2010-01-20 Thread James Bensley
Don't want to sound like a spoil sport but you could scp it over and already be well on your way? -- Regards, James ;) Samuel Goldwyn - "I'm willing to admit that I may not always be right, but I am never wrong." - http://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html

Re: [CentOS] Gmail problem

2010-01-23 Thread James Bensley
I don't know if there is one, but I think the Gmail Drive app for windows simply connects to your mail account and files you store on there are actually attachments to drafts emails (its been a while so I might be wrong). I'm sure from Linux you could script this without to much difficulty? -- Re

Re: [CentOS] Hardisk cloning for centos-5.3

2010-02-15 Thread James Bensley
Clonezilla do a network version that does this, http://clonezilla.org/clonezilla-server-edition/ -- Regards, James ;) Stephen Leacock - "I detest life-insurance agents: they always argue that I shall some day die, which is not so." - http://www.brainyquote.com/quotes/authors/s/stephen_leacock.

[CentOS] Shell Script Pointers?

2009-05-13 Thread James Bensley
Hey Listee's I am trying to write a shell script to sort and compare my blacklist for squidGuard with the nightly updates that come down in a tar ball. It should be rather simple but I'm not to grate at this. The script is to run nightly, it will download the latest blacklist tarball, un tar it an

Re: [CentOS] Shell Script Pointers?

2009-05-13 Thread James Bensley
> if you're already going to the effort of downloading the entire > blacklist every night, why not dump the old database, and just insert > the newly downloaded one? Because we also add our own entries to the current blacklist so we are just adding any new entries from the nightly updates of our b

Re: [CentOS] Shell Script Pointers?

2009-05-14 Thread James Bensley
I have written my script but I wanted to add this on before and after the update to see the difference but all it returns are zeros? Anyone have any idea why? #!/bin/sh f=0 #Folder count d=0 #Domains count (one per line in each file) u=0 #Url count (one per line in each file) t=0 #Total of domain

Re: [CentOS] Shell Script Pointers?

2009-05-14 Thread James Bensley
Update: these lines should be: + $X >                d=`expr $d + 1` and >                u=`expr $u + 1` >        fi > done > James ;) -BEGIN GEEK CODE BLOCK- Version: 3.1 GIT/MU/U dpu s: a--> C++>$ U+> L++> B-> P+> E?> W+++>$ N K W++ O M++>$ V- PS+++ PE++ Y+ PGP t 5 X+ R- tv+ b

Re: [CentOS] Dell 2950 with CentOS 5.3

2009-05-15 Thread James Bensley
> > We run CentOS 5.3 on 2970's and NF500 III's, all were 5.2 but are now 5.3 > and all running ok? > > > -- > -- - > Iain Morris > iain.t.mor...@gmail.com > > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos

[CentOS] [OT] Simple Shell Script (while loop)

2009-06-03 Thread James Bensley
Hey Guys, I can not find the corrent syntax for what I am trying to acheive with a while loop. Having said that I'm not exactly sure what you would call it so I have been googling with no success probably for that reason. I am just working with some sub directories except there is one I don't wan

Re: [CentOS] [OT] Simple Shell Script (while loop)

2009-06-03 Thread James Bensley
Thanks guys the "continue" command was what I was looking for. Also to those who pointed out the lack of quotation marks around the string, they are on my original script but somehow vanished during the copy and paste operation between my shell window and browser...werid?!?! Still If I hadn't of h

[CentOS] System V Init Script

2009-06-03 Thread James Bensley
Hey Listees, I have a question (hopefully quite simple) about the system V init scripts in /etc/init.d. I have an app installed and for some reason it had no system V init script. It has been installed a long while now so I can't quite remember whats going on but basically I remember I wrote the i

Re: [CentOS] System V Init Script

2009-06-03 Thread James Bensley
As you spotted john my killing loop was killing the system V script itself also hence it never starting my_app again, so instead a simple if skips the process ID of the system V script itself so it can continue on to start my_app again: > > I'd think that the pgrep is matching both the proc

[CentOS] Swap priorities with swapon (Is my swap drive working?)

2009-06-05 Thread James Bensley
Hey Listee's I have a CentOS server with 2GB of ram and a swap drive of 4GB; swapon -a shows my swap drive as 4GB with only about 350 bytes in use (which is fine as my server idles with about 350-400MB ram usage so no swap should be in use. However my one and only swap drive had a priority of -1.

Re: [CentOS] Swap priorities with swapon (Is my swap drive working?)

2009-06-05 Thread James Bensley
> It will kick in, regardless of priority. > > But probably someone will come up with a small c program which eats all > available memory :) > > Regards, > > Ralph I would be interested in such a program if anyone has one or a mega bash script that can achive the same? > If your system starts to

Re: [CentOS] OT: looking for a rsync equivalent for Windows platforms

2009-06-06 Thread James Bensley
Hi! As Lucian said, DeltaCopy IS rsync on windows. If you download that it comes with two or three cygwin dll's, an ssh binary and the rsync binary for windows. DeltaCopy is just a visual front end (GUI) some guy made for the windows cygwin port of rsync but I don't like it but it has normal rsync

Re: [CentOS] OT: looking for a rsync equivalent for Windows platforms

2009-06-06 Thread James Bensley
" had a look @ Deltacopy as well, but see that it needs a client & server to run" No, have a look in the folder where you installed it, it is rsync! DeltaCopy is a visual front end someone made for rsync for windows. Look in the folder it IS rsync. James ;) -BEGIN GEEK CODE BLOCK- Vers

Re: [CentOS] script help - '3rd last field'

2009-06-08 Thread James Bensley
Is there anyway you can tell which field it will be in (i.e. to use as a search clause, so "search for the field with X properties"?) Ultimately to get the data in the X'th field you are going to need either awk or sed (they can both easily do this, awk probably easier than sed) You need to work

[CentOS] Crontabs

2009-06-10 Thread James Bensley
Hey list, I have several crontabs set up to run at night and I'm not convinced they are running but of course, I'm not here to see for sure! The crontabs are like the following example; 30 20 * * * sh /home/a_user/nightlyscrips/nightly_script_1 > /home/a_user/nightlyscripts/`date +%d-%m-%Y--%H-%M

Re: [CentOS] Crontabs

2009-06-10 Thread James Bensley
Paul, I think its fair to say, "Yo Da Man!". I saw the note at the end of the crontab man pages when trying to find and answer yet for some reason didn't look at crontab (5) man page, what a fool I have been. This has totally resolved the issue, thanks very much...for pointing out im a fool ;) R

Re: [CentOS] problems accessing: http://apt.sw.be/

2009-06-11 Thread James Bensley
No I get a page headed with: RPMforge RPM repository for Red Hat, RHEL, CentOS and Fedora Is that correct? -BEGIN GEEK CODE BLOCK- Version: 3.1 GIT/MU/U dpu s: a--> C++>$ U+> L++> B-> P+> E?> W+++>$ N K W++ O M++>$ V- PS+++ PE++ Y+ PGP t 5 X+ R- tv+ b+> DI D+++ G+ e(+) h--(++) r++

[CentOS] Shell Script: Simple array usage = bad substitution?

2009-06-19 Thread James Bensley
Hey Guys n Gals; I have some arrays that I can't seem to expand correctly (if that's the correct word?), imagine the following example: #!/bin/bash myArray=("First" "Second" "Third") First=("Monday" "Tuesdays" "Wednesday") Second=("One" "Two" "Three") Third=("A" "B" "C") for ((i=0;i<${#myarr...

Re: [CentOS] raid 1 disks upgrade

2009-07-13 Thread James Bensley
Just my two pence; So just to confirm do you have 3 physical raid 1 arrays you want to merge into 1? Or are these 3 partitions on a single physical raid 1array; If its the later I find the easiest way (providing your hardware supports this) is to set one drive as off line (so you are now in runni

Re: [CentOS] Bash Help

2009-08-17 Thread James Bensley
I can't think of the exact syntax at the minute but something like; if $# => 4 then for i = 1 to ($# - 4) echo "arg number $i is $expr($i)" next fi $# is the number of args passed so just pass the total number of args minus four ($~-4) That syntax is all wrong, but somebody on t

Re: [CentOS] rsync

2009-09-03 Thread James Bensley
Does the script normally when your run it manually with the use of cron? Do you have the correct access permisions to the local directory and the script file? Have you looked in your console log? Try running it without sending the output to /dev/null to see if errors come up? James ;) -BEGIN

Re: [CentOS] OT: Forum or mailing list for Bash-related questions?

2009-09-06 Thread James Bensley
I find that the people at LinuxQuestions are always able to help me if I need some scripting help and the list can't come to my rescue (http://www.linuxquestions.org/) James ;) -- Ogden Nash - "The trouble with a kitten is that when it grows up, it's always a cat." - http://www.brainyquote.com

Re: [CentOS] Segmentation fault

2009-09-18 Thread James Bensley
I am clutching at straws here but would that suggest there is a hardware incompatibility issue, what is you physical set up? -- Pablo Picasso - "Computers are useless. They can only give you answers." - http://www.brainyquote.com/quotes/authors/p/pablo_picasso.html _

[CentOS] Software Raids Questions (I have only ever used hardware?)

2009-09-27 Thread James Bensley
Hey List; I have no experience with software RAIDs; at work we only use hardware RAIDs and I'm looking to implement, probably a RAID 5 set up at home for a media server however I have a few questions; I have three 1TB drives in various places; one is inside a USB caddy, one is inside my PC and in

Re: [CentOS] Software Raids Questions (I have only ever used hardware?)

2009-09-27 Thread James Bensley
2009/9/27 : > you must format those drive to the desired fs after raiding them Those where my initial thoughts, damn it! Hmm, going to have to bring a sand box server home from work, oh the hassle. Thanks for the confirmation though. ... > md (software raid mechanism or watever u wanna call it)

Re: [CentOS] Software Raids Questions (I have only ever used hardware?)

2009-09-28 Thread James Bensley
Hi All, Thanks for all your replies. I understand what I have to do now and have read several tutorials to get a good grasp of everything. All your input has been greatly appreciated. Thank you all. Regards, James ;) -- Jonathan Swift - "May you live every day of your life." - http://www.brai

[CentOS] ext4?

2010-08-07 Thread James Bensley
Listee's... I have a 5.5 box and I have formatted a partition as ext4 however I can't mount it, the mount command is telling me its an unknown file system type. fsck tells me the partition is a clean ext4 partition but I can't mount it. Some reasearch has lead me to believe the problem is that ex

Re: [CentOS] ext4?

2010-08-07 Thread James Bensley
On 7 August 2010 16:57, Laurent Wandrebeck wrote: > Use mount -t ext4dev. Sorry, I forgot to mention; I have reformatted the drive as ext4dev and it still wont mount, unknown file system type again! I verified it was OK with fsck and it says it is a clean ext4dev partition? -- Regards, James.

Re: [CentOS] ext4?

2010-08-07 Thread James Bensley
On 7 August 2010 17:27, Bernard Lheureux wrote: > Did you first "modprobe ext4dev" before trying to mount it ? [nf5...@eros ~]$ modprobe ext4 FATAL: Module ext4 not found. [nf5...@eros ~]$ modprobe ext4dev FATAL: Module ext4dev not found. -- Regards, James. http://www.jamesbensley.co.cc/ Th

Re: [CentOS] ext4?

2010-08-07 Thread James Bensley
On 7 August 2010 17:41, Laurent Wandrebeck wrote: > so a mount -t ext4 should work, as kernel-2.6.18-194.8.1.el5 provides > /lib/modules/2.6.18-194.8.1.el5/kernel/fs/ext4/ext4.ko. This is probably going ot provide the answer (to you atleast, its not so clear to me); `uname -r` tells me I'm on

Re: [CentOS] ext4?

2010-08-07 Thread James Bensley
[nf5...@eros boot]$ sudo cat /boot/grub/menu.lst # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root

Re: [CentOS] ext4?

2010-08-07 Thread James Bensley
On 7 August 2010 19:10, Jerry Franz wrote: > Correction: I forgot that on CentOS you want /boot/grub/grub.conf instead. [nf5...@eros /]$ ls -l /boot/grub/menu.lst lrwxrwxr-- 1 root root 11 Oct 27 2008 /boot/grub/menu.lst -> ./grub.conf Same difference :p -- Regards, James. http://www.jamesbe

Re: [CentOS] ext4?

2010-08-07 Thread James Bensley
On 7 August 2010 19:33, Akemi Yagi > > Please show the output of: > > rpm -qa kernel\* kmod\* | sort > [nf5...@eros /]$ rpm -qa kernel\* kmod\* | sort kernel-2.6.18-128.1.6.el5 kernel-2.6.18-164.10.1.el5 kernel-2.6.18-164.15.1.el5 kernel-2.6.18-194.8.1.el5 kernel-2.6.18-92.el5 kernel-headers-2.6.

Re: [CentOS] ext4?

2010-08-07 Thread James Bensley
On 7 August 2010 19:23, Robert Heller wrote: > sauron.deepsoft.com% rpm -qf /lib/modules/2.6.18-194.8.1.el5 > kernel-2.6.18-194.8.1.el5 > sauron.deepsoft.com% rpm -ql kernel-2.6.18-194.8.1.el5 | grep boot > /boot/.vmlinuz-2.6.18-194.8.1.el5.hmac > /boot/System.map-2.6.18-194.8.1.el5 > /boot/config

Re: [CentOS] ext4?

2010-08-07 Thread James Bensley
On 7 August 2010 19:59, Akemi Yagi wrote: > They are all installed. Are you using RAID by any chance? Your > grub.conf indicates that is from the second drive. /dev/sda1 / (ext3) /dev/sda2 /storage (the ext4 in question, hardware RAID5 3.4TB) /dev/sdb1 /boot (ext3) It seems like grub and/or yum

Re: [CentOS] ext4?

2010-08-07 Thread James Bensley
On 7 August 2010 20:10, Keith Roberts > FWIW, I have installed GRUB to separate boot partition - > not the MBR of the first hard drive. > > Whenever there is a kernel update, I have to mount and > manually edit the /boot/grub/grub.conf file on the boot > partition. Yum does not update it, as it do

Re: [CentOS] ext4?

2010-08-09 Thread James Bensley
Hi Keith, thanks for your detailed reply. I haven't tried this yet.. What I have done is follow this tutorial to build the latest kernel (http://wiki.centos.org/HowTos/Custom_Kernel) which in the end game me an rpm of it for installation however when it came to install the rpm the follow was displ

Re: [CentOS] ext4?

2010-08-09 Thread James Bensley
On 9 August 2010 12:47, ... wrote: >  If you want a production ready, fast, reliable, and > robust file system with years and exabytes of proven history behind it, > install and use XFS. Considering the problems I have been experiencing I had contemplate this however I have never used XFS before a

Re: [CentOS] ext4?

2010-08-09 Thread James Bensley
On 9 August 2010 12:54, James Hogarth wrote: > Unless you have *very* specific circumstances there is no need to roll > your own kernel and in terms of easing support it is preferred to use > the vendor kernel and kmods for any modules not part of it that are > required Agreed, I was just tr

Re: [CentOS] ext4?

2010-08-09 Thread James Bensley
On 9 August 2010 13:00, Robert Heller wrote: > Do the rpm install with --force.  This will forcably re-install the rpms. Yep, this is what I did to fix said issue, now I feel like a fool! >> However none of these files exist in /boot? > > Somehow when you installed the kernels before /boot was

Re: [CentOS] ext4?

2010-08-09 Thread James Bensley
On 9 August 2010 14:03, Lars Hecking wrote: > >> Considering the problems I have been experiencing I had contemplate >> this however I have never used XFS before and thusly would directing >> on ho to install the required kernel modules to allow for XFS use on >> this particular box (if that is in

Re: [CentOS] EXT4 mount issue

2010-10-04 Thread James Bensley
On 4 October 2010 20:07, Steve Brooks wrote: > both are 11T and so I would prefer as much stability as possible, io > performance is not an issue on either device just integrity so I thought > the journal would be default and necessary. > > Any thoughts would be much appreciated. > My two pence w

Re: [CentOS] OT: linux desktop market share more than 1%

2010-10-07 Thread James Bensley
On 7 October 2010 13:05, Rudi Ahlers wrote: > You can register on this site if you use linux on your desktop, to > prove that we have at least more than 1% market share today :-) > > http://www.dudalibre.com/gnulinuxcounter?lang=en I'm not agreeing with this survey, *but*, there are several times

Re: [CentOS] Adding SAMBA users in Centos 5.5

2010-10-22 Thread James Bensley
Dump you smb.conf here, what would probably be easier to resolve :) -- Regards, James. http://www.jamesbensley.co.cc/ There are 10 kinds of people in the world; Those who understand Vigesimal, and J others...? ___ CentOS mailing list CentOS@centos.or

  1   2   >