LinHES Forums http://forum.linhes.org/ |
|
/ was copied to /myth/video somehow; becoming mythtv http://forum.linhes.org/viewtopic.php?f=5&t=16484 |
Page 1 of 2 |
Author: | mythedoff [ Thu Sep 13, 2007 10:24 am ] |
Post subject: | / was copied to /myth/video somehow; becoming mythtv |
This showed up in /myth/video on my be/fe -rw-r--r-- 1 mythtv mythtv 0 Sep 12 22:27 0 drwxr-xr-x 2 mythtv mythtv 4096 Sep 12 22:27 bin drwxr-xr-x 2 mythtv mythtv 4096 Sep 12 22:27 boot drwxr-xr-x 13 mythtv mythtv 4096 Sep 12 22:27 dev drwxr-xr-x 114 mythtv mythtv 4096 Sep 12 22:27 etc drwxr-xr-x 4 mythtv mythtv 4096 Sep 12 22:27 home dr-xr-xr-x 2 mythtv mythtv 4096 Sep 12 22:27 initrd -rw-r--r-- 1 mythtv mythtv 2518 Sep 12 22:27 knoppmyth -rw-r--r-- 1 mythtv mythtv 2561 Sep 12 22:27 knoppmyth-sata drwxr-xr-x 15 mythtv mythtv 4096 Sep 12 22:28 lib drwx------ 2 mythtv mythtv 4096 Sep 12 22:28 lost+found drwxr-xr-x 2 mythtv mythtv 4096 Sep 12 22:28 media drwxr-xr-x 3 mythtv mythtv 4096 Sep 12 22:28 mnt drwxr-xr-x 4 mythtv mythtv 4096 Sep 12 22:28 myth The mythtv mythtv has me puzzled. I deleted the files and directories. I wanted to make sure they weren't copied somewhere else and so I did a search using: # ls -lR / | grep "Sep 12 22" -rw-rw---- 1 mysql mysql 212 Sep 12 22:00 cardinput.MYD -rw-rw---- 1 mysql mysql 5308 Sep 12 22:00 record.MYD Nothing shows up in history to suggest copying. I believe at that time, Sep 12 22:27, I was working on my fe only trying to get dvd's to play, which I did, and dvd's to rip which I didn't. After connecting to a box via ssh and then becoming root, how do I become mythtv in order to check its history? As I've been writing this I'm thinking maybe the copy was done via samba, is that possible as the directories were owned by root? |
Author: | mythedoff [ Thu Sep 13, 2007 11:54 am ] |
Post subject: | |
I was able to read the history via: # less /home/mythtv/.bash_history but found nothing unusual. Samba logs were blank and /myth is not accessible at this point from my XP box. Both boxes, be/fe and fe only, are R5F27. # grep "Sep 12 22:2" /var/log/* /var/log/auth.log:Sep 12 22:25:01 mythtv2 CRON[7964]: (pam_unix) session opened for user root by (uid=0) /var/log/auth.log:Sep 12 22:25:01 mythtv2 CRON[7964]: (pam_unix) session closed for user root /var/log/messages:Sep 12 22:25:07 mythtv2 -- MARK -- /var/log/syslog.0:Sep 12 22:25:01 mythtv2 /USR/SBIN/CRON[7965]: (root) CMD ([ -x /usr/lib/sysstat/sa1 ] && { [ -r "$DEFAULT" ] && . "$DEFAULT" ; [ "$ENABLED" = "true" ] && exec /usr/lib/sysstat/sa1 $SA1_OPTIONS 1 1 ; }) |
Author: | khrusher [ Thu Sep 13, 2007 12:12 pm ] |
Post subject: | |
looks like it was copied, by a mythtv user process. cp'ed files take the ownership from the user doing the cp. coping from / is possible as all of the files, directories have the 'R' bit turned on. You dont need to become mythtv user to see mythtv's history. cd to ~mythtv (that user's login directoy) and look for the shell history files Code: ls -al or simply Code: ls -al ~mythtv If you want to 'become' a different user... Code: su - mythtv
|
Author: | Human [ Thu Sep 13, 2007 12:46 pm ] |
Post subject: | |
You know, I saw this exact same thing, too, and I figured it was something I'd done while messing around with things. If you've seen the exact same thing, then something in R5F27 must be doing this. At least we know we're not crazy now ![]() |
Author: | mythedoff [ Thu Sep 13, 2007 1:19 pm ] |
Post subject: | |
Thanks khrusher and Human Yea, I double checked all .bash-history files and could find nothing. Also had another strange thing happen last night, Sep 12. From my XP box I vnc'd into my be/fe and it wouldn't accept my password that I had put into /home/mythtv/.fluxbox/apps I had to use mythtv as the pw. I just checked that file for creation date: # ls -l /home/mythtv/.fluxbox/apps -rw-r--r-- 1 mythtv mythtv 416 Sep 10 15:12 /home/mythtv/.fluxbox/apps And today I can use the password that I put in there. Strange. |
Author: | tophee [ Thu Sep 13, 2007 1:35 pm ] |
Post subject: | |
The copying of stuff over to the /myth/video file happend to me too. Its the new "import videos" button under optical drives menu. |
Author: | Human [ Thu Sep 13, 2007 1:41 pm ] |
Post subject: | |
EDIT: Sorry, I misunderstood what you meant. You're referring to the feature where you insert a CD or DVD and extract the videos from it. I used this feature, too. This seems to be the culprit. |
Author: | tophee [ Thu Sep 13, 2007 1:46 pm ] |
Post subject: | |
No, not the thumbnail generator - That's under the /setup menu. In the Optical/DVD menu. I clicked thinking it was a neat way of importing downloaded stuff (an avi for example) into video folder. The thumbnail generator worked fine. Oops, you beat me to it. |
Author: | Human [ Thu Sep 13, 2007 1:51 pm ] |
Post subject: | |
Wow, the script is just this: Code: #!/bin/bash cp -R `cat /proc/mounts |grep iso9660|awk '{print $2}'|tail -1`/* /myth/video/ As you can guess, if the expression evaluates to null, the command becomes Code: cp -R /* /myth/video/
Doh! I don't know who wrote it, but I'll fix that up and add the fix to R5F27's live patcher. |
Author: | Human [ Thu Sep 13, 2007 2:35 pm ] |
Post subject: | |
Everyone please try replacing /usr/local/bin/importfiles.sh with this rewrite and post results. Code: #!/bin/bash
export FONT="-adobe-helvetica-bold-*-*-*-34-*-*-*-*-*-*-*" DVD_or_CD=`cat /proc/mounts |grep iso9660|awk '{print $2}'|tail -1` if [ "$DVD_or_CD" != "" ]; then echo "Copying files from $DVD_or_CD to /myth/video." > /tmp/screens echo "This could take several minutes, depending on the" >> /tmp/screens echo "speed and size of your optical media." >> /tmp/screens cat /tmp/screens | osd_cat --font=$FONT --shadow=3 --pos=middle --align=centre --delay=0 & /bin/cp -R $DVD_or_CD/* /myth/video/ killall osd_cat echo "Copied videos from $DVD_or_CD to /myth/video" > /tmp/screens cat /tmp/screens | osd_cat --font=$FONT --shadow=3 --pos=middle --align=centre --delay=2 & else echo "No optical media found. If you just inserted" > /tmp/screens echo "your media, please wait a moment and try again." >> /tmp/screens cat /tmp/screens | osd_cat --font=$FONT --shadow=3 --pos=middle --align=centre --delay=5 & fi |
Author: | mythedoff [ Thu Sep 13, 2007 4:26 pm ] |
Post subject: | |
I tried the new script and am getting the "No optical media found" message. I then tried just playing the dvd and that was successful. Tried a different one with same results. I had in fact tried the "Import Video Files ..." last night. |
Author: | Human [ Thu Sep 13, 2007 5:59 pm ] |
Post subject: | |
Did you put in a DVD of individual video files? |
Author: | mythedoff [ Thu Sep 13, 2007 8:09 pm ] |
Post subject: | |
Human wrote: Did you put in a DVD of individual video files?
I tried two commercial dvd's and one homemade vcd. All 3 played on the FE, but only the vcd played on the BE/FE because the region setting or whatever hasn't yet had an attitude adjustment. As for "Import video file", both boxes gave the same response on all three disks of "No optical media found". |
Author: | Human [ Thu Sep 13, 2007 8:23 pm ] |
Post subject: | |
The feature we're talking about is to copy video files that were burned to DVD or CD media, not a rip of a DVD or VCD. In any case, since it's no longer copying / to /myth/video, it looks like it's working. |
Author: | mythedoff [ Thu Sep 13, 2007 8:25 pm ] |
Post subject: | |
Human wrote: Did you put in a DVD of individual video files?
Here's a listing of the vcd from a dos prompt: dir /s d: Volume in drive D is NEW Volume Serial Number is CAA0-1725 Directory of D:\ 04/30/2003 11:41 PM <DIR> CDI 04/30/2003 11:41 PM <DIR> EXT 04/30/2003 11:41 PM <DIR> MPEGAV 04/30/2003 11:41 PM <DIR> SEGMENT 04/30/2003 11:41 PM <DIR> VCD 0 File(s) 0 bytes Directory of D:\CDI 01/01/1601 12:00 AM <DIR> . 01/01/1601 12:00 AM <DIR> .. 04/30/2003 11:42 PM 1,510,028 CDI_IMAG.RTF 04/30/2003 11:42 PM 13,616 CDI_TEXT.FNT 04/30/2003 11:42 PM 102,400 CDI_VCD.APP 04/30/2003 11:42 PM 193 CDI_VCD.CFG 4 File(s) 1,626,237 bytes Directory of D:\EXT 01/01/1601 12:00 AM <DIR> . 01/01/1601 12:00 AM <DIR> .. 04/30/2003 11:41 PM 65,536 LOT_X.VCD 04/30/2003 11:41 PM 24 PSD_X.VCD 04/30/2003 11:41 PM 9,207 SCANDATA.DAT 3 File(s) 74,767 bytes Directory of D:\MPEGAV 01/01/1601 12:00 AM <DIR> . 01/01/1601 12:00 AM <DIR> .. 04/30/2003 11:42 PM 317,527,100 AVSEQ01.DAT 1 File(s) 317,527,100 bytes Directory of D:\SEGMENT 01/01/1601 12:00 AM <DIR> . 01/01/1601 12:00 AM <DIR> .. 0 File(s) 0 bytes Directory of D:\VCD 01/01/1601 12:00 AM <DIR> . 01/01/1601 12:00 AM <DIR> .. 04/30/2003 11:41 PM 2,048 ENTRIES.VCD 04/30/2003 11:41 PM 2,048 INFO.VCD 04/30/2003 11:41 PM 65,536 LOT.VCD 04/30/2003 11:41 PM 24 PSD.VCD 4 File(s) 69,656 bytes Total Files Listed: 12 File(s) 319,297,760 bytes 15 Dir(s) 0 bytes free ==== If there is something else you would like me to try, let me know. |
Page 1 of 2 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |