**** BEGIN LOGGING AT Sun Apr 03 23:59:57 2005 Apr 04 02:07:25 someone inhere that can help me with vsftpd? Apr 04 02:19:08 could be Apr 04 02:22:10 k Apr 04 02:22:29 i installed vsftpd using ipkg Apr 04 02:22:42 i created some user accounts using the nslu2 web config Apr 04 02:22:51 and gave em their own directory Apr 04 02:22:55 shared space Apr 04 02:23:10 now how can i get them to be able to axx this using ftp? Apr 04 02:23:18 i read the wiki pages Apr 04 02:23:28 added a line to inetd etc Apr 04 02:23:34 the ftp is up and running Apr 04 02:23:44 but whatever i try to enter as user and pass Apr 04 02:23:51 it just asks me to enter again Apr 04 02:23:55 so rejects what i entered Apr 04 02:24:16 shouldnt i specify what users to accept Apr 04 02:24:26 and what dirs that should be shared to what users? Apr 04 02:24:51 and you edit /etc/passwd, so users who looged in with vsftpd has a real homedir? Apr 04 02:25:18 well thats something i dont really understand Apr 04 02:25:27 i had already updated busybox Apr 04 02:25:31 so followed those steps Apr 04 02:25:34 as said in wiki pages Apr 04 02:25:39 changed passwd Apr 04 02:25:43 like u said Apr 04 02:25:46 k Apr 04 02:25:52 but what should be in /bin/sh Apr 04 02:25:52 ? Apr 04 02:26:14 i cant find this directory at all Apr 04 02:26:20 when i login to my slug using root Apr 04 02:26:23 and enter Apr 04 02:26:23 there nothing in, /bin/sh is the login shell, its a file Apr 04 02:26:24 cd / Apr 04 02:26:38 k Apr 04 02:27:00 k idd Apr 04 02:27:09 sry for my ignorance Apr 04 02:27:28 np Apr 04 02:28:32 could you log in via telnet as a normal user, which should use ftp? Apr 04 02:28:40 s/could/can Apr 04 02:29:17 via telnet Apr 04 02:29:19 let me see Apr 04 02:29:38 first have to enable telnet Apr 04 02:31:38 No directory, logging in with HOME=/ Apr 04 02:31:39 Cannot execute /share/hdd/data/tom:/opt/bin/sh: No such file or directory Apr 04 02:32:03 doesnt look very good does it Apr 04 02:32:05 so there might be an error in /etc/passwd Apr 04 02:32:13 presume there is Apr 04 02:32:27 so ssh into slug Apr 04 02:32:31 and change passwd? Apr 04 02:32:34 a double colon too much or less Apr 04 02:32:50 lol Apr 04 02:32:54 i had hoped u to know this Apr 04 02:32:55 :p Apr 04 02:33:10 every line should hae a format like this Apr 04 02:33:11 someuser:xxxx:2000:501::/share/hdd/data/someuser:/bin/sh Apr 04 02:33:33 six double colons, not 5 and not 7 Apr 04 02:34:14 but that 2000 depends on the amount of users added Apr 04 02:34:59 username:password:userID:groupID:comment:homedirectory:login-shell Apr 04 02:35:02 is the format Apr 04 02:35:20 userid is normally unique Apr 04 02:35:31 groupid refers to the in which the user is Apr 04 02:35:36 k Apr 04 02:35:45 but dont i have to install something Apr 04 02:35:49 to work with shells? Apr 04 02:35:56 nope Apr 04 02:36:09 /bin/sh is the standard shell Apr 04 02:36:21 and those users Apr 04 02:36:33 are created through the web configuration of the slug Apr 04 02:36:34 ? Apr 04 02:37:23 if you create an user via webconfig, than that user has no login-shell, and that's why it is neccessary, to edit the /etc/passwd Apr 04 02:38:47 and no homedir ... share != homedir Apr 04 02:39:34 ok going to look further Apr 04 02:40:06 fuck Apr 04 02:40:09 so /share/hdd/data/tom as directory and /opt/bin/shell must be present Apr 04 02:40:13 passwd is empty Apr 04 02:40:48 which passwd? please enter pwd to have a look to your working directory Apr 04 02:41:20 etc Apr 04 02:41:21 passwd Apr 04 02:41:29 got kicked out of slug Apr 04 02:41:48 bad Apr 04 02:41:56 idd Apr 04 02:42:17 way to solve this? Apr 04 02:42:24 pls shutdown, reboot without hdd and login with telnet as root and password uNSLUng Apr 04 02:42:35 k Apr 04 02:43:14 tel me it is fixable Apr 04 02:43:25 hope so Apr 04 02:45:08 k got in Apr 04 02:45:17 fine Apr 04 02:45:44 so now what to do Apr 04 02:45:50 sry but kinda freakin inhere Apr 04 02:46:13 so if you do ls -la (little l, not big I) /etc/passwd Apr 04 02:46:32 lrwxrwxrwx 1 root root 22 Apr 2 19:27 /etc/passwd -> /share/hdd/conf/passwd Apr 04 02:46:52 -rw-r--r-- 1 root root 346 Apr 4 18:34 /etc/passwd Apr 04 02:46:54 it should be like the line above Apr 04 02:47:16 this is what i get Apr 04 02:47:50 aja, the hdd isn't plugged in, sorry, my mistake Apr 04 02:48:00 so pls plug the hdd in Apr 04 02:48:06 k Apr 04 02:48:14 and wait some seconds, around 60 Apr 04 02:48:22 k Apr 04 02:48:50 and enter again i presum Apr 04 02:49:08 first check if the hdd is mounted with mount Apr 04 02:49:28 dont tell me i am going to lose any data on it Apr 04 02:49:33 /dev/sda1 on /share/hdd/data type ext3 (rw) Apr 04 02:49:35 /dev/sda2 on /share/hdd/conf type ext3 (rw,sync) Apr 04 02:49:44 cuz it contains crucial stuff Apr 04 02:49:48 no, you should got two lines like this Apr 04 02:50:09  Apr 04 02:50:11 /dev/mtdblock4 on / type jffs2 (rw) Apr 04 02:50:11 /proc on /proc type proc (rw) Apr 04 02:50:11 usbdevfs on /proc/bus/usb type usbdevfs (rw) Apr 04 02:50:11 /dev/mtdblock4 on /dev.state type jffs2 (rw) Apr 04 02:50:11 ramfs on /dev type ramfs (rw) Apr 04 02:50:12 /dev/mtdblock4 on /var.state type jffs2 (rw) Apr 04 02:50:14 ramfs on /var type ramfs (rw) Apr 04 02:50:16 none on /tmp type ramfs (rw) Apr 04 02:50:18 /dev/sda1 on /share/hdd/data type ext3 (rw) Apr 04 02:50:20 /dev/sda2 on /share/hdd/conf type ext3 (rw,sync) Apr 04 02:50:30 everything is fine Apr 04 02:50:42 so you can do a ls -la /etc/passwd Apr 04 02:50:47 k Apr 04 02:50:58 lrwxrwxrwx 1 root root 22 Apr 4 18:39 /etc/passwd -> /share/hdd/conf/passwd Apr 04 02:51:09 fine Apr 04 02:51:18 let my this shortly explain Apr 04 02:51:29 aja=dutch Apr 04 02:51:34 u speak dutch? Apr 04 02:51:39 aja = german ;-) Apr 04 02:51:44 ah k Apr 04 02:51:46 nope Apr 04 02:51:55 otherwise dutch would do but naah no german Apr 04 02:51:55 k Apr 04 02:51:59 go on Apr 04 02:52:17 you may see the difference in the output of the ls command with/without hdd Apr 04 02:52:48 idd Apr 04 02:52:59 in first case (without hdd) /etc/passwd is a real file, which is used, when you running diskless Apr 04 02:53:09 k Apr 04 02:53:45 in second case /etc/passwd is a symbolic link to /share/hdd/conf/passwd whioch is the real file, that is used in the moment you pluggd the hdd in Apr 04 02:53:58 yup Apr 04 02:54:53 in /share/hdd/conf is also a passwd.ttt and a passwd in /usr/local, that are security copies of your passwd Apr 04 02:55:09 for guys like me Apr 04 02:55:33 sp. when you do a cat /share/hdd/conf/passwd there should be your users Apr 04 02:56:10 nope no users i created inthere Apr 04 02:56:12 just the basic ones Apr 04 02:56:59 pls try cat /shar/hdd/conf/passwd.ttt Apr 04 02:57:08 min Apr 04 02:57:12 going to try and reboot my slug Apr 04 02:57:17 see if i can login ssh again Apr 04 02:58:50 k Apr 04 02:59:10 ok logged in as root again using ssh Apr 04 02:59:51 1st, have a look to the webinterface, are there more than the standard users ? Apr 04 02:59:58 nope Apr 04 03:00:08 so here gone ;-) Apr 04 03:00:15 s/here/there Apr 04 03:00:38 yup Apr 04 03:00:46 going to recreate them Apr 04 03:00:50 using web config Apr 04 03:01:04 so lets try with only one user, eg. tom Apr 04 03:03:08 done? Apr 04 03:03:20 yup created one Apr 04 03:03:46 so what u want me to do Apr 04 03:03:52 k, let's verify via cat /share/hdd/conf/passwd Apr 04 03:04:15 tom:sc50wKPq.zChw:2001:501:::/dev/null Apr 04 03:04:25 or if the hdd is plugged in cat /etc/passwd is the same Apr 04 03:04:39 jup Apr 04 03:04:56 so you must edit /share/hdd/conf/passwd are you familar with vi, or have you installed mc? Apr 04 03:05:36 i use vi Apr 04 03:05:45 lets hope it doesnt flash my passwd again Apr 04 03:06:16 tom:sc50wKPq.zChw:2001:501::/share/hdd/data/tom:/bin/sh Apr 04 03:06:38 should look like that if you're ready Apr 04 03:06:41 vi passwd Apr 04 03:06:42 i Apr 04 03:06:44 make changes Apr 04 03:06:46 escape Apr 04 03:06:48 :w Apr 04 03:06:49 :w Apr 04 03:06:52 just one moment, must look for cigaretts Apr 04 03:06:52 :q Apr 04 03:06:56 is that ok? Apr 04 03:07:01 yes Apr 04 03:07:50 k changed Apr 04 03:08:19 something strange Apr 04 03:08:24 the users i have just created Apr 04 03:08:28 they pop up twice now Apr 04 03:08:34 and are part of two everyone groups Apr 04 03:08:54 explanation? Apr 04 03:09:55 in passwd or in webinterface? Apr 04 03:10:40 web interface Apr 04 03:10:43 so i created tom Apr 04 03:10:51 in the user tab Apr 04 03:10:55 when i hit groups Apr 04 03:11:03 i get Apr 04 03:11:05 everyone Apr 04 03:11:06 everyone Apr 04 03:11:07 tom Apr 04 03:11:59 can you do cat /share/hdd/conf/groups Apr 04 03:12:19 sorry group Apr 04 03:13:09 everyone::501:guest,admin,tom Apr 04 03:13:15 are there one or two lines with everyone? Apr 04 03:13:19 presume this is what u wanted to see Apr 04 03:13:32 there is only one line Apr 04 03:13:36 but when i go to web config Apr 04 03:13:40 to groups tab Apr 04 03:13:45 there is only 1 group everyone Apr 04 03:13:48 but when i go to users tab Apr 04 03:13:59 select tom and hit group Apr 04 03:14:06 it is in everyone everyone and tom Apr 04 03:15:01 select the second everyone in the left listbox, and push it to the right one Apr 04 03:15:39 cant Apr 04 03:15:44 both of them cant be moved Apr 04 03:15:54 courious Apr 04 03:16:07 u tell me Apr 04 03:16:07 :) Apr 04 03:17:02 have just try it, the error is right, refers to the default group, may by ok, and the second everyone may be a display error Apr 04 03:17:23 k lets hope Apr 04 03:17:47 let's go on with enable vsftpd, and 1st try to log into with telnet, as user tom Apr 04 03:18:05 k going to logout ssh first Apr 04 03:19:14 there is no reason for do that Apr 04 03:19:55 so telnet login with disk attached Apr 04 03:19:59 just refuses Apr 04 03:20:01 k Apr 04 03:20:14 is telnet enabled? Apr 04 03:20:33 jup Apr 04 03:20:58 can you telnet in wih user root? Apr 04 03:21:01 min Apr 04 03:21:05 think i know what prob is Apr 04 03:22:06 logged in succesfully Apr 04 03:22:08 wohooooooooo Apr 04 03:22:09 :p Apr 04 03:22:18 as tom or as root? Apr 04 03:22:25 as tom Apr 04 03:22:33 fine, pls log out Apr 04 03:22:46 telnet logged out Apr 04 03:22:49 ssh still logged in Apr 04 03:22:56 thats ok Apr 04 03:23:12 k Apr 04 03:23:27 try telnet NAME_or_IP_NSLU 21 Apr 04 03:23:42 ? Apr 04 03:23:45 thats what i just did Apr 04 03:23:46 and hit enter if the black screen apppears Apr 04 03:23:48 to login as tom Apr 04 03:24:01 nope, the last parameter 21 is the ftp port Apr 04 03:24:10 ah sry Apr 04 03:24:13 should pay more attention Apr 04 03:25:09 you should get a messsage from vsftpd Apr 04 03:25:44 500 OOPS: cannot locate user entry:ftpsecure Apr 04 03:25:44 500 OOPS: child died Apr 04 03:25:59 k, so vsftpd is alive Apr 04 03:26:03 idd Apr 04 03:26:10 ftpsecure is option in vsftpd.conf Apr 04 03:26:13 should i turn it off? Apr 04 03:26:38 think so, lets have a look at /opt/etc/vsftpd.conf, have you changed anything? Apr 04 03:26:59 i did Apr 04 03:27:09 but think still have the original one Apr 04 03:27:33 as 1st try these params should work Apr 04 03:27:47 anonymous_enable=no Apr 04 03:27:55 local_enable=yes Apr 04 03:27:59 write_enable=yes Apr 04 03:28:39 k Apr 04 03:28:53 if i telnet again Apr 04 03:28:57 i get welcome msg Apr 04 03:29:14 turned ftpsecure off Apr 04 03:29:18 and used ur settings Apr 04 03:29:40 enable the logging is helpfull, so verify that there is a param Apr 04 03:30:18 vsftpd_log_file=/opt/var/log/vsftpd.log and make sure, that the directory /opt/var/log exists Apr 04 03:30:56 done Apr 04 03:32:08 so try at last you're ftp client to log in.. Apr 04 03:32:59 very nice Apr 04 03:33:02 works like a charm Apr 04 03:33:41 nice, for advanced parameters, you may have a lok at http://vsftpd.beasts.org/ Apr 04 03:33:47 k Apr 04 03:33:55 one other question Apr 04 03:33:59 the wiki pages talk about Apr 04 03:34:02 chroot Apr 04 03:34:05 option Apr 04 03:34:11 can you explain how to use it? Apr 04 03:34:30 not my favoured topic ;-) Apr 04 03:34:34 ah ok Apr 04 03:34:35 np Apr 04 03:34:41 ill leave it like this Apr 04 03:34:59 still have another problem now Apr 04 03:35:00 new one Apr 04 03:35:05 since i lost my users Apr 04 03:35:12 i have full axx to my shares Apr 04 03:35:13 global and short, with change_root you can caged the user in and under his homedir Apr 04 03:35:16 without having tot login Apr 04 03:35:28 got that far :) Apr 04 03:35:34 but got stuck there as well :) Apr 04 03:37:57 exuse me, but my time goes off, have to leaving now Apr 04 03:38:25 so good evening to belgium, and bye Apr 04 03:40:31 thx a lot for helping me Apr 04 03:40:34 u rule Apr 04 03:40:34 :) Apr 04 03:40:42 greetz from wherever u are Apr 04 06:12:27 Hello. Anyone here? Apr 04 06:12:59 i've got a question re: mt-daapd Apr 04 06:15:19 How come when I run ps, there are like 5 processes running for mt-daapd? Apr 04 06:15:29 looks something like this: Apr 04 06:15:31 475 root 1196 S /usr/sbin/do_umount Apr 04 06:15:47 sorry, that didn't paste so well. Apr 04 06:16:05 but u see what i mean Apr 04 06:20:34 oh well. Apr 04 12:37:41 hi Apr 04 12:37:46 i need help!! Apr 04 12:39:44 Yes? Apr 04 12:40:24 Apr 04 12:40:39 hi, i need help... i had a power failure, after which my nslu2 is having Input/output error for some directories on the main/only disk. running V2.3R25-uNSLUng-standard-3.18-beta Apr 04 12:41:20 how could i resolve that???????? Apr 04 12:41:26 Did you scan it from the web interface? Apr 04 12:41:56 no, should it help?? Apr 04 12:44:55 i don't want to do something that will complicate the problem, if the scan is expected to resolve the issue i will do it, otherwise i think i'll have to look for other solutions.. what do you think Apr 04 12:45:15 Not if you blew the format on the hard drive. If you nave crosslinked blocks, and you don't scan it, it will only get worse. Apr 04 12:46:33 the disk shows up as formatted. one more thing: it is mounted readonly!! Apr 04 12:46:56 /dev/sda1 on /share/hdd/data/type ext2 (ro) Apr 04 12:47:17 could this have anything to do with the problem?? Apr 04 12:48:10 It will be readonly until quota checking finishes. If it is marked as crashed, it will not Apr 04 12:48:25 mount, or mount as read-only. Scan it. Apr 04 12:49:09 no no.. i'm not doing any checking yet. it is operating regularly and mounted readonly. Apr 04 12:50:26 Then do nothing until it stops working completely. Apr 04 12:51:21 can i be logged in thru ssh while scanning, or is it dangerous?? Apr 04 12:52:26 No, you cannot. Disconnect it, hook it up to a linux machine and run fsck on it. Apr 04 12:52:44 won't the web interface scan work?? Apr 04 12:52:50 That would be safest. Apr 04 12:52:58 ok, thanks Apr 04 12:53:13 which 1 is safest?? Apr 04 12:53:55 To do it from the web interface, you should boot with no drives attached, attach the drive, and then run the scan. Apr 04 12:55:08 Personally, I would connect it to a linux machine, and fsck from there. You can better see what is hapening. Apr 04 12:55:32 allright, thanks man Apr 04 12:56:43 Back up your data if you can. I/O problems often precede a dead drive. Apr 04 13:00:29 suggest any options for fsck Apr 04 13:00:31 ?? Apr 04 13:09:52 ok, the scan finished instantuosly saying: clean. problems still there!!! Apr 04 13:10:36 what else can i do?? am i missing some options?? (fsck /dev/sda1 -t ext3 -C -y) Apr 04 13:13:04 the problem is that some folders show up as files rather than folders, and the type id "ls -l" is ?. The folders still have the correct size of their contents! Apr 04 13:15:04 any ideas?? Apr 04 15:09:13 Hello, I am having some difficulties setting up vsftpd, and I am wondering if I could have some help with it. **** ENDING LOGGING AT Mon Apr 04 23:59:57 2005