View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 27 posts ] 
Go to page 1, 2  Next

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Thu Sep 13, 2007 10:24 am 
Offline
Joined: Mon Jul 31, 2006 10:41 pm
Posts: 149
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?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 13, 2007 11:54 am 
Offline
Joined: Mon Jul 31, 2006 10:41 pm
Posts: 149
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 ; })


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 13, 2007 12:12 pm 
Offline
Joined: Tue Apr 13, 2004 6:51 pm
Posts: 890
Location: Groton, MA
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

_________________
R5F1 - Dell P4 2.4Ghz 500MB - PVR250 x 2 - GeForce FX 5200 - Onboard sound/NIC 80GB ATA/250GB ATA/400GB SATA


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 13, 2007 12:46 pm 
Offline
Joined: Thu Sep 30, 2004 11:29 am
Posts: 2419
Location: Mechanicsburg, PA
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 :)

_________________
KnoppMyth R5.5
MythiC Dragon v2.0
Join the KnoppMyth Frappr!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 13, 2007 1:19 pm 
Offline
Joined: Mon Jul 31, 2006 10:41 pm
Posts: 149
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 13, 2007 1:35 pm 
Offline
Joined: Tue Sep 13, 2005 10:48 am
Posts: 852
Location: London, UK
The copying of stuff over to the /myth/video file happend to me too. Its the new "import videos" button under optical drives menu.

_________________
Version:R8
Intel C2D 7400, Nvidia 5600 via HDMI to Samsung B37B650TW (PAL), Asus P5QL-E mobo, 4Gb PC6400 DDR2 ram, Samsung Spinpoint 500 Gb & 1Tb drive, Nova-HD-S2 (x2)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 13, 2007 1:41 pm 
Offline
Joined: Thu Sep 30, 2004 11:29 am
Posts: 2419
Location: Mechanicsburg, PA
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.

_________________
KnoppMyth R5.5
MythiC Dragon v2.0
Join the KnoppMyth Frappr!


Last edited by Human on Thu Sep 13, 2007 1:47 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 13, 2007 1:46 pm 
Offline
Joined: Tue Sep 13, 2005 10:48 am
Posts: 852
Location: London, UK
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.

_________________
Version:R8
Intel C2D 7400, Nvidia 5600 via HDMI to Samsung B37B650TW (PAL), Asus P5QL-E mobo, 4Gb PC6400 DDR2 ram, Samsung Spinpoint 500 Gb & 1Tb drive, Nova-HD-S2 (x2)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 13, 2007 1:51 pm 
Offline
Joined: Thu Sep 30, 2004 11:29 am
Posts: 2419
Location: Mechanicsburg, PA
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.

_________________
KnoppMyth R5.5
MythiC Dragon v2.0
Join the KnoppMyth Frappr!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 13, 2007 2:35 pm 
Offline
Joined: Thu Sep 30, 2004 11:29 am
Posts: 2419
Location: Mechanicsburg, PA
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

_________________
KnoppMyth R5.5
MythiC Dragon v2.0
Join the KnoppMyth Frappr!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 13, 2007 4:26 pm 
Offline
Joined: Mon Jul 31, 2006 10:41 pm
Posts: 149
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 13, 2007 5:59 pm 
Offline
Joined: Thu Sep 30, 2004 11:29 am
Posts: 2419
Location: Mechanicsburg, PA
Did you put in a DVD of individual video files?

_________________
KnoppMyth R5.5
MythiC Dragon v2.0
Join the KnoppMyth Frappr!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 13, 2007 8:09 pm 
Offline
Joined: Mon Jul 31, 2006 10:41 pm
Posts: 149
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".


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 13, 2007 8:23 pm 
Offline
Joined: Thu Sep 30, 2004 11:29 am
Posts: 2419
Location: Mechanicsburg, PA
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.

_________________
KnoppMyth R5.5
MythiC Dragon v2.0
Join the KnoppMyth Frappr!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 13, 2007 8:25 pm 
Offline
Joined: Mon Jul 31, 2006 10:41 pm
Posts: 149
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.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 27 posts ] 
Go to page 1, 2  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 73 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu