General :: Parsing Err Or Invalid $END - Correct User Use Of Invalid Characters
Feb 10, 2011
Trying simply to insert into table. Have succeeded in doing this but now want to correct user use of invalid characters. If I'm understanding correctly, Real-escape-string seems to correct these, so I've been trying to figure out how to use it. A short, test code version gives me a syntax error at INSERT VALUES, which--because it still has the single quotes in the text--tells me the real-escape-string didn't work. The code below gives me a parseing error with invalid $END at </body>.
Insert Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' VALUES (UTC_TIMESTAMP,'What's happen' bra?')' at line 1 Parse error: syntax error, unexpected $end in /home/powere15/public_html/DB/exercises_insert_record.php on line 94
<html><head><title>Exercise Catalog Insert Record</title></head>
<body>
<?
/* Change db and connect values if using online */
[Code]....
I installed Debian 5.03 Lenny successfully on my machine. I got this error during boot: ACPI : invalid PBLK length [5]. After that the Operating System boots properly and starts normally. What does this error statement mean? Is it safe to work with this installation despite this error?
I'm trying to install PPTP following this guide http://www.dotcomunderground.com/blogs/2010/04/10/poptop-pptp-centos5-installation-setup/but when I enter the command yum --enablerepo=poptop-stable install pptpd
i traying to install php memcache module and alot of other things but evrytime i tray to use yum i got this error $Loading "fastestmirror" plugin Options Error: Error parsing '1enabled=1': invalid boolean value i have centos 5 server 64bit is there anyone now what this error and how to fix it
I have a script in which it searches the password file for a username based on the user's input. Is there a way I can take the bad input and keep it in a variable. (one that keeps adding all the non-existent users)so how would I get non-existent users into another variable?
I am using Debian Lenny 5.0.3 with a stock 2.6.26-2-amd64 kernel, and have a ~/Documents/HTMLS directory of 273.2MB (21590 files, 1063 sub-folders) which according to konqueror shows 1130 items - 572 files (60.8MB Total) - 558 folders, these were created by 'Save Page As' in Iceweasel 3.5.11. I am trying to copy the contents of this directory to a similar directory on a 2GB USB thumbdrive /dev/sdb1 which was partitioned and formatted as fat32 by Qparted. Problem is that the copying ceases after about 6 files transfer. I found that (as I am sure you know) the named.html files come with a matching named_files folder, and often there are what appear to be invalid characters such as '*','?',and ':' in the filenames in said named_files folders.
After exhaustive googling [I know we all say that] I found an instruction: Code: pax -rw -s '/[*?:]/_/gp' stuff /fat32/partition that changes the name of the files, replacing said characters with '_', but whilst I can get pax from my repos, I really don't want to 'archive' the files - since I understand that pax was created to bridge a war between tar and cpio - because I want to be able to read the html files on an old (not connected to the Internet) WinXP tablet. So, I believe that I need to create a script, that scans all the filenames, greps and seds to replace said 'unacceptable' characters. I am assuming that Firefox on the Tablet PC will be able to open the htmls if I can get them onto the thumb drive. Are there any other known characters in filenames that M$ file systems can't handle?
I have a BASH script which at one point asks the user a yes/no question. I want to make it so that if the user types in an invalid input 3 times consecutively then the BASH script will echo an error and terminate with exit status 1.
I just installed Debian Jessie (3.16.0-4-amd64) on a desktop box I intend to use as a server in our home office. During installation I included the web server and SSH server options. I have a user account, 'mitchell' set up in addition to root. Everything is working great except that I am unable to log in via SSH from other machines, such as a Windows desktop also on the office LAN (using PuTTY). From the PuTTY terminal it looks like the user name is accepted because the password is requested, but after entering the password it says "Access denied".
Back on the Debian box in I see:
Code: Select allNov 26 14:12:02 DebianDevP6TSE sshd[2278]: Invalid user mitchell from 192.168.1.96 Nov 26 14:12:02 DebianDevP6TSE sshd[2278]: input_userauth_request: invalid user mitchell [preauth] Nov 26 14:12:07 DebianDevP6TSE sshd[2278]: pam_unix(sshd:auth): check pass; user unknown Nov 26 14:12:07 DebianDevP6TSE sshd[2278]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=rmbiserv.attlocal.net Nov 26 14:12:10 DebianDevP6TSE sshd[2278]: Failed password for invalid user mitchell from 192.168.1.96 port 60010 ssh2
So I am guessing I need to set up either the SSHD server, or maybe something in PAM, to authorized users for SSH access?
As a note, "mitchell" is the user name I use to log on to Debian, and I am entering the same user name and password when trying to log in via SSH.
If I try to log in via SSH as "root" I get the following in the log:
Code: Select allNov 26 14:17:01 DebianDevP6TSE CRON[2329]: pam_unix(cron:session): session opened for user root by (uid=0) Nov 26 14:17:02 DebianDevP6TSE CRON[2329]: pam_unix(cron:session): session closed for user root Nov 26 14:29:59 DebianDevP6TSE sshd[2383]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=rmbiserv.attlocal.net user=root Nov 26 14:30:01 DebianDevP6TSE sshd[2383]: Failed password for root from 192.168.1.96 port 60132 ssh2
I am trying to authenticate against an LDAP server using PAM. I've gotten it asking the LDAP sever if the credentials are OK, but it still fails the authentication. In /var/log/auth.log, I get: Code: Dec 9 14:47:31 Linux-Test sshd[2339]: Invalid user {{user}} from ::1 Dec 9 14:47:31 Linux-Test sshd[2339]: Failed none for invalid user {{user}} from ::1 port 34571 ssh2 Dec 9 14:47:34 Linux-Test sshd[2339]: pam_unix(sshd:auth): check pass; user unknown Dec 9 14:47:34 Linux-Test sshd[2339]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=linux-test Dec 9 14:47:34 Linux-Test sshd[2339]: pam_winbind(sshd:auth): getting password (0x00000388) Dec 9 14:47:34 Linux-Test sshd[2339]: pam_winbind(sshd:auth): pam_get_item returned a password Dec 9 14:47:38 Linux-Test sshd[2339]: Failed password for invalid user {{user}} from ::1 port 34571 ssh2 Where {{user}} is the username.
Recently I started having this problem where most users on the system are unable to log into the system over SSH. Their user name and password is correct, however it shows them as invalid when they are in fact valid. I've tried changing their password but that didn't work. I also tried deleting their account, as well as their home directory, and then recreating the account, but that didn't work. Only root and perhaps one or two other select accounts are able to log in without problems. I even tried a reboot to see if that would fix it, but as I theorized, it wouldn't. I also checked and ensured their home directory was chowned to them, and that they even had a home directory. Any assistance would be greatly appreciated to help me get this issue resolved. As a dsie note, they are showing up as invalid in /vars/logs/auth.log. Running Debian 5.0 Lenny.
today i got this message everytime i try to login to yahoo messenger:"gyachi invalid user or incorrect password !" The user and password are corect, if i switch to kopete or pidgin is all right.Only with gyachi i have that problem. Using Fedora 10, gyachi improved v1.2.3
I have webmin and usermin setup.Iam using dovecot and sendmail ,I can use usermin to login ,check or send emails.Outlook and thunderbird works as well.
But I want to use something for webmail. I am trying squirrelmail but it keeps saying invalid user and or password.
Bottom Line: Dvd Drive died in my toshiba laptop and it was replaced (not before tech for some reason reformatted the Win7 partition... which was 100% un-needed, but thats beside the point now. I redid win7 (the tech installed vista) and am TRYING to "redo grub". Facts: The Slackware AND Ubuntu Partitions ARE STILL THERE and when i use SuperGrub Boot CD (which doesn't restore my grub by itself) to boot into slackware, i can see ALL THE CONTENT of both Linuxes still there including grub on ubuntu partition
(Tri-Boot: Ubuntu, Slackware, and WIn7) I had it working for two years or so, SO i know this "setup" works fine. I am A) Trying to do this as simply as possible. B) Trying to avoid the need to download a 800MB ISO (as seen for this issue on this forum) and trying not to have to reformat Ubuntu Partition (though I have the .Debs I have downloaded for it backed up ... all 1.7GB of them) I have /dev/sda1 as win7, /dev/sda2 as Slack and /dev/sda3 as Ubuntu (which contains Grub Legacy).. Every command I do seems to result in an error like "invalid command" or "invalid Execution format " (i think that second one is right) type errors. I compiled (awhile back) a few kernels for Slackware, but feel goofy that I cant figure what i this out (what i thought was going to be a "2 minute" fix)
Ive just installed Debian Lenny and then fglrx and kde, but if i try to login to kde, i get an error message because of invalid user. Do I have to enable my user first to login to kde or something?
I have installed squid 2.6,sarge,webmin 1.5,squidguard1.3, dansguardia in a centos 5.4 version.Since I want to implement the password change option using web, i installed changepassword 0.9.Everything was working fine except the changepassword cgi. I can see the interface of change password screen and when i tried to change the password using web, it displayed "user not found or invalid.Please go back and try again." But actually there is a user with that password. My password is stored at /etc/squid/squid_passwd.I have changed the permissions to 777 .But all in vain. Where i can search for the logs?the httpd log is as follows
[Mon Jun 21 22:02:35 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Mon Jun 21 22:02:35 2010] [notice] Digest: generating secret for digest authentication ... [Mon Jun 21 22:02:35 2010] [notice] Digest: done [Mon Jun 21 22:02:35 2010] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
I have an 80GB Intel X25-M SSD drive installed on a Linux box running Debian 5.0. The file system on the SSD is ext4. I've had no problems with the drive, and have been using it for quite some time as both swap file storage as well as a place to store a few large database files which require random access.
I changed the names of the files here for security reasons, but other than that this is exactly what ls has output. Obviously, the total size readout is incorrect.
Here is the corresponding output from df
> df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 74G 35G 36G 50% /ssd
Despite this incorrect readout, the drive seems to be working fine, and diagnostic utilities turned up nothing wrong with the drive. Is this some sort of known bug in ext4, or is it more likely there's something physically wrong with the drive?
Because I get following output : Code: [root@1 ~]# /usr/bin/ldapadd -x -D "cn=Manager,dc=mydomain" -W -f /etc/openldap/basic.ldif Enter LDAP Password: adding new entry "dc=mydomain" ldapadd: Invalid syntax (21) additional info: objectclass: value #0 invalid per syntax
How to unmount a filesystem in Linux without investigating why is it busy? I want to do it in one command. It should handle applications using that filesystem, submounts, containers (lxc-execute -n qqq <command>) and all other things.
Just "unmount. No objections!". Special kernel patches or configuration is allowed. Filesystem should be really unmounted, so umount -l is certainly not an option. For example, for cryptsetup remove (BTW how to forcibly cryptsetup remove? Update: cryptsetup luksSuspend, but you won't be able to cryptsetup luksResume if it is not LUKS). How to make all filehandles on that filesystem invalid?
The only reliable way I know is mounting the filesystem through the FUSE (there is usually no problem to unmount FUSE thing because of I can just kill it's process). P.S. Already know mount fuser, lsof | grep, cat /proc/*/mounts | grep and obsolete non-working "badfs patch".
when I got following some information using fdisk -l,there were some invalid information about system name.I installed file system reiserfs, xfs on sdb6, sdb7.but the system didn't recognizes disk's file system name.
I've a problem when I try to run arpd program to support my honeyd software but when I try to execute it then it shows this error message ./arpd 10.0.0.0/8 arpd: intf_get: Invalid argument My arpd installation based on this tutorial [URL].
When i type 'ifconfig eth0 192.168.25.1 255.255.255.0' the outcome is 'SIOCSIFADDR : invalid argument', but when i check the ip address using /sbin/ifconfig i see the ip address is updated to 192.168.25.1 and is up. When i restart the linux box,the /sbin/ifconfig is reset to 192.168.100.1 .what should i do so that the linux box /sbin/ifconfig should not change when am rebooting.
I have an old Dell Optiplex GX240 running Windows XP hooked up to my Olevia HDTV. I'd like to format this computer and install Ubuntu 10.04.After burning the Ubuntu install disk, I hook the computer to the tv via HDMI and reboot to the CDROM but upon booting I receive an 'Invalid Format' error and no video is shown.I did some searching - there is very little info about this problem. This post http://ubuntuforums.org/showthread.php?t=1063217 seems to indicate that the solution is to hook up the computer to an old CRT monitor, then after the computer has booted, switch the HDMI cable to the tv.This solution is unsatisfactory. Does anyone have experience with this problem? Is there another way to get around this problem?
I installed unetbootin, and picked linux mint because i heard mint is for beginners.I use HP mini, and connected USB drive.after installation is completed, restart machine, and changed boot order,this was on screen;"Invalid or corrupt kernel image"boot:press tab key for options.
i using centos 5.5 i have applied grub-md5 password to avoid to go single user mode and what happened someone knew this password then i have applied a new grub-md5 pawword and try to go to single user mode of the purpose it is working or not then message comes invalid password and i also try to previous password same message was on the screen right now i m unable to go single user mode and i have deleted it grub.conf and try to go single user mode then i m able and i again applied the grub-md5 password and try to go single user mode then same message invalid password why it is happning and what should i do ahead.
My computer was working fine yesterday. Last night I opted to load the newest ubuntu os ver 9.1. Now all I see after the initial booting takes place is a blank screen. I have managed to look at the booting up sequence and at the end of the multiple lines of code is the message: 'Invalid RT chipset detected'. I do not know if this is significant or not.
iam having a problem while using the urlwatch utility in linux
/usr/bin/urlwatch --urls=/home/etika/Desktop/etikaa.txt file pathname is /home/etika/Desktop/etikaa.txt
when ownership is tomcat it doesnot run when ownership is etika(which is the user on the system through which iam running my script why the file which is passed to urlwatch is not accepted if that's file owner is tomcat6 it gives the following error
Traceback (most recent call last):
File "/usr/bin/urlwatch", line 221, in <module> for job in handler.parse_urls_txt(urls_txt): File "/usr/share/urlwatch/urlwatch/handler.py", line 128, in parse_urls_txt shelljob_errors.append('%s not owned by %s' % (urls_txt, os.getlogin())) OSError: [Errno 22] Invalid argument
but when the ownership of the file is changed to etika it run smoothly why urlwatch does not run when the file containing the urls is owned by tomcat with full 777 permission but run with etika (user on the system) through this iam running my shell script