Re: [CentOS] Correct permissions for uploading files
From: Todd Cary > directory insufficient permission... > I am not sure what to set for Owner and Group for the "uploads" > directory nor the permissions (it is now set to 775). Give permission to the apache user...? JD ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Correct permissions for uploading files
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/07/2010 04:10, Todd Cary wrote: > I am trying to implement PHP upload functionality for an application. > When I attempt an upload in my test environment, I get the following error: > > An error has occurred: receiving directory insufficient > permission... The upload form is reloading > > The destination file being moved by move_uploaded_file is > > /home/httpd//test/upload/uploads/1278898550-_DSC1159.jpg > > The initial file name is suppose to be > > /tmp/phpR1lmmc > > I am not sure what to set for Owner and Group for the "uploads" > directory nor the permissions (it is now set to 775). Assuming your apache process trying to move the file is running under uid apache and gid apache then setting Group to apache for the uploads dir should be sufficient (Leave permissions at 775) - -- Regards, Markus -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkw648gACgkQYoWFBIJE9eVppwCgj2lDeqFqEci/J1KIk5+YTLdX iYQAniZIMyrZPVfxjCoydkejZl4IpHZC =CMHq -END PGP SIGNATURE- ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] is it safe to resize root, on an LVM system, online?
On Sun, Jul 11, 2010 at 8:39 PM, Digimer wrote: > On 10-07-11 02:27 PM, Rudi Ahlers wrote: >> Hi, >> >> One of our servers has a too small root partition on LVM and needs to >> be resized. Can / be safely increased online, without a reboot? >> >> [r...@zaxen02 ~]# lvscan >> ACTIVE '/dev/LVM01/root' [4.00 GB] inherit >> ACTIVE '/dev/LVM01/home' [20.00 GB] inherit >> ACTIVE '/dev/LVM01/var' [4.00 GB] inherit >> ACTIVE '/dev/LVM01/swap' [4.00 GB] inherit >> ACTIVE '/dev/LVM01/log' [1.00 GB] inherit >> ACTIVE '/dev/LVM01/webmin' [2.00 GB] inherit >> ACTIVE '/dev/LVM01/xenstored' [2.00 GB] inherit >> ACTIVE '/dev/LVM01/xensave' [2.00 GB] inherit >> ACTIVE '/dev/LVM01/opennation-net_img' [10.00 GB] inherit >> ACTIVE '/dev/LVM01/opennation-net_swap' [1.00 GB] inherit >> ACTIVE '/dev/LVM01/pluto_img' [100.00 GB] inherit >> ACTIVE '/dev/LVM01/pluto_swap' [1.00 GB] inherit >> ACTIVE '/dev/LVM01/tmp' [5.00 GB] inherit >> [r...@zaxen02 ~]# pvscan >> PV /dev/md1 VG LVM01 lvm2 [232.69 GB / 76.69 GB free] >> Total: 1 [232.69 GB] / in use: 1 [232.69 GB] / in no VG: 0 [0 ] >> [r...@zaxen02 ~]# > > It depends mainly on the filesystem you are using. The ext[3|4] > filesystems are fine. You'll have to extend the LV, and then separately > extend the filesystem itself. > > Please test this on a non-production server before trying it on your > live server, just to be safe and to be sure that you've got your syntax > right. > > -- > Digimer > E-Mail: li...@alteeve.com > AN!Whitepapers: http://alteeve.com > Node Assassin: http://nodeassassin.org > ___ The server runs on CentOS 5.5 with ext3 (don't trust ext4 yet). I don't have a test server setup for this, but it's a good idea to setup one with a similar partition layout and try it there first :) I just wanted to know whether it's safe for root to be resized without a reboot or not. -- Kind Regards Rudi Ahlers SoftDux Website: http://www.SoftDux.com Technical Blog: http://Blog.SoftDux.com Office: 087 805 9573 Cell: 082 554 7532 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] is it safe to resize root, on an LVM system, online?
On 12 July 2010 11:12, Rudi Ahlers wrote: >>> One of our servers has a too small root partition on LVM and needs to >>> be resized. Can / be safely increased online, without a reboot? Yes. If you use system-config-lvm and using ext3, it will let you do it all within a nice GUI as well. -- Hakan (m1fcj) - http://www.hititgunesi.org ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Correct permissions for uploading files
On 12 July 2010 10:43, Markus Falb wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 12/07/2010 04:10, Todd Cary wrote: >> I am trying to implement PHP upload functionality for an application. >> When I attempt an upload in my test environment, I get the following error: >> >> An error has occurred: receiving directory insufficient >> permission... The upload form is reloading >> >> The destination file being moved by move_uploaded_file is >> >> /home/httpd//test/upload/uploads/1278898550-_DSC1159.jpg >> >> The initial file name is suppose to be >> >> /tmp/phpR1lmmc >> >> I am not sure what to set for Owner and Group for the "uploads" >> directory nor the permissions (it is now set to 775). > > Assuming your apache process trying to move the file is running under > uid apache and gid apache then setting Group to apache for the uploads > dir should be sufficient (Leave permissions at 775) > > - -- > Regards, Markus > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.10 (Darwin) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAkw648gACgkQYoWFBIJE9eVppwCgj2lDeqFqEci/J1KIk5+YTLdX > iYQAniZIMyrZPVfxjCoydkejZl4IpHZC > =CMHq > -END PGP SIGNATURE- > > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > SELinux enabled? It may not have permission to read/write in the context of the directory as well... ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] is it safe to resize root, on an LVM system, online?
On Mon, Jul 12, 2010 at 12:17 PM, Hakan Koseoglu wrote: > On 12 July 2010 11:12, Rudi Ahlers wrote: One of our servers has a too small root partition on LVM and needs to be resized. Can / be safely increased online, without a reboot? > Yes. If you use system-config-lvm and using ext3, it will let you do > it all within a nice GUI as well. > -- > Hakan (m1fcj) - http://www.hititgunesi.org > ___ It's a console-only server, i.e. no X installed. So I'll have to setup a test server to see if I can do it without breaking abything -- Kind Regards Rudi Ahlers SoftDux Website: http://www.SoftDux.com Technical Blog: http://Blog.SoftDux.com Office: 087 805 9573 Cell: 082 554 7532 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] "yum update": When is new header data downloaded? (Trying to set up custom repository...)
I'm trying to set up a custom rpm respository for some in-house software, and configure a number of CentOS 5 clients so that they may install and update the software in question from the location in question. I think I've mostly figured out how to do this - I've successfully installed software on one of the clients via "yum install " after adding an URL of the form ftp://myserver/pub/ to the list of repositories, and uploading 1. A directory containing the packages. 2. A "repodata" directory generated by createrepo. to the appropriate server location. But then I wanted to see if could publish an upgrade, too, so I did, on the server-side: 1. Updated the release number in my rpm spec files and rebuilt. 2. Put the rpms on the right location. 3. createrepo -q --update And on the client yum update Problem is, this did nothing besides printing the message: No Packages marked for Update So I thought the repository hadn't been properly updated, but then I tried (still on the client): rm -rf /var/cache/yum/ yum update And, hey presto, the package was upgraded to the new version. So, it seems like I managed to correctly update the repodata and all, but originally, yum concluded that it didn't need to download a new version, but could use the one cached earlier. instead. Does anyone have any idea why this happened? How exactly does yum decide when to download new headers and when to reuse cached data? Thanks, - Toralf This e-mail, including any attachments and response string, may contain proprietary information which is confidential and may be legally privileged. It is for the intended recipient only. If you are not the intended recipient or transmission error has misdirected this e-mail, please notify the author by return e-mail and delete this message and any attachment immediately. If you are not the intended recipient you must not use, disclose, distribute, forward, copy, print or rely on this e-mail in any way except as permitted by the author. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] is it safe to resize root, on an LVM system, online?
Rudi Ahlers wrote: > It's a console-only server, i.e. no X installed. So I'll have to setup > a test server to see if I can do it without breaking abything > There should be no issues doing it live. # lvextend -L+1G /dev/myvg/myvol # resize2fs /dev/myvg/myvol Regards, Max ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] "yum update": When is new header data downloaded? (Trying to set up custom repository...)
Toralf Lund wrote: > I'm trying to set up a custom rpm respository for some in-house > software, and configure a number of CentOS 5 clients so that they may > install and update the software in question from the location in > question. I think I've mostly figured out how to do this - I've > successfully installed software on one of the clients via "yum install > " after adding an URL of the form > ftp://myserver/pub/ to the list of repositories, and uploading [ > ... ] > > > So, it seems like I managed to correctly update the repodata and all, > but originally, yum concluded that it didn't need to download a new > version, but could use the one cached earlier. That should be "a new version *of the repodata*". - Toralf > instead. > > Does anyone have any idea why this happened? How exactly does yum decide > when to download new headers and when to reuse cached data? > > Thanks, > > - Toralf > > This e-mail, including any attachments and response string, may contain proprietary information which is confidential and may be legally privileged. It is for the intended recipient only. If you are not the intended recipient or transmission error has misdirected this e-mail, please notify the author by return e-mail and delete this message and any attachment immediately. If you are not the intended recipient you must not use, disclose, distribute, forward, copy, print or rely on this e-mail in any way except as permitted by the author. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] "yum update": When is new header data downloaded? (Trying to set up custom repository...)
On 07/12/2010 04:58 AM, Toralf Lund wrote: > > So, it seems like I managed to correctly update the repodata and all, > but originally, yum concluded that it didn't need to download a new > version, but could use the one cached earlier. instead. > > Does anyone have any idea why this happened? How exactly does yum decide > when to download new headers and when to reuse cached data? > You probably want the /etc/yum.conf file. There should be a line in it right now that reads 'metadata_expire=1h'. -- Benjamin Franz ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] is it safe to resize root, on an LVM system, online?
On Mon, Jul 12, 2010 at 2:15 PM, Max Hetrick wrote: > Rudi Ahlers wrote: > >> It's a console-only server, i.e. no X installed. So I'll have to setup >> a test server to see if I can do it without breaking abything >> > > There should be no issues doing it live. > > # lvextend -L+1G /dev/myvg/myvol > # resize2fs /dev/myvg/myvol > > Regards, > Max > ___ Thanx Max, it seems like the upgrade has gone through well: [r...@zaxen02 ~]# lvscan ACTIVE'/dev/LVM01/root' [4.00 GB] inherit ACTIVE'/dev/LVM01/home' [20.00 GB] inherit ACTIVE'/dev/LVM01/var' [4.00 GB] inherit ACTIVE'/dev/LVM01/swap' [4.00 GB] inherit ACTIVE'/dev/LVM01/log' [1.00 GB] inherit ACTIVE'/dev/LVM01/webmin' [2.00 GB] inherit ACTIVE'/dev/LVM01/xenstored' [2.00 GB] inherit ACTIVE'/dev/LVM01/xensave' [2.00 GB] inherit ACTIVE'/dev/LVM01/opennation-net_img' [10.00 GB] inherit ACTIVE'/dev/LVM01/opennation-net_swap' [1.00 GB] inherit ACTIVE'/dev/LVM01/pluto_img' [100.00 GB] inherit ACTIVE'/dev/LVM01/pluto_swap' [1.00 GB] inherit ACTIVE'/dev/LVM01/tmp' [5.00 GB] inherit [r...@zaxen02 ~]# lvextend -L+5G /dev/LVM01/root Extending logical volume root to 9.00 GB Logical volume root successfully resized [r...@zaxen02 ~]# resize2fs /dev/LVM01/root resize2fs 1.39 (29-May-2006) Filesystem at /dev/LVM01/root is mounted on /; on-line resizing required Performing an on-line resize of /dev/LVM01/root to 2359296 (4k) blocks. The filesystem on /dev/LVM01/root is now 2359296 blocks long. [r...@zaxen02 ~]# lvscan ACTIVE'/dev/LVM01/root' [9.00 GB] inherit ACTIVE'/dev/LVM01/home' [20.00 GB] inherit ACTIVE'/dev/LVM01/var' [4.00 GB] inherit ACTIVE'/dev/LVM01/swap' [4.00 GB] inherit ACTIVE'/dev/LVM01/log' [1.00 GB] inherit ACTIVE'/dev/LVM01/webmin' [2.00 GB] inherit ACTIVE'/dev/LVM01/xenstored' [2.00 GB] inherit ACTIVE'/dev/LVM01/xensave' [2.00 GB] inherit ACTIVE'/dev/LVM01/opennation-net_img' [10.00 GB] inherit ACTIVE'/dev/LVM01/opennation-net_swap' [1.00 GB] inherit ACTIVE'/dev/LVM01/pluto_img' [100.00 GB] inherit ACTIVE'/dev/LVM01/pluto_swap' [1.00 GB] inherit ACTIVE'/dev/LVM01/tmp' [5.00 GB] inherit [r...@zaxen02 ~]# df -h FilesystemSize Used Avail Use% Mounted on /dev/mapper/LVM01-root 8.8G 3.0G 5.4G 36% / /dev/mapper/LVM01-home 20G 6.7G 12G 37% /home /dev/md0 190M 79M 102M 44% /boot /dev/mapper/LVM01-var 3.9G 1.1G 2.7G 29% /var tmpfs 3.8G 0 3.8G 0% /dev/shm /dev/mapper/LVM01-log 1008M 84M 873M 9% /var/log none 3.8G 160K 3.8G 1% /var/lib/xenstored /dev/mapper/LVM01-tmp 5.0G 2.2G 2.6G 46% /tmp -- Kind Regards Rudi Ahlers SoftDux Website: http://www.SoftDux.com Technical Blog: http://Blog.SoftDux.com Office: 087 805 9573 Cell: 082 554 7532 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] "yum update": When is new header data downloaded? (Trying to set up custom repository...)
On 12 July 2010 13:29, Benjamin Franz wrote: > On 07/12/2010 04:58 AM, Toralf Lund wrote: >> >> So, it seems like I managed to correctly update the repodata and all, >> but originally, yum concluded that it didn't need to download a new >> version, but could use the one cached earlier. instead. >> >> Does anyone have any idea why this happened? How exactly does yum decide >> when to download new headers and when to reuse cached data? >> > > You probably want the /etc/yum.conf file. There should be a line in it > right now that reads 'metadata_expire=1h'. > > -- > Benjamin Franz > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > Rather than deleting that directory as a whole you would probably be better served by doing a yum clean metadata instead... ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] "yum update": When is new header data downloaded? (Trying to set up custom repository...)
Benjamin Franz wrote: > On 07/12/2010 04:58 AM, Toralf Lund wrote: > >> So, it seems like I managed to correctly update the repodata and all, >> but originally, yum concluded that it didn't need to download a new >> version, but could use the one cached earlier. instead. >> >> Does anyone have any idea why this happened? How exactly does yum decide >> when to download new headers and when to reuse cached data? >> >> > > You probably want the /etc/yum.conf file. There should be a line in it > right now that reads 'metadata_expire=1h'. > Ah. Never noticed this setting before... So only the download time of the data matters, and not the server-side update time? It nearly makes sense then, although the original install was done more than 1h before the update. But maybe the headers were downloaded again after that via yum-updatesd or similar? A delay of 1h from the repository update to the client can upgrade may not actually be a problem, as long as we know about it... Thanks, - Toralf This e-mail, including any attachments and response string, may contain proprietary information which is confidential and may be legally privileged. It is for the intended recipient only. If you are not the intended recipient or transmission error has misdirected this e-mail, please notify the author by return e-mail and delete this message and any attachment immediately. If you are not the intended recipient you must not use, disclose, distribute, forward, copy, print or rely on this e-mail in any way except as permitted by the author. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] "yum update": When is new header data downloaded? (Trying to set up custom repository...)
James Hogarth wrote: > On 12 July 2010 13:29, Benjamin Franz wrote: > >> On 07/12/2010 04:58 AM, Toralf Lund wrote: >> >>> So, it seems like I managed to correctly update the repodata and all, >>> but originally, yum concluded that it didn't need to download a new >>> version, but could use the one cached earlier. instead. >>> >>> Does anyone have any idea why this happened? How exactly does yum decide >>> when to download new headers and when to reuse cached data? >>> >>> >> You probably want the /etc/yum.conf file. There should be a line in it >> right now that reads 'metadata_expire=1h'. >> >> >> > > Rather than deleting that directory as a whole you would probably be > better served by doing a yum clean metadata instead... > I suppose so. I though I might try removing only data for the repository in question rather than clearing the entire cache when testing this, though... - Toralf This e-mail, including any attachments and response string, may contain proprietary information which is confidential and may be legally privileged. It is for the intended recipient only. If you are not the intended recipient or transmission error has misdirected this e-mail, please notify the author by return e-mail and delete this message and any attachment immediately. If you are not the intended recipient you must not use, disclose, distribute, forward, copy, print or rely on this e-mail in any way except as permitted by the author. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] free
The man page does not say much, but does this mean I have only 396668 used by programs (used-cached)? Or shoul I be reading the 2nd line? [r...@ten-212 ~]# free total used free sharedbuffers cached Mem: 791884454788202440024 0 1116845082152 -/+ buffers/cache: 2849847633860 Swap: 99614642049961260 -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron PD Inc. http://www.pdinc.us - - Principal Consultant 10 West 24th Street #100- - +1 (443) 269-1555 x333Baltimore, Maryland 21218 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is copyright PD Inc, subject to license 20080407P00. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Smallest install?
> > I have a 500Mb ATA Flash drive in my machine. If I deselect > > everything at install time (CentOS 5.0 - just for testing) it still > > requires 524Mb. Is there any way of doing an even smaller install? > > Run a pre 5 series install and it is straightforward to hold size down > > There are lower thresholds one cannot go below and still stay > with current updates. My article on 'tiny centos' provides > 'slimming scripts' to trim away coherent sets to taste while > still satisfying dependencies > http://www.owlriver.com/tips/tiny-centos/ Thank you! Since I also want to make a tiny flash-based centos, I'll look into this! > Just because one is familiar with > hammers does not mean one should be shaving cats with one That depends, in part, on how much one dislikes cats. Shaving pissed-off tomcats is best done with welding gloves and apron, and a hammer. *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. www.Hubbell.com - Hubbell Incorporated** ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Correct permissions for uploading files
Jim - Many thanks! That took care of the problem. Todd On 7/12/2010 3:53 AM, James Hogarth wrote: > On 12 July 2010 10:43, Markus Falb wrote: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> On 12/07/2010 04:10, Todd Cary wrote: >> >>> I am trying to implement PHP upload functionality for an application. >>> When I attempt an upload in my test environment, I get the following error: >>> >>> An error has occurred: receiving directory insufficient >>> permission... The upload form is reloading >>> >>> The destination file being moved by move_uploaded_file is >>> >>> /home/httpd//test/upload/uploads/1278898550-_DSC1159.jpg >>> >>> The initial file name is suppose to be >>> >>> /tmp/phpR1lmmc >>> >>> I am not sure what to set for Owner and Group for the "uploads" >>> directory nor the permissions (it is now set to 775). >>> >> Assuming your apache process trying to move the file is running under >> uid apache and gid apache then setting Group to apache for the uploads >> dir should be sufficient (Leave permissions at 775) >> >> - -- >> Regards, Markus >> -BEGIN PGP SIGNATURE- >> Version: GnuPG v1.4.10 (Darwin) >> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ >> >> iEYEARECAAYFAkw648gACgkQYoWFBIJE9eVppwCgj2lDeqFqEci/J1KIk5+YTLdX >> iYQAniZIMyrZPVfxjCoydkejZl4IpHZC >> =CMHq >> -END PGP SIGNATURE- >> >> ___ >> CentOS mailing list >> CentOS@centos.org >> http://lists.centos.org/mailman/listinfo/centos >> >> > SELinux enabled? It may not have permission to read/write in the > context of the directory as well... > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > > > -- Ariste Software Petaluma, CA 94952 http://www.aristesoftware.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] free
On Mon, Jul 12, 2010 at 10:15:06AM -0400, Jason Pyeron wrote: > The man page does not say much, but does this mean I have only 396668 used by > programs (used-cached)? > > Or shoul I be reading the 2nd line? Yes, you should be reading the second line. > [r...@ten-212 ~]# free > total used free sharedbuffers cached > Mem: 791884454788202440024 0 1116845082152 > -/+ buffers/cache: 2849847633860 > Swap: 99614642049961260 This first line includes all files that are being cached in memory (for faster reading if needed later, for example). That memory will be freed up if needed. The second line doesn't include that cache, so is a better indicator of actual memory use. (And on that first line, "cached" is already part of "used", so your free memory counting the cache is 2440024; it's just provided for informational purposes.) --keith -- kkel...@wombat.san-francisco.ca.us pgpBPjCB9WA8m.pgp Description: PGP signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Smallest install?
Brunner, Brian T. wrote: > >> > I have a 500Mb ATA Flash drive in my machine. If I deselect >> > everything at install time (CentOS 5.0 - just for testing) it still >> > requires 524Mb. Is there any way of doing an even smaller install? >> >> Run a pre 5 series install and it is straightforward to hold size down >> >> There are lower thresholds one cannot go below and still stay >> with current updates. My article on 'tiny centos' provides >> 'slimming scripts' to trim away coherent sets to taste while >> still satisfying dependencies >> http://www.owlriver.com/tips/tiny-centos/ > > Thank you! Since I also want to make a tiny flash-based centos, I'll > look into this! Timny, flash-based? I recently bought an 8GB USB key for a netbook distro instal, and we have two here at work for some of our rackmounts that have no DVD reader. > >> Just because one is familiar with >> hammers does not mean one should be shaving cats with one > > That depends, in part, on how much one dislikes cats. > > Shaving pissed-off tomcats is best done with welding gloves and apron, > and a hammer. Um, that may not work, he says, thinking of his friend in the US northwet with a full-sized cougar.* ObDiscllosure: cat lover; likes dogs ok, otherwise I'd suggest grooming your dog with a hammer. mark ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Samba and file permissions
A problem that has plagued me for a long time (finally decided to get some expert help) is setting the owner/group on directories/files I create with samba. Here is my situation: On my Linux/Apache I have a user, smith. The /home/smith directory is owned by smith and is part of the group, todd (me) with permissions 775. This works fine until I create via samba a directory in smith e.g. /home/smith/test. The directory is owned by todd and smith cannot create a file in it. What have I missed and how do I fix it? Todd P.S. My admin expertise is just moderate since my Linux server just runs and runs without much administration needed. -- Ariste Software Petaluma, CA 94952 http://www.aristesoftware.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] "yum update": When is new header data downloaded? (Trying to set up custom repository...)
Indeed in my case I usually do something akin to yum --disablerepo="*" --enablerepo="myrepo" clean metadata yum -y upgrade --disablerepo="*" --enablerepo="myrepo" mypackage when updating custom rpms (or RPMs in a specific spacewalk channel) across systems. On 12 July 2010 15:12, Toralf Lund wrote: > James Hogarth wrote: >> On 12 July 2010 13:29, Benjamin Franz wrote: >> >>> On 07/12/2010 04:58 AM, Toralf Lund wrote: >>> So, it seems like I managed to correctly update the repodata and all, but originally, yum concluded that it didn't need to download a new version, but could use the one cached earlier. instead. Does anyone have any idea why this happened? How exactly does yum decide when to download new headers and when to reuse cached data? >>> You probably want the /etc/yum.conf file. There should be a line in it >>> right now that reads 'metadata_expire=1h'. >>> >>> >>> >> >> Rather than deleting that directory as a whole you would probably be >> better served by doing a yum clean metadata instead... >> > I suppose so. I though I might try removing only data for the repository > in question rather than clearing the entire cache when testing this, > though... > > - Toralf > > > This e-mail, including any attachments and response string, may contain > proprietary information which is confidential and may be legally privileged. > It is for the intended recipient only. If you are not the intended recipient > or transmission error has misdirected this e-mail, please notify the author > by return e-mail and delete this message and any attachment immediately. If > you are not the intended recipient you must not use, disclose, distribute, > forward, copy, print or rely on this e-mail in any way except as permitted by > the author. > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba and file permissions
Todd Cary wrote: A problem that has plagued me for a long time (finally decided to get some expert help) is setting the owner/group on directories/files I create with samba. Here is my situation: On my Linux/Apache I have a user, smith. The /home/smith directory is owned by smith and is part of the group, todd (me) with permissions 775. This works fine until I create via samba a directory in smith e.g. /home/smith/test. The directory is owned by todd and smith cannot create a file in it. What have I missed and how do I fix it? Todd P.S. My admin expertise is just moderate since my Linux server just runs and runs without much administration needed. Todd, You did not provide a copy of your smb.conf you may want to check directory mask = 0775 create mask = 0664 in the global section or in the particular [homes] section as you see fit. another way is to use the sticky bit under unix file permissions ie chmod g+s /home/smith HTH <>___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba and file permissions
Rob - I assume this is where I need to list all users and set the permissions as specified. Also, I do not find an entry for "directory mask". # The following two entries demonstrate how to share a directory so that two # users can place files there that will be owned by the specific users. In this # setup, the directory should be writable by both users and should have the # sticky bit set on it to prevent abuse. Obviously this could be extended to # as many users as required. ;[myshare] ; comment = Mary's and Fred's stuff ; path = /usr/somewhere/shared ; valid users = mary fred ; public = no ; writable = yes ; printable = no ; create mask = 0765 Todd On 7/12/2010 8:01 AM, Rob Kampen wrote: Todd Cary wrote: A problem that has plagued me for a long time (finally decided to get some expert help) is setting the owner/group on directories/files I create with samba. Here is my situation: On my Linux/Apache I have a user, smith. The /home/smith directory is owned by smith and is part of the group, todd (me) with permissions 775. This works fine until I create via samba a directory in smith e.g. /home/smith/test. The directory is owned by todd and smith cannot create a file in it. What have I missed and how do I fix it? Todd P.S. My admin expertise is just moderate since my Linux server just runs and runs without much administration needed. Todd, You did not provide a copy of your smb.conf you may want to check directory mask = 0775 create mask = 0664 in the global section or in the particular [homes] section as you see fit. another way is to use the sticky bit under unix file permissions ie chmod g+s /home/smith HTH ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos -- Ariste Software Petaluma, CA 94952 http://www.aristesoftware.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba and file permissions
On 07/12/2010 05:33 PM, Todd Cary wrote: > Also, I do not find an entry for "directory mask". You could add one :-) Mogens -- Mogens Kjaer, m...@lemo.dk http://www.lemo.dk ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba and file permissions
On 7/12/2010 11:33 AM, Todd Cary wrote: > Rob - > > I assume this is where I need to list all users and set the > permissions as specified. Also, I do not find an entry for "directory > mask". > > # The following two entries demonstrate how to share a directory so > that two > # users can place files there that will be owned by the specific > users. In this > # setup, the directory should be writable by both users and should > have the > # sticky bit set on it to prevent abuse. Obviously this could be > extended to > # as many users as required. > ;[myshare] > ; comment = Mary's and Fred's stuff > ; path = /usr/somewhere/shared > ; valid users = mary fred > ; public = no > ; writable = yes > ; printable = no > ; create mask = 0765 The samples do not list every possible option -- just the common ones. There is lots of good configuration info in the man page. Here is a web version: http://samba.org/samba/docs/man/manpages-3/smb.conf.5.html -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba and file permissions
Many thanks! Todd On 7/12/2010 8:44 AM, Bowie Bailey wrote: > On 7/12/2010 11:33 AM, Todd Cary wrote: > >> Rob - >> >> I assume this is where I need to list all users and set the >> permissions as specified. Also, I do not find an entry for "directory >> mask". >> >> # The following two entries demonstrate how to share a directory so >> that two >> # users can place files there that will be owned by the specific >> users. In this >> # setup, the directory should be writable by both users and should >> have the >> # sticky bit set on it to prevent abuse. Obviously this could be >> extended to >> # as many users as required. >> ;[myshare] >> ; comment = Mary's and Fred's stuff >> ; path = /usr/somewhere/shared >> ; valid users = mary fred >> ; public = no >> ; writable = yes >> ; printable = no >> ; create mask = 0765 >> > The samples do not list every possible option -- just the common ones. > There is lots of good configuration info in the man page. Here is a web > version: > > http://samba.org/samba/docs/man/manpages-3/smb.conf.5.html > > -- Ariste Software Petaluma, CA 94952 http://www.aristesoftware.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Project Management Solutions
I need to implement a solution and not having ever used anything but MS Project I would be grateful for a reco on something good. The only hope would be that its web based but I am open to anything! Thanks! jlc ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Project Management Solutions
Joseph L. Casale wrote: I need to implement a solution and not having ever used anything but MS Project I would be grateful for a reco on something good. The only hope would be that its web based but I am open to anything! Gnome has planner - http://live.gnome.org/Planner I have it loaded but so far unused on my machine HTH Thanks! jlc ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos <>___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Project Management Solutions
On Mon, Jul 12, 2010 at 9:37 PM, Joseph L. Casale wrote: > I need to implement a solution and not having ever used anything but > MS Project I would be grateful for a reco on something good. The only > hope would be that its web based but I am open to anything! I have been using Planner[1] for many years without a problem. It should do everything you want and it comes std with CentOS[2]. Cheers Didi [1] http://live.gnome.org/Planner [2] $yum info planner or $yum install planner -- Hoffmann Geerd-Dietger http://contact.ribalba.de ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Project Management Solutions
Do you mean something that is group based, that you want to run on a centos server, or something to run on a desktop for just yourself, because there is a bit of a distinction. --- Kind Regards, Mr Gabriel (bberry mail) -Original Message- From: "Joseph L. Casale" Sender: Date: Mon, 12 Jul 2010 20:37:16 To: 'CentOS mailing list' Reply-To: "CentOS mailing list" Subject: [CentOS] Project Management Solutions I need to implement a solution and not having ever used anything but MS Project I would be grateful for a reco on something good. The only hope would be that its web based but I am open to anything! Thanks! jlc ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Project Management Solutions
>Do you mean something that is group based, that you want to run on a centos >server, >or something to run on a desktop for just yourself, because there is a bit of >a distinction. Group based, something I can put behind apache on a CentOS box but either way, so long as its group based I can work around whatever exists. Just keen a reco to start with something solid. Thanks! jlc ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Project Management Solutions
Then google something called Todoyu. I'll leave the rest as an exercise for the readers to find out more. *gosh, this is a first, a recommendation from in the ... * :) --- Kind Regards, Mr Gabriel (bberry mail) -Original Message- From: "Joseph L. Casale" Sender: Date: Mon, 12 Jul 2010 20:52:11 To: 'CentOS mailing list' Reply-To: "CentOS mailing list" Subject: Re: [CentOS] Project Management Solutions >Do you mean something that is group based, that you want to run on a centos >server, >or something to run on a desktop for just yourself, because there is a bit of >a distinction. Group based, something I can put behind apache on a CentOS box but either way, so long as its group based I can work around whatever exists. Just keen a reco to start with something solid. Thanks! jlc ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] is it safe to resize root, on an LVM system, online?
On 07/12/2010 05:15 AM, Max Hetrick wrote: > There should be no issues doing it live. > > # lvextend -L+1G /dev/myvg/myvol > # resize2fs /dev/myvg/myvol > Though I'm late to the party, I'd like to note that "fsadm" can be used as well: fsadm -e -y resize /dev/myvg/myvol 4G ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Project Management Solutions
On 7/12/2010 3:37 PM, Joseph L. Casale wrote: > I need to implement a solution and not having ever used anything but > MS Project I would be grateful for a reco on something good. The only > hope would be that its web based but I am open to anything! > It depends on what you are really trying to do. If you want to do timelines and Gantt charts for management views, planner is probably good, but if you want more low-level, direct access to something like software coding you'd want to glue together a version control system and bug/feature tracker combination like subversion and trac or git and redmine where you can control both the project itself, the discussion directing its changes/development, and follow the status of completion. -- Les Mikesell lesmikes...@gmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] is it safe to resize root, on an LVM system, online?
On Mon, Jul 12, 2010 at 01:56:57PM -0700, Gordon Messmer wrote: > On 07/12/2010 05:15 AM, Max Hetrick wrote: > > There should be no issues doing it live. > > > > # lvextend -L+1G /dev/myvg/myvol > > # resize2fs /dev/myvg/myvol > > > > Though I'm late to the party, I'd like to note that "fsadm" can be used > as well: > > fsadm -e -y resize /dev/myvg/myvol 4G If I'm reading the man page correctly, -e will umount the filesystem before resizing, which is not what the OP wants. (It might work by leaving out -e.) --keith -- kkel...@wombat.san-francisco.ca.us pgpyrjCyZqYAq.pgp Description: PGP signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Project Management Solutions
- "Joseph L. Casale" wrote: > I need to implement a solution and not having ever used anything but > MS Project I would be grateful for a reco on something good. The only > hope would be that its web based but I am open to anything! > > Thanks! > jlc I've found dotProject [1] to work nicely. It's a standard LAMP type web application and works very well on CentOS. The features are quite extensible. [1] http://www.dotproject.net/ --Tim ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Project Management Solutions
>It depends on what you are really trying to do. If you want to do >timelines and Gantt charts for management views, planner is probably >good, but if you want more low-level, direct access to something like >software coding you'd want to glue together a version control system and >bug/feature tracker combination like subversion and trac or git and >redmine where you can control both the project itself, the discussion >directing its changes/development, and follow the status of completion. Nah, this will be for mold builders:) Planner sounds good, the website's a mess though, old and broken links:/ ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Project Management Solutions
Joseph L. Casale wrote, On 07/12/2010 04:52 PM: >> Do you mean something that is group based, that you want to run on a centos >> server, >> or something to run on a desktop for just yourself, because there is a bit >> of a distinction. > > Group based, something I can put behind apache on a CentOS box but either > way, so > long as its group based I can work around whatever exists. Just keen a reco to > start with something solid. > > Thanks! > jlc I have not used it this way, but planner has the option of connecting it to a Postgresql database. see planner -> Help -> Configuring a Planner database Used in a non Group way, I have found Planner to be an adequate replacement for Project. it looks like there have been some SQL fixes since the version included with CentOS 5.X http://live.gnome.org/Planner -- Todd Denniston Crane Division, Naval Surface Warfare Center (NSWC Crane) Harnessing the Power of Technology for the Warfighter ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Project Management Solutions
On 7/12/2010 4:14 PM, Joseph L. Casale wrote: >> It depends on what you are really trying to do. If you want to do >> timelines and Gantt charts for management views, planner is probably >> good, but if you want more low-level, direct access to something like >> software coding you'd want to glue together a version control system and >> bug/feature tracker combination like subversion and trac or git and >> redmine where you can control both the project itself, the discussion >> directing its changes/development, and follow the status of completion. > > Nah, this will be for mold builders:) They don't store designs on-line that would benefit from version control? Most systems have features that are most helpful with text files where they can show meaningful diffs between versions but they do work even with binary files and can still show histories with comments given for each commit - and they provide a reasonable transport for a group to access and update copies. -- Les Mikesell lesmikes...@gmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Project Management Solutions
On 07/12/2010 09:37 PM, Joseph L. Casale wrote: > I need to implement a solution and not having ever used anything but > MS Project I would be grateful for a reco on something good. The only > hope would be that its web based but I am open to anything! > > Thanks! > jlc Try dotProject[1] which is a LAMP app, there is a demo[2] too [1] http://www.dotproject.net/ [2] Here is a comparison of many software: http://en.wikipedia.org/wiki/Comparison_of_project_management_software Regards -- Athmane Madjoudj ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] is it safe to resize root, on an LVM system, online?
On 07/12/2010 02:07 PM, Keith Keller wrote: > > If I'm reading the man page correctly, -e will umount the filesystem > before resizing, which is not what the OP wants. (It might work by > leaving out -e.) > Yeah, my bad. Don't use -e. ;) You can't umount /. I'm not sure if fsadm would go ahead since unmount isn't required (you only need to unmount an extX filesystem to shrink it), or if the tool would exit and tell the user not to use -e. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Setting apache's maxclients higher than 256 in CentOS
Hi, I could not find any reference if the version of apache compiled for centos 5.x has support for more than 256 clients in apache's maxclients. If that is not the case how can I recompile the package with such support? Regards. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Setting apache's maxclients higher than 256 in CentOS
On 13/07/10 13:14, robert mena wrote: > I could not find any reference if the version of apache compiled for centos > 5.x has support for more than 256 clients in apache's maxclients. I think 256 is the _default_ not the maximum. >From the Apache httpd 2.2 docs For non-threaded servers (i.e., prefork), MaxClients translates into the maximum number of child processes that will be launched to serve requests. The default value is 256; to increase it, you must also raise ServerLimit. The Centos httpd does not seem to be compiled with anything that would restrict that. Others may know better [r...@test ~]# cat /etc/redhat-release CentOS release 5.5 (Final) [r...@test ~]# [r...@test ~]# httpd -V Server version: Apache/2.2.3 Server built: Apr 4 2010 17:18:37 Server's Module Magic Number: 20051115:3 Server loaded: APR 1.2.7, APR-Util 1.2.7 Compiled using: APR 1.2.7, APR-Util 1.2.7 Architecture: 64-bit Server MPM: Prefork threaded: no forked: yes (variable process count) Server compiled with -D APACHE_MPM_DIR="server/mpm/prefork" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D DYNAMIC_MODULE_LIMIT=128 -D HTTPD_ROOT="/etc/httpd" -D SUEXEC_BIN="/usr/sbin/suexec" -D DEFAULT_PIDLOG="run/httpd.pid" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_LOCKFILE="logs/accept.lock" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="conf/mime.types" -D SERVER_CONFIG_FILE="conf/httpd.conf" [r...@test ~]# Kal ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos