Re: Setting Linux user
On Wednesday 17 January 2007 17:41, Dave Watts wrote: Failing that, you could conceivably write a shell script to do what you need, and call that through CFEXECUTE. That's an ugly approach in my opinion, though. And have it sudo the copy, for instance. -- Tom Chiverton Helping to administratively syndicate open-source environments This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266852 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Setting Linux user
I am new to running CF on a Linux box - and I know virtually nothing about Linux. I have all of my pages working correctly, but in one instance I am calling on the CFFILE command to move a CSV file from one directory to another. The file is getting copied to the new location, but not deleted from the current location. Apparently the page is running as a user apache and that user doesn't have delete access in that folder. This page is going to be run as a scheduled task. Is there any way that the user name can be set for the page? Short of changing the security in Linux (which apparently is problematic in this case) is there anything I can do here? You can't run specific CF scripts as different users. The CF server runs as a specific user, and that's who'll run the script. Ideally, your best bet would be to simply change the permissions on the folders in question, to allow the user to delete files within those folders. That shouldn't be very difficult, but for security purposes you may need to use different folders that don't contain anything other than the files you're manipulating, and you may want to ensure that those folders aren't available to the web server itself, so that their contents can't be executed through the web server. Failing that, you could conceivably write a shell script to do what you need, and call that through CFEXECUTE. That's an ugly approach in my opinion, though. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266770 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Setting Linux user
Hello K, Unfortunately this is one of the problems with CF: There's no command-line parser for it so you cannot execute it as a different user easily. While I probably can't give the best advice without knowing the details of your situation, you could potentially create a cron job (the Linux equivalent of a scheduled task) that would periodically delete files in a directory that are older then a specific time period. Would a solution like that work for your purposes? Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ Blue Dragon Alliance Member [EMAIL PROTECTED] K Fassman wrote: I am new to running CF on a Linux box - and I know virtually nothing about Linux. I have all of my pages working correctly, but in one instance I am calling on the CFFILE command to move a CSV file from one directory to another. The file is getting copied to the new location, but not deleted from the current location. Apparently the page is running as a user apache and that user doesn't have delete access in that folder. This page is going to be run as a scheduled task. Is there any way that the user name can be set for the page? Short of changing the security in Linux (which apparently is problematic in this case) is there anything I can do here? Any help is greatly appreciated. ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266771 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Setting Linux user
Dave Watts wrote: Failing that, you could conceivably write a shell script to do what you need, and call that through CFEXECUTE. Anything you call using cfexecute will run as the same user CF runs under, i.e. the user apache so that won't help. What you need to do is have the admin write a shell script for you and give the user apache sudo privileges on that script (preverably with the NOPASSWD flag set). Jochem ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266774 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Setting Linux user
That might be a good option. Thanks for both replies! On 1/17/07, Jordan Michaels [EMAIL PROTECTED] wrote: Hello K, Unfortunately this is one of the problems with CF: There's no command-line parser for it so you cannot execute it as a different user easily. While I probably can't give the best advice without knowing the details of your situation, you could potentially create a cron job (the Linux equivalent of a scheduled task) that would periodically delete files in a directory that are older then a specific time period. Would a solution like that work for your purposes? Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ Blue Dragon Alliance Member [EMAIL PROTECTED] K Fassman wrote: I am new to running CF on a Linux box - and I know virtually nothing about Linux. I have all of my pages working correctly, but in one instance I am calling on the CFFILE command to move a CSV file from one directory to another. The file is getting copied to the new location, but not deleted from the current location. Apparently the page is running as a user apache and that user doesn't have delete access in that folder. This page is going to be run as a scheduled task. Is there any way that the user name can be set for the page? Short of changing the security in Linux (which apparently is problematic in this case) is there anything I can do here? Any help is greatly appreciated. ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266775 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Setting Linux user
Failing that, you could conceivably write a shell script to do what you need, and call that through CFEXECUTE. Anything you call using cfexecute will run as the same user CF runs under, i.e. the user apache so that won't help. What you need to do is have the admin write a shell script for you and give the user apache sudo privileges on that script (preverably with the NOPASSWD flag set). I thought that went without saying, but I can see now that it doesn't! Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266777 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Setting Linux user
You can also set permissions on the folder to 777 or change ownership of the folder to the same user CF/Apache runs as. That would allow it to function as is no additional Cron job Eric Haskins Web Systems Developer On 1/17/07, Dave Watts [EMAIL PROTECTED] wrote: Failing that, you could conceivably write a shell script to do what you need, and call that through CFEXECUTE. Anything you call using cfexecute will run as the same user CF runs under, i.e. the user apache so that won't help. What you need to do is have the admin write a shell script for you and give the user apache sudo privileges on that script (preverably with the NOPASSWD flag set). I thought that went without saying, but I can see now that it doesn't! Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266787 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Setting Linux user
As a general rule, I do what Eric suggests. I run CF and Apache under the same user (usually apache) and then make that user the owner of my web root with perms set to 755. Just a practice that I've found works for me. On 1/17/07, Eric Haskins [EMAIL PROTECTED] wrote: You can also set permissions on the folder to 777 or change ownership of the folder to the same user CF/Apache runs as. That would allow it to function as is no additional Cron job Eric Haskins Web Systems Developer ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266795 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Setting Linux user
As a general rule, I do what Eric suggests. I run CF and Apache under the same user (usually apache) and then make that user the owner of my web root with perms set to 755. Just a practice that I've found works for me. The users used by Apache and CF shouldn't be able to change all the contents of your web root (especially executable scripts). That's a big audit flag, in my experience (as well as being an actual vulnerability). Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266797 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Setting Linux user
If you were worried about that you could just give the write permissions on the destination directory only. I never give webuser permission to the whole webroot only the directory it needs to write to. Eric Haskins Web System Developer On 1/17/07, Dave Watts [EMAIL PROTECTED] wrote: As a general rule, I do what Eric suggests. I run CF and Apache under the same user (usually apache) and then make that user the owner of my web root with perms set to 755. Just a practice that I've found works for me. The users used by Apache and CF shouldn't be able to change all the contents of your web root (especially executable scripts). That's a big audit flag, in my experience (as well as being an actual vulnerability). Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266814 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Setting Linux user
Never assume Dave ;-) I have an off topic question. How does one write a script to have subversion automatically update the live directory when someone commits? I found a few scripts, but they don't make sense to me...I hate Linux (my personal mantra hehhe). This is the only part I don't have set up on our dev box. Right now I can just ssh in and do the update, but I would much rather automate the process. Eric -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 January 2007 12:03 To: CF-Talk Subject: RE: Setting Linux user Failing that, you could conceivably write a shell script to do what you need, and call that through CFEXECUTE. Anything you call using cfexecute will run as the same user CF runs under, i.e. the user apache so that won't help. What you need to do is have the admin write a shell script for you and give the user apache sudo privileges on that script (preverably with the NOPASSWD flag set). I thought that went without saying, but I can see now that it doesn't! Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266821 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Setting Linux user
Eric, I haven't used Subversion in awhile we currently use Serena VM with Eclipse Rich Integration. If you send the commands you do to update and how they comit I could write you script. I hate windows :) but need it to function Eric Haskins Web Systems Developer On 1/17/07, Eric Roberts [EMAIL PROTECTED] wrote: Never assume Dave ;-) I have an off topic question. How does one write a script to have subversion automatically update the live directory when someone commits? I found a few scripts, but they don't make sense to me...I hate Linux (my personal mantra hehhe). This is the only part I don't have set up on our dev box. Right now I can just ssh in and do the update, but I would much rather automate the process. Eric -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 January 2007 12:03 To: CF-Talk Subject: RE: Setting Linux user Failing that, you could conceivably write a shell script to do what you need, and call that through CFEXECUTE. Anything you call using cfexecute will run as the same user CF runs under, i.e. the user apache so that won't help. What you need to do is have the admin write a shell script for you and give the user apache sudo privileges on that script (preverably with the NOPASSWD flag set). I thought that went without saying, but I can see now that it doesn't! Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266824 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Setting Linux user
You can also set group permissions and make the CF/apache user part of that group. Eric -Original Message- From: Eric Haskins [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 January 2007 12:48 To: CF-Talk Subject: Re: Setting Linux user You can also set permissions on the folder to 777 or change ownership of the folder to the same user CF/Apache runs as. That would allow it to function as is no additional Cron job Eric Haskins Web Systems Developer On 1/17/07, Dave Watts [EMAIL PROTECTED] wrote: Failing that, you could conceivably write a shell script to do what you need, and call that through CFEXECUTE. Anything you call using cfexecute will run as the same user CF runs under, i.e. the user apache so that won't help. What you need to do is have the admin write a shell script for you and give the user apache sudo privileges on that script (preverably with the NOPASSWD flag set). I thought that went without saying, but I can see now that it doesn't! Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266825 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Setting Linux user
The command line in Linux would be svn update path to working copy I am not sure what the path would be offhand from the directory...so if you can leave that as a variable or just annotate where I need to insert it, that would be cool. Thanks for the help! It's been almost a decade since I have messed with Linux and that was just administering it...never set one up from scratch before. It took me 4 weeks and several reinstalls to get it right, hence my mantra hehehe Eric -Original Message- From: Eric Haskins [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 January 2007 15:50 To: CF-Talk Subject: Re: Setting Linux user Eric, I haven't used Subversion in awhile we currently use Serena VM with Eclipse Rich Integration. If you send the commands you do to update and how they comit I could write you script. I hate windows :) but need it to function Eric Haskins Web Systems Developer On 1/17/07, Eric Roberts [EMAIL PROTECTED] wrote: Never assume Dave ;-) I have an off topic question. How does one write a script to have subversion automatically update the live directory when someone commits? I found a few scripts, but they don't make sense to me...I hate Linux (my personal mantra hehhe). This is the only part I don't have set up on our dev box. Right now I can just ssh in and do the update, but I would much rather automate the process. Eric -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 January 2007 12:03 To: CF-Talk Subject: RE: Setting Linux user Failing that, you could conceivably write a shell script to do what you need, and call that through CFEXECUTE. Anything you call using cfexecute will run as the same user CF runs under, i.e. the user apache so that won't help. What you need to do is have the admin write a shell script for you and give the user apache sudo privileges on that script (preverably with the NOPASSWD flag set). I thought that went without saying, but I can see now that it doesn't! Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266827 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Setting Linux user
Eric, Can you tell me what command the Developers use to commit changes?? Where I work I am surrounded by Windows stuff all of the linux servers we brought in were due to me. I hope to be rid of all Outside serving IIS boxes by year end. It is alot easier for me to do Hardware load balancing with Apache and mod_proxy and not having the overhead of a GUI. Eric Haskins Web Systems Developer On 1/17/07, Eric Roberts [EMAIL PROTECTED] wrote: The command line in Linux would be svn update path to working copy I am not sure what the path would be offhand from the directory...so if you can leave that as a variable or just annotate where I need to insert it, that would be cool. Thanks for the help! It's been almost a decade since I have messed with Linux and that was just administering it...never set one up from scratch before. It took me 4 weeks and several reinstalls to get it right, hence my mantra hehehe Eric -Original Message- From: Eric Haskins [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 January 2007 15:50 To: CF-Talk Subject: Re: Setting Linux user Eric, I haven't used Subversion in awhile we currently use Serena VM with Eclipse Rich Integration. If you send the commands you do to update and how they comit I could write you script. I hate windows :) but need it to function Eric Haskins Web Systems Developer On 1/17/07, Eric Roberts [EMAIL PROTECTED] wrote: Never assume Dave ;-) I have an off topic question. How does one write a script to have subversion automatically update the live directory when someone commits? I found a few scripts, but they don't make sense to me...I hate Linux (my personal mantra hehhe). This is the only part I don't have set up on our dev box. Right now I can just ssh in and do the update, but I would much rather automate the process. Eric -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 January 2007 12:03 To: CF-Talk Subject: RE: Setting Linux user Failing that, you could conceivably write a shell script to do what you need, and call that through CFEXECUTE. Anything you call using cfexecute will run as the same user CF runs under, i.e. the user apache so that won't help. What you need to do is have the admin write a shell script for you and give the user apache sudo privileges on that script (preverably with the NOPASSWD flag set). I thought that went without saying, but I can see now that it doesn't! Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266840 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Setting Linux user
Sorry about that hehehe...the command is svn commit... This is mostly done via a gui plugin called TortioseSVN...but I am sure that is getting executed. I don't think that is necessary as svn does have a post commit section where scripts can be placed. Basically what I need is something that can get executed that can trigger the update. I know it can be done in python, as one of my past contracts, that is how they did it. Have you ever tried Cluster Cats? There are also hardware balancers...which in my opinion are better than software balancers, that work just fine, regardless of OS or web server. I do have to admit, I do like how Apache is set up for version 2...I haven't played with 2.2.3 yet. It is definitely better than what it used to be 8 years ago. IIS is still easier to set up. If I would have went with a windows box...I would have been done in less that a day. Eric -Original Message- From: Eric Haskins [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 January 2007 19:47 To: CF-Talk Subject: Re: Setting Linux user Eric, Can you tell me what command the Developers use to commit changes?? Where I work I am surrounded by Windows stuff all of the linux servers we brought in were due to me. I hope to be rid of all Outside serving IIS boxes by year end. It is alot easier for me to do Hardware load balancing with Apache and mod_proxy and not having the overhead of a GUI. Eric Haskins Web Systems Developer On 1/17/07, Eric Roberts [EMAIL PROTECTED] wrote: The command line in Linux would be svn update path to working copy I am not sure what the path would be offhand from the directory...so if you can leave that as a variable or just annotate where I need to insert it, that would be cool. Thanks for the help! It's been almost a decade since I have messed with Linux and that was just administering it...never set one up from scratch before. It took me 4 weeks and several reinstalls to get it right, hence my mantra hehehe Eric -Original Message- From: Eric Haskins [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 January 2007 15:50 To: CF-Talk Subject: Re: Setting Linux user Eric, I haven't used Subversion in awhile we currently use Serena VM with Eclipse Rich Integration. If you send the commands you do to update and how they comit I could write you script. I hate windows :) but need it to function Eric Haskins Web Systems Developer On 1/17/07, Eric Roberts [EMAIL PROTECTED] wrote: Never assume Dave ;-) I have an off topic question. How does one write a script to have subversion automatically update the live directory when someone commits? I found a few scripts, but they don't make sense to me...I hate Linux (my personal mantra hehhe). This is the only part I don't have set up on our dev box. Right now I can just ssh in and do the update, but I would much rather automate the process. Eric -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 January 2007 12:03 To: CF-Talk Subject: RE: Setting Linux user Failing that, you could conceivably write a shell script to do what you need, and call that through CFEXECUTE. Anything you call using cfexecute will run as the same user CF runs under, i.e. the user apache so that won't help. What you need to do is have the admin write a shell script for you and give the user apache sudo privileges on that script (preverably with the NOPASSWD flag set). I thought that went without saying, but I can see now that it doesn't! Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266843 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Setting Linux user
We run Radware WSD's along with CT100 SSL/Compression Accelerators. Love them :) When you do it though you need to stop clustercats Eric On 1/17/07, Eric Roberts [EMAIL PROTECTED] wrote: Sorry about that hehehe...the command is svn commit... This is mostly done via a gui plugin called TortioseSVN...but I am sure that is getting executed. I don't think that is necessary as svn does have a post commit section where scripts can be placed. Basically what I need is something that can get executed that can trigger the update. I know it can be done in python, as one of my past contracts, that is how they did it. Have you ever tried Cluster Cats? There are also hardware balancers...which in my opinion are better than software balancers, that work just fine, regardless of OS or web server. I do have to admit, I do like how Apache is set up for version 2...I haven't played with 2.2.3 yet. It is definitely better than what it used to be 8 years ago. IIS is still easier to set up. If I would have went with a windows box...I would have been done in less that a day. Eric -Original Message- From: Eric Haskins [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 January 2007 19:47 To: CF-Talk Subject: Re: Setting Linux user Eric, Can you tell me what command the Developers use to commit changes?? Where I work I am surrounded by Windows stuff all of the linux servers we brought in were due to me. I hope to be rid of all Outside serving IIS boxes by year end. It is alot easier for me to do Hardware load balancing with Apache and mod_proxy and not having the overhead of a GUI. Eric Haskins Web Systems Developer On 1/17/07, Eric Roberts [EMAIL PROTECTED] wrote: The command line in Linux would be svn update path to working copy I am not sure what the path would be offhand from the directory...so if you can leave that as a variable or just annotate where I need to insert it, that would be cool. Thanks for the help! It's been almost a decade since I have messed with Linux and that was just administering it...never set one up from scratch before. It took me 4 weeks and several reinstalls to get it right, hence my mantra hehehe Eric -Original Message- From: Eric Haskins [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 January 2007 15:50 To: CF-Talk Subject: Re: Setting Linux user Eric, I haven't used Subversion in awhile we currently use Serena VM with Eclipse Rich Integration. If you send the commands you do to update and how they comit I could write you script. I hate windows :) but need it to function Eric Haskins Web Systems Developer On 1/17/07, Eric Roberts [EMAIL PROTECTED] wrote: Never assume Dave ;-) I have an off topic question. How does one write a script to have subversion automatically update the live directory when someone commits? I found a few scripts, but they don't make sense to me...I hate Linux (my personal mantra hehhe). This is the only part I don't have set up on our dev box. Right now I can just ssh in and do the update, but I would much rather automate the process. Eric -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 January 2007 12:03 To: CF-Talk Subject: RE: Setting Linux user Failing that, you could conceivably write a shell script to do what you need, and call that through CFEXECUTE. Anything you call using cfexecute will run as the same user CF runs under, i.e. the user apache so that won't help. What you need to do is have the admin write a shell script for you and give the user apache sudo privileges on that script (preverably with the NOPASSWD flag set). I thought that went without saying, but I can see now that it doesn't! Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266848 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4