[ilugd] Running commands from FTP Protocol
Hi all, Does anybody have any idea how to go about running system commands through FTP protocol ? What I want to achieve is while using FTP I want to run my PERL script lying on the server in my user's home dir and get some return values from it. Any pointers people. -- Arindam Dey The mind is not a vessel to be filled but a fire to be kindled. ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] Partition corrupted
hi, just do #fdisk -l (it will show u all the partition like..in your case it may be diferent. /dev/hda1 * 119152586 83 Linux /dev/hda220 784 6144862+ 83 Linux /dev/hda3 785 911 1020127+ 82 Linux swap now, #e2fsck /dev/hda1 #e2fsck /dev/hda2 if it ask for fix then press y Regards Narender On 31 Jan 2005 11:50:34 -, rahul agarwal [EMAIL PROTECTED] wrote: Hello... My system do not boot and says that linux partition is corrupted... Asks for the administrator password to fix it... When I enters the password it shows the root user prompt and asks us to fix it Suggest what to do Regards Rahul ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/ ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
[ilugd] Re: Running commands from FTP Protocol
At 2005-02-01 13:40:54 +0530, [EMAIL PROTECTED] wrote: Does anybody have any idea how to go about running system commands through FTP protocol ? Ask Google about ftp site exec. -- ams ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] Linux as router (Gateway Server) [revisited]
hi navneet, Squid is more http proxy than ftp. But still you will be able to get download. It is able to use GET but not put. Actually which i percieve thhat u r trying to do ftp at windows machine. If this is the case then please upgrade your explorer to IE6. Earlier versions of explorer have bug. Actually IE do not allow Passive Mode. and you can also try in your squid.conf acl ftp_protocol proto FTP always_direct allow ftp_protocol In my case it works, hope that works for you also. Regards, Narender On 31 Jan 2005 15:48:30 -, Navneet Choudhary [EMAIL PROTECTED] wrote: Many many thanks to all of you for devoting you valuable by reading replying to my mail(query). Quick recaps and updates: 1.i am still using RedHat Linux 9 #uname -a Linux agni.leo.com 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux 2.Having: RTL8139 on board + RTL 8029 plugged in(external label is of SMC ?). #lspci -v 3:06.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8029(AS) Subsystem: Standard Microsystems Corp [SMC] EZ-Card (SMC1208) Flags: medium devsel, IRQ 5 I/O ports at cc00 [size=32] Expansion ROM at c000 [disabled] [size=16K] 03:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10) Subsystem: Unknown device 1849:8139 Flags: bus master, medium devsel, latency 32, IRQ 3 I/O ports at c800 [size=256] Memory at dfdfff00 (32-bit, non-prefetchable) [size=256] Capabilities: [50] Power Management version 2 NOTE: should I use different NIC , that use different modules ? 3. iptables v1.2.7a 4.Now I am port redirecting i.e http/80 squid-cache/3128 adding my current iptables rules 5.users can browse Internet, but can't able to access FTP sites? Please refer below for ftp error logs/X'fer log 6.What I am trying to : a. This Linux system should act as gateway 9router) between my LAN WAN.[Working] b. Act as proxy server trough Squid url filtering by using SquidGuard. [Working] c. Act as firewall Allowed traffic http/https,POP3/SMTP,FTP SonicMQ. Please help in configuring this system [EMAIL PROTECTED] root]# insmod ip_conntrack_ftp Using /lib/modules/2.4.20-8/kernel/net/ipv4/netfilter/ip_conntrack_ftp.o [root@ leo root]# lsmod Module Size Used byNot tainted ip_conntrack_ftp5296 0 (unused) autofs 13268 0 (autoclean) (unused) iptable_filter 2412 0 (autoclean) (unused) ne2k-pci7232 1 83908508 0 [ne2k-pci] 8139too18088 1 mii 3976 0 [8139too] ipt_REDIRECT1368 1 (autoclean) iptable_nat21720 1 (autoclean) [ipt_REDIRECT] ip_conntrack 26976 2 (autoclean) [ip_conntrack_ftp ipt_REDIRECT ipt able_nat] iptable_mangle 2776 0 (autoclean) (unused) ip_tables 15096 6 [iptable_filter ipt_REDIRECT iptable_nat iptab le_mangle] microcode 4668 0 (autoclean) keybdev 2944 0 (unused) mousedev5492 0 (unused) hid22148 0 (unused) input 5856 0 [keybdev mousedev hid] usb-uhci 26348 0 (unused) ehci-hcd 19976 0 (unused) usbcore78784 1 [hid usb-uhci ehci-hcd] ext3 70784 1 jbd51892 1 [ext3] Please refer belows log file for details: ##FTP LOG STARTS## SYST Not connected Host type (I): Automatic detect WINSOCK.DLL: WinSock 2.0 WS_FTP32 4.04, Copyright © 1992-1996 Ipswitch, Inc. All rights reserved. - - connecting to X.X.X.X... Connected to X.X.X.X port 21 220 ProFTPD 1.2.4 Server (ftpserver) [X.X.X.X] USER crpovsat 331 Password required for data PASS xx 230 User crpovsat logged in. Host type (I): UNIX (standard) PWD 257 /leo/ftp is current directory. PORT 192,168,0,234,11,12 500 Illegal PORT command. DoDirList returned 0 #IPTABLES RULES STARTS HERE# # Generated by iptables-save v1.2.7a on Mon Jan 31 18:08:44 2005 *filter :INPUT ACCEPT [3142:390380] :FORWARD ACCEPT [129:8201] :OUTPUT ACCEPT [2368:283021] COMMIT # Completed on Mon Jan 31 18:08:44 2005 # Generated by iptables-save v1.2.7a on Mon Jan 31 18:08:44 2005 *nat :PREROUTING ACCEPT [42124:6973903] :POSTROUTING ACCEPT [3981:238915] :OUTPUT ACCEPT [3981:238915] -A PREROUTING -s 192.168.0.0/255.255.0.0 -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128 -A POSTROUTING -s 192.168.0.0/255.255.0.0 -o eth1 -j SNAT --to-source 172.21.0.132 COMMIT # Completed on Mon Jan 31 18:08:44 2005 # Generated by iptables-save v1.2.7a on Mon Jan 31 18:08:44 2005 *mangle :PREROUTING ACCEPT [91110:21827250] :INPUT ACCEPT
Re: [ilugd] [COMMERCIAL] Requirement at Data Armor- Linux Administrator
nothing ??? On Wed, 26 Jan 2005 Sumit Malhotra wrote : ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/ ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
[ilugd] Capture sound from sound card
Hi all, I'm trying to capture sound from my sound card using C/C++. How can i do that? Any pointers/libraries... Thanks -- regards, makuchaku --- http://makuchaku.blogspot.com #gnutech [at] nl.chatjunkies.org --- Linux... Life... Freedom... ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] Capture sound from sound card
--- Mayank Jain [EMAIL PROTECTED] wrote: Hi all, I'm trying to capture sound from my sound card using C/C++. How can i do that? Any pointers/libraries... Look at code base of audacity, if you want to seriously learn art of capturing sound through soundcard. Regards VK = Hug the REALITY ;-) Disclamer The facts expressed here belong to everybody, the opinions to me. The distinction is yours to draw... __ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
[ilugd] (fwd) [SECURITY] [ GLSA 200502-01 ] FireHOL: Insecure temporary file creation
[Please upgrade if you use FireHOL on any distribution -- Raju] This is an RFC 1153 digest. (1 message) -- Mime-Version: 1.0 Content-Type: multipart/mixed; boundary1623573007== Message-ID: [EMAIL PROTECTED] From: Matthias Geerdsen [EMAIL PROTECTED] Sender: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED], bugtraq@securityfocus.com, full-disclosure@lists.netsys.com Subject: [Full-Disclosure] [ GLSA 200502-01 ] FireHOL: Insecure temporary file creation Date: Tue, 1 Feb 2005 21:08:21 +0100 --===1623573007== Content-Type: multipart/signed; micalg=pgp-sha1; protocol=application/pgp-signature; boundary=xHFwDpU9dbj6ez1V Content-Disposition: inline --xHFwDpU9dbj6ez1V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gentoo Linux Security Advisory GLSA 200502-01 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://security.gentoo.org/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Severity: Normal Title: FireHOL: Insecure temporary file creation Date: February 01, 2005 Bugs: #79330 ID: 200502-01 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Synopsis FireHOL is vulnerable to symlink attacks, potentially allowing a local user to overwrite arbitrary files. Background == FireHOL is an iptables rules generator. Affected packages = --- Package / Vulnerable / Unaffected --- 1 net-firewall/firehol1.224 = 1.224 Description === FireHOL insecurely creates temporary files with predictable names. Impact == A local attacker could create malicious symbolic links to arbitrary system files. When FireHOL is executed, this could lead to these files being overwritten with the rights of the user launching FireHOL, usually the root user. Workaround == There is no known workaround at this time. Resolution == All FireHOL users should upgrade to the latest version: # emerge --sync # emerge --ask --oneshot --verbose =net-firewall/firehol-1.224 References == [ 1 ] FireHOL CVS log http://cvs.sourceforge.net/viewcvs.py/firehol/firehol/firehol.sh Availability This GLSA and any updates to it are available for viewing at the Gentoo Security Website: http://security.gentoo.org/glsa/glsa-200502-01.xml Concerns? = Security is a primary focus of Gentoo Linux and ensuring the confidentiality and security of our users machines is of utmost importance to us. Any security concerns should be addressed to [EMAIL PROTECTED] or alternatively, you may file a bug at http://bugs.gentoo.org. License === Copyright 2005 Gentoo Foundation, Inc; referenced text belongs to its owner(s). The contents of this document are licensed under the Creative Commons - Attribution / Share Alike license. http://creativecommons.org/licenses/by-sa/2.0 --xHFwDpU9dbj6ez1V Content-Type: application/pgp-signature Content-Disposition: inline -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFB/+G1Gc/RGrFqUYMRAshFAJ40tv9yA7n9B8mLWPSoUZdb/16xeACdG2fk 83ZXZmr4PSs4+xyxq4fcUEY= =ksse -END PGP SIGNATURE- --xHFwDpU9dbj6ez1V-- --===1623573007== Content-Type: text/plain; charset=us-ascii MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___ Full-Disclosure - We believe in it. Charter: http://lists.netsys.com/full-disclosure-charter.html --===1623573007==-- -- End of this Digest ** -- Raj Mathur[EMAIL PROTECTED] http://kandalaya.org/ GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F It is the mind that moves ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] Events, jobs, etc on linux-india.org
Raj Mathur wrote: Pankaj Just a tip, it will be really cool if you can add fwds Pankaj like http://linux-india.org/jobs /events etc. Only for Pankaj these *categories*. Pankaj It will be easy to remember/type and pass around. Ah, here we have a volunteer who also just happens to be an ace Perl coder! Thanks, Pankaj -- go to it and make a Gizmo for Metadot. As much as I like to display my ace ninja monkey coding skillz. There is already mod_rewrite that can do it pretty easily. RewriteRule ^jobs\.html$ http://linux-india.org/index.pl?id=2200isa=Categoryop=show It demans upon a few minutes of the system admins time however. :) Cheers! Pankaj -- Fiction is obliged to stick to possibilities, truth isn't. ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
[ilugd] volunteering and speaking procedure for linux-delhi workshop at linux asia
Hi, I have been kind of out of circuit, for a while. But today I have been able to finalize on coming to delhi. I was wondering what is the procedure for volunteering and speaking in linux-delhi workshop at linux-asia. Sorry for sleeping over, while this might have been discussed. Following are the topics, I can prepare and talk about. Performance tools for gcc toolchain specifically for c and c++ FreeBSD perfomance tuning g++ and STL localizing you desktop. Following things, I can volunteer for ... Downloading and burning some images and bring, that might be required to be distributed manning the stall regards Supreet ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
[ilugd] OT - Thunderbird-1.0 rpm
Dear All, This is my experience that i would like to share with all, in case it could help someone. I tried to install thunderbird-1.0 on my system(RedHat 9), i started with tar file but then it was accessible to the root user only, even i tried making link as [EMAIL PROTECTED] root]# cd /usr/local [EMAIL PROTECTED] local]# tar -xvzf /tmp/thunderbird-1_0/thunderbird-1.0.tar.gz [EMAIL PROTECTED] local]# cd thunderbird [EMAIL PROTECTED] thunderbird]# ln -sf /usr/local/thunderbird/thunderbird /usr/bin/ now, i switched as normal user and tried to execute thunderbird [EMAIL PROTECTED] thunderbird]# su - bimal [EMAIL PROTECTED] bimal]$ thunderbird Xlib: connection to :0.0 refused by server Xlib: No protocol specified (thunderbird-bin:9100): Gtk-WARNING **: cannot open display: [EMAIL PROTECTED] bimal]$ i could have overcome this too as [EMAIL PROTECTED] thunderbird]# xhost +localhost but that's not the solution!!( i think..., you know this is 'X' and security!!), so again i tried to search the net and came accross an excellent site(tutorial) http://fedoranews.org/tchung/thunderbird/ by Mr.Thomas Chung, i tried it as per his suggestions but it seems that he missed a point and hence i did all these as a root user, while here i have also given a solution as how to buid the same package without root, ofcourse to install rpm package you need to be the root user!! here is what and how i have done all this... NOTE:- -- 1) all my packages are in /tmp directory so i am refering as of it. 2) packages used are thunderbird-1.0.tar.gz thunderbird.png thunderbird.desktop thunderbird.spec one can had thunderbird.png, thunderbird.desktop, thunderbird.spec files from http://fedoranews.org/tchung/thunderbird/ by Mr.Thomas Chung 3) buid on RedHat 9 PART - I - AS A ROOT - here i have taken an example of creating this rpm package as superuser root so you need to login as root, on a terminal do as... [EMAIL PROTECTED] temp]# vi thunderbird.spec and changed Release : 0.FC1 to Release : 0.rh9 so that it will remind me of RedHat 9 package though if you don't do this still no probs as in this case you will get a package named as thunderbird-1.0-0.FC1.i386.rpm instead of thunderbird-1.0-0.rh9.i386.rpm, while as far as i know there is no much difference between RH9 and FC1, almost all the packages for FC1 gets installed on RH9 too!!, well here i goes... [EMAIL PROTECTED] temp]# cp thunderbird-1.0.tar.gz /usr/src/redhat/SOURCES/ [EMAIL PROTECTED] temp]# cp thunderbird.png /usr/src/redhat/SOURCES/ [EMAIL PROTECTED] temp]# cp thunderbird.desktop /usr/src/redhat/SOURCES/ [EMAIL PROTECTED] temp]# cp thunderbird.spec /usr/src/redhat/SPECS/ [EMAIL PROTECTED] temp]# rpmbuild -ba /usr/src/redhat/SPECS/thunderbird.spec Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.58027 + umask 022 + cd /usr/src/redhat/BUILD + LANG=C + export LANG + rm -rf /var/tmp/thunderbird-1.0-buildroot + cd /usr/src/redhat/BUILD + rm -rf thunderbird-1.0 + /bin/mkdir -p thunderbird-1.0 + cd thunderbird-1.0 + /usr/bin/gzip -dc /usr/src/redhat/SOURCES/thunderbird-1.0.tar.gz + tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' ++ /usr/bin/id -u + '[' 0 = 0 ']' + /bin/chown -Rhf root . ++ /usr/bin/id -u + '[' 0 = 0 ']' + /bin/chgrp -Rhf root . + /bin/chmod -Rf a+rX,g-w,o-w . + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.7808 + umask 022 + cd /usr/src/redhat/BUILD + cd thunderbird-1.0 + LANG=C + export LANG + mkdir -p /var/tmp/thunderbird-1.0-buildroot/usr/lib + cp -a thunderbird /var/tmp/thunderbird-1.0-buildroot/usr/lib + mkdir -p /var/tmp/thunderbird-1.0-buildroot/usr/share/applications /var/tmp/thunderbird-1.0-buildroot/usr/share/pixmaps + cp -a /usr/src/redhat/SOURCES/thunderbird.desktop /var/tmp/thunderbird-1.0-buildroot/usr/share/applications + cp -a /usr/src/redhat/SOURCES/thunderbird.png /var/tmp/thunderbird-1.0-buildroot/usr/share/pixmaps + mkdir -p /var/tmp/thunderbird-1.0-buildroot/usr/bin + ln -s /usr/lib/thunderbird/thunderbird /var/tmp/thunderbird-1.0-buildroot/usr/bin/thunderbird + ln -s /usr/lib/thunderbird/thunderbird-bin /var/tmp/thunderbird-1.0-buildroot/usr/bin/thunderbird-bin + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip /usr/bin/strip + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump Processing files: thunderbird-1.0-0.rh9 Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/thunderbird-1.0-buildroot Wrote: /usr/src/redhat/SRPMS/thunderbird-1.0-0.rh9.src.rpm Wrote: /usr/src/redhat/RPMS/i386/thunderbird-1.0-0.rh9.i386.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.61716 + umask 022 + cd /usr/src/redhat/BUILD + cd thunderbird-1.0 + rm -rf /var/tmp/thunderbird-1.0-buildroot + exit 0 [EMAIL PROTECTED] temp]# so this will create a rpm package in /usr/src/redhat/RPMS/i386/ directory while src.rpm in /usr/src/redhat/SRPMS/ directory. PART - II - as a
[ilugd] RAM information
Hi, I've a Compaq laptop with 256mb RAM (266mhz). I'm planning to add more RAM into it. Can I add another 512mb (266mgz) RAM from some other vendor, say kingston or samsung ?? Will a combination of 512 and 256 make conflicts ??? Regards, rrs ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/