**** BEGIN LOGGING AT Fri Apr 13 02:59:56 2007 Apr 14 01:15:41 hi all Apr 14 01:16:21 so i installed xinetd without quite knowing what it did (I wanted to get proftpd working) Apr 14 01:16:23 anyway Apr 14 01:16:28 now the thing denies all ports Apr 14 01:16:30 execpt ping Apr 14 01:16:36 I know its not bricked because it pings Apr 14 01:16:40 and mpd starts up and plays mp3s Apr 14 01:17:01 and if i change files on the drive using knoppix on my pc, I can make it beeep in the startup scripts Apr 14 01:17:06 any ideas? Apr 14 01:17:09 anyone heard of this Apr 14 01:21:24 did you install openssh (as the wiki and the "enable telnet" web GUI page recommends?) Apr 14 01:21:28 Hmm, you installed unslung? Apr 14 01:22:40 yeah Apr 14 01:22:46 i had openssh a long time ago Apr 14 01:22:49 and i turned off telnet Apr 14 01:22:54 and only use ssh Apr 14 01:23:01 i customized a bit Apr 14 01:23:09 its been working great for months Apr 14 01:23:16 the only thing I wanted was proftpd Apr 14 01:23:18 so I isntalled that Apr 14 01:23:22 before installing xinet Apr 14 01:23:30 and then I installed proftpd again Apr 14 01:23:38 and rebooted for xinet Apr 14 01:23:43 i didnt change anything Apr 14 01:23:51 and basically it denies everything Apr 14 01:24:27 i have my own webserver on it and stunnel Apr 14 01:24:44 do u think i need to unsling again maybe? Apr 14 01:25:08 is there a way to do that without wiping my hd Apr 14 01:26:17 Then ssh should be working (it's not affected by xinetd). Just ssh in, and uninstall xinetd. Apr 14 01:26:24 yeah Apr 14 01:26:28 it wont accept ssh anymore Apr 14 01:26:31 after i rebooted Apr 14 01:26:38 no ssh no telnet no ftp no samba Apr 14 01:26:44 but i know the daemons are starting Apr 14 01:26:51 because i can add beeps to the start up scripts Apr 14 01:27:00 and I hear my beep sequences Apr 14 01:27:14 its basically denying everything Apr 14 01:27:23 reboot after reboot Apr 14 01:27:34 At least it's deterministic, then. That's good. Apr 14 01:27:34 i am considering unslinging again Apr 14 01:27:44 i dont want to loose files Apr 14 01:27:45 yeah Apr 14 01:27:46 it sucks Apr 14 01:27:51 but its not bricked Apr 14 01:27:54 Remove xineted. Apr 14 01:27:57 I just dont get it Apr 14 01:28:01 I tried manually removing all files Apr 14 01:28:04 through knoppix Apr 14 01:28:05 mwester_, he can't get into the slug to get it. Apr 14 01:28:08 and through a startup script Apr 14 01:28:19 lunar, I can access the drive from my pc Apr 14 01:28:25 after I turn off the slub Apr 14 01:28:31 slug and plug it in to usb on my pc Apr 14 01:28:48 removing xinetd didnt do anything Apr 14 01:28:57 but i noticed my inetd.conf is empty, I dont know if its supposed to be Apr 14 01:28:58 How did you remove xinetd? Apr 14 01:28:58 Well, at this point, then, it sounds like you've really changed an awful lot of stuff. I don't know why or how you ended up with OpenSSH not working; it is not affected by xinetd. Apr 14 01:29:21 I was going to try one last thing before trying to unsling again Apr 14 01:29:33 make a start up script that forces ipkg to install openssh again Apr 14 01:29:48 --force-overwrite Apr 14 01:30:13 its really wierd huh? Apr 14 01:30:17 I mean it starts up normal, beeps Apr 14 01:30:19 plays the mp3s Apr 14 01:30:28 (cant access the frontend for mpd anymore) Apr 14 01:31:02 Not really, to be honest -- it's a device without a console, and it's not the first time that a small problem "snowballs" into an almost-unrecoverable mess on such a device. Apr 14 01:31:12 oh Apr 14 01:31:23 what could cause it to deny everything but a ping? Apr 14 01:31:36 including ssl, 2 web servers, ssh, etc Apr 14 01:31:40 stunnel Apr 14 01:32:12 Any number of things, but since we don't know what all you've changed, we don't know where the problem is. You said you were messing with startup scripts; could it be that none of the services are acually starting? Apr 14 01:32:30 I only started messing with them after it started doing this Apr 14 01:32:39 Still, same end result, right? Apr 14 01:32:40 I know the start up scripts are running Apr 14 01:32:48 because if I add beeps to it Apr 14 01:32:52 it beeps in that order Apr 14 01:33:26 Ok. Then send the output of the scripts to a log file on the hard drive, boot it, shut it down, mount the drive on another machine, and check the log files. Apr 14 01:33:53 ok how do I do that for all the stuff in rc.d and init.d? Apr 14 01:34:03 You might find some messages in the logs that would indicate what the problem might be. (You did already check the /var/log/messages file, right?) Apr 14 01:34:49 no Apr 14 01:34:51 sorry Apr 14 01:35:00 im still new Apr 14 01:35:07 (10 months) Apr 14 01:35:07 haha Apr 14 01:35:14 Im just about to do that Apr 14 01:36:03 btw knoppix livecd is amazing for troubleshooting Apr 14 01:36:09 especially if u dont have another linux box Apr 14 01:39:35 ohhh Apr 14 01:39:38 a bunch of errors Apr 14 01:39:44 service ssh missing attribute user Apr 14 01:39:48 unknown user nobody Apr 14 01:39:53 okk Apr 14 01:40:00 so could this be related to the copy of passwd I made Apr 14 01:40:07 to /opt/etc/passwd.proftpd Apr 14 01:40:08 ? Apr 14 01:40:18 and deleted all users but the ones I wanted for ftp Apr 14 01:41:07 my passwd file is EMPTY Apr 14 01:41:09 :O Apr 14 01:41:23 That'll do it. Apr 14 01:41:23 what can I do? Apr 14 01:41:35 Put a real passwd file back would be good! Apr 14 01:41:40 where do I get one? Apr 14 01:41:49 do you have a default linksys one? Apr 14 01:42:00 You have one somewhere on that device. Apr 14 01:42:17 Linksys keeps multiple copies. Check the /share/.../conf partition Apr 14 01:43:09 BTW, for what its worth, the install of FTP daemons on Unslung has messed more installations that any other activity I know of. Apr 14 01:43:15 yeah Apr 14 01:43:19 i could never get it working Apr 14 01:43:23 Just turn on the Linksys FTP daemon. Apr 14 01:43:23 so I put some time aside to try it Apr 14 01:43:26 and look what happened Apr 14 01:43:33 theres a linksys ftp daemon? Apr 14 01:43:36 Yes. Apr 14 01:43:39 is ther ea wiki for that? Apr 14 01:43:56 My pet peeve. Apr 14 01:44:28 when people get assistance, the community rules are that they should update the wiki to help out future users. That has not been happening. Apr 14 01:44:53 yeah Apr 14 01:45:00 I updated it when you guys helped me out with mpd Apr 14 01:45:02 Those ftpd wiki pages should be colored bright red, and read "DANGER" in 24-point font at the top ;) Apr 14 01:45:04 and I donated Apr 14 01:45:05 :) Apr 14 01:45:11 haha Apr 14 01:45:11 Thank you! Apr 14 01:45:15 ok Apr 14 01:45:24 so all copies of smbpasswd and passwd that I can find Apr 14 01:45:24 Did you find a passwd file? Apr 14 01:45:25 are empty Apr 14 01:45:32 Ooh. Bad. Apr 14 01:46:01 mwester: which ftp daemons in particular? Apr 14 01:46:08 PROFTPD Apr 14 01:46:40 is there a copy of the default passwd that comes with unslung? Apr 14 01:46:45 that I could extract from somewhere Apr 14 01:46:51 (and smbpasswd) Apr 14 01:46:57 and then I could change the pass after Apr 14 01:46:59 I've installed both proftpd and vsftpd with no probs many times Apr 14 01:47:14 oops Apr 14 01:47:19 stupid multibutton mouses Apr 14 01:47:28 so yeah Apr 14 01:47:31 need a passwd Apr 14 01:48:44 You'll have to create a new passwd file. Apr 14 01:48:50 how? Apr 14 01:48:54 is there a linux command for that? Apr 14 01:49:10 or should i copy out knoppix passwd? Apr 14 01:49:20 my passwd file is EMPTY <== there's your problem :-) Apr 14 01:49:54 Well, adduser should add users to the file just nicely. Apr 14 01:50:04 However, you need a root user in there. Apr 14 01:50:19 You also need an /etc/shadow with hashed passwods. Apr 14 01:50:43 whats shadow? Apr 14 01:50:54 http://www.nslu2-linux.org/wiki/Optware/Proftpd Apr 14 01:50:56 That has your (hashed) passwords stored in it. Apr 14 01:51:08 ohh Apr 14 01:51:12 If I had unslung installed I'd send you a copy of my passwd file. Apr 14 01:51:26 http://pastebin.ca/439180 Apr 14 01:51:27 I dont have a shadow file Apr 14 01:51:28 (I have debian on my slug) Apr 14 01:51:37 No shadow file on Unslung. Apr 14 01:51:40 i dont think I ever had Apr 14 01:51:48 Oh, sorry, my mistake. Apr 14 01:51:55 That pastebin is a minimal passwd file from the Linksys firmware. Apr 14 01:52:08 THANK YOU Apr 14 01:52:30 I like how it crashed my ie Apr 14 01:52:30 HAHA Apr 14 01:52:37 ftp etc though might add additional users though AlienZufoZ Apr 14 01:52:45 non-login users, but users that are needed. Apr 14 01:52:48 You'll have to set a root password before you can use it though... that one has no passwds set. Apr 14 01:52:57 ok Apr 14 01:53:06 ill just copy the hash from knoppix Apr 14 01:53:11 cause i had to set the root pass there to the same anyway Apr 14 01:53:16 to see the files Apr 14 01:53:21 mwester_, how does unslung deal with passwords without a ghost file? Apr 14 01:53:27 let me try it Apr 14 01:53:34 AlienZufoZ, to set roots passwords, just just "passwd" as user root. Apr 14 01:53:47 er, just *type* Apr 14 01:55:47 Lunar_Lamp: poor security ;) It uses the very old style of passwd handling, where the passwords are encrypted and stored in the passwd database itself. The one I pastebin'd is not completely useful... Apr 14 01:56:04 hey theres a second partition Apr 14 01:56:07 with a passwd file Apr 14 01:56:11 that has an admin user Apr 14 01:56:14 but not hte rest of my users Apr 14 01:56:19 i think its from unslung Apr 14 01:56:21 cause it has Apr 14 01:56:24 ourtelnetrescueuser Apr 14 01:57:36 Yes - that would be correct. That's what I meant by /share/.../conf partition. Excellent; that's the one you want. Apr 14 01:58:35 oh Apr 14 01:58:39 in the main partition Apr 14 01:58:42 theres a share dir Apr 14 01:58:46 that has hdd Apr 14 01:58:58 /conf/passwd Apr 14 01:59:02 thats what was empty Apr 14 01:59:06 but ill try this Apr 14 01:59:09 i think its an old version Apr 14 01:59:19 Hehe, the directory structure is one of the major reasons i switched from unslung to debian ;-) Apr 14 01:59:28 Yeah, that second partition is mounted there when running; I forgot you are viewing it on a different system. Apr 14 01:59:29 oh Apr 14 01:59:34 i really like unslung Apr 14 01:59:45 cause its easy to add stuff Apr 14 01:59:47 and play with Apr 14 01:59:49 without screwing up Apr 14 01:59:50 err Apr 14 01:59:51 nvm Apr 14 01:59:51 haha Apr 14 02:00:06 Personally, i find debian easier to add stuff :-) Apr 14 02:01:05 it wont let me write it Apr 14 02:01:09 error writing passwd Apr 14 02:01:13 no such file or directory Apr 14 02:01:27 Unslung is an interesting problem. It is easier for many people only up to a point. After that point, because of the quirks of the Linksys firmware, it becomes very difficult to work with. Apr 14 02:01:57 yeah Apr 14 02:02:06 oh passwd is a link to /share/flash... Apr 14 02:03:20 hmm Apr 14 02:03:22 so stupid me Apr 14 02:03:24 noticed Apr 14 02:03:29 in /etc theres a file called passwd- Apr 14 02:03:41 is that a backup copy? Apr 14 02:03:44 that has all the passwds Apr 14 02:03:50 im gonna try that Apr 14 02:03:54 and see what happens Apr 14 02:04:06 btw thanks you're always really helpful Apr 14 02:04:14 and put up with my typing too much Apr 14 02:04:15 :) Apr 14 02:04:47 A backup copy? almost too good to be true! Go for it. Apr 14 02:04:55 Only one small problem. Apr 14 02:05:42 When Unslung boots, it will often overwrite the /etc/passwd file with a sym link to the /share/flash/conf/passwd file. Apr 14 02:05:49 yeah Apr 14 02:06:00 so I copied passwd- there Apr 14 02:06:05 u know what I think happened Apr 14 02:06:10 i didnt know passwd was a symlink Apr 14 02:06:22 so I inadvertantly copied the link to /opt/etc/passwd.proftpd Apr 14 02:06:24 and edited it Apr 14 02:06:29 and then proftp must have wiped it Apr 14 02:06:58 One of the pitfalls with Unslung, for certain -- there's a bunch of files that are symlinks with the Linksys firmware that people don't expect. Apr 14 02:07:41 I'd recommend that you install debian on the slug AlienZufoZ if you want to learn linux, as opposed to learning the unslung setup. Apr 14 02:08:14 Anywya, 3am, i must go to bed. Apr 14 02:08:29 I'll second that motion. Based on what you mentioned that you have running, you might find Debian to be easier overall. Apr 14 02:09:37 hmm Apr 14 02:09:39 maybe Apr 14 02:09:59 still not working Apr 14 02:10:20 it must be something else Apr 14 02:11:04 check the /var/log/messages file again Apr 14 02:11:06 time to go back to the logs Apr 14 02:15:50 unknown user nobody Apr 14 02:15:57 crontab has malformed input line 8 Apr 14 02:16:05 those are the main ones Apr 14 02:16:50 Why don't you pastebin the log Apr 14 02:17:47 ok hold on Apr 14 02:25:14 how do u make knoppix recongize that i plugged in an ethernet cord Apr 14 02:25:14 ? Apr 14 02:26:18 Try "ifup eth0" (or whatever your network interface is) Apr 14 02:29:47 http://pastebin.ca/439221 Apr 14 02:29:58 i feel stupid Apr 14 02:30:48 You have ssh being controlled by xinetd, it appears. Apr 14 02:30:59 hmm Apr 14 02:31:04 well i added a copy of the telnet file Apr 14 02:31:07 and changed it for ssh Apr 14 02:31:15 when i was trying to figure xinet out Apr 14 02:31:17 i deleted it now Apr 14 02:31:31 xinetd doesn't think you deleted it. Apr 14 02:31:37 no i mean this second Apr 14 02:31:43 would that do it? Apr 14 02:31:47 even though ssh has its own start up Apr 14 02:31:55 that wouldnt explain why none of the web servers are working Apr 14 02:31:58 including the linksys one Apr 14 02:31:59 And your passwd file is still wrong or missing. Apr 14 02:32:05 its in etc Apr 14 02:32:12 and in the share flash and hdd Apr 14 02:32:13 confs Apr 14 02:32:28 It may have been replaced with the symbolic link to the other partiion. Apr 14 02:33:02 mount the second partition. Does it have a passwd file on it, or is that a sym link as well? Apr 14 02:33:50 Oh - and go to /opt/etc, and rename xinetd. to something else -- that should keep it from trying to start. I don't think that'll change anything, but it makes things less messy. Apr 14 02:34:02 no Apr 14 02:34:06 s/xinetd./xinet.d/ Apr 14 02:34:06 mwester_ meant: Oh - and go to /opt/etc, and rename xinet.d to something else -- that should keep it from trying to start. I don't think that'll change anything, but it makes things less messy. Apr 14 02:34:17 the one on the other partition is its own file Apr 14 02:34:32 what is the content? Apr 14 02:35:29 not the same Apr 14 02:35:45 ohh Apr 14 02:35:47 ftp and admin Apr 14 02:35:49 that wasnt it before Apr 14 02:35:51 thats strange Apr 14 02:35:54 lemme copy it there too Apr 14 02:36:00 BTW, perhaps I'm assuming incorrectly -- does the slug boot up without the drive connected? Apr 14 02:36:51 i havent tried Apr 14 02:36:53 should i? Apr 14 02:37:01 i havnt done that since i unslung last year Apr 14 02:37:10 i was scared it would mess it up Apr 14 02:38:01 Well, that would make fixing things up potentially easier. Apr 14 02:38:17 OK Apr 14 02:38:21 Boot it up, enable telnet, telnet in -- and you have a "reference" install. Apr 14 02:38:27 oh Apr 14 02:38:28 ok Apr 14 02:38:32 lemme try this passwd thing again Apr 14 02:38:40 whats the telnet pass? Apr 14 02:38:57 Plug in the disk, and the Linksys firmware will mount all the right things in the right places, and we can see why it can't find the "root" user. Apr 14 02:39:09 The telnet passwd is whatever you set it to when you unslinged it. Apr 14 02:39:43 oo Apr 14 02:41:01 HOLY DONKEY BALLS Apr 14 02:41:02 IT WORKS Apr 14 02:41:39 OMG THANK YOU Apr 14 02:41:40 THANK YOU Apr 14 02:41:53 stupid 500 passwd files Apr 14 02:42:35 Glad it works for you! Yep, those passwd files can be problem. Don't forget to clean up the xinetd stuff, though; that'll rot your hard drive. Apr 14 02:43:04 (Ok, it won't rot your hard drive -- I run xinetd on one of my slugs -- but it's an easy way for a small error to kill your slug!) Apr 14 02:43:36 yeah im gonna uninstall it Apr 14 02:43:39 with ipkg Apr 14 02:43:54 thanks Apr 14 02:43:56 im gonna go eat dinner Apr 14 02:43:57 :D Apr 14 02:44:01 hey i had an idea Apr 14 02:44:07 could i make it play beethoven in beeps Apr 14 02:44:11 when it starts? Apr 14 02:44:20 i would need to be able to pause the start up script between notes Apr 14 02:44:22 hmm Apr 14 02:44:27 is there a pause -5 sec Apr 14 02:44:28 or something Apr 14 02:44:29 haha Apr 14 02:44:34 that would be cool Apr 14 02:46:11 ok ok ill stop bugging you Apr 14 02:46:13 thaaks Apr 14 02:46:15 see ya Apr 14 02:46:15 We just need it to play "Taps" when it crashes, actually. Apr 14 02:46:21 haha Apr 14 02:46:35 ok thanks Apr 14 02:46:36 see ya Apr 14 02:46:40 ill update any wikis Apr 14 02:46:44 if things come up Apr 14 02:46:47 ogod night Apr 14 02:46:52 GN Apr 14 02:46:59 ls **** ENDING LOGGING AT Sat Apr 14 02:59:56 2007