**** BEGIN LOGGING AT Mon Aug 20 02:59:56 2007 **** BEGIN LOGGING AT Mon Aug 20 11:33:59 2007 Aug 20 18:32:56 irc.freenode.net Aug 20 20:18:26 Can i ask questions her about unslung and samba? Aug 20 20:24:20 you can always ask, but you might not get any answers :) Aug 20 20:26:02 hehe Aug 20 20:27:45 if i try to add a user to my unslung with the command smbpassw -a mp3 Aug 20 20:27:57 i get: Failed to modify password entry for user mp3 Aug 20 20:30:47 are you logged in as root? Aug 20 20:32:02 Jep Aug 20 20:35:04 -a This option specifies that the username following should be added to the local smbpasswd file, with the new password typed. This option is ignored if the username specified already exists in the smbpasswd file and it is treated like a regular change password command. Note that the user to be added must already exist in the system password file (usually /etc/passwd) else the request to add the user will fail. Aug 20 20:35:39 oh Aug 20 20:35:52 but how do i add a user to passwd? Aug 20 20:36:22 adduser or useradd or something.. not sure which one unslung uses Aug 20 20:39:39 I have a question about samba as well... trying to improve the performance when copying from a samba share to windows Aug 20 20:39:55 the best performance so far is ~0.75mb/s, which is way to slow Aug 20 20:40:09 with a 266 MHz slug? Aug 20 20:40:13 yepp Aug 20 20:40:34 I've been playing around with the SO_SNDBUF variable, bot nothing helps Aug 20 20:40:42 I really need to increase my processer.. I haven't performed the opperation yet Aug 20 20:40:49 I don't know.. I don't even use samba Aug 20 20:41:10 Im noticing while doing a samba mas file copy my slug is being very slow Aug 20 20:41:31 copying a 10mb file from samba to win takes approx 15s Aug 20 20:42:06 I just got my 750 gig usb drive yesterday and transformed my OS over to the new drive Aug 20 20:42:59 aah, I'm thinking of doing the same thing... got my os on a slow usb flash memory right now Aug 20 20:43:49 I dont bother using flash for OS's because they will fail given time Aug 20 20:44:16 so they have told me :) Aug 20 20:45:49 it's not a problem for the os Aug 20 20:45:55 so far I've transfered 150 gigs in about 6 hours Aug 20 20:46:33 they werent kiding when they said the Nslu2 is not fast Aug 20 20:47:26 Strange, my nslu2 was orignal 266mhz Aug 20 20:47:34 produced april 2007 Aug 20 20:47:46 mine too Aug 20 20:47:52 very nice Aug 20 20:48:01 how do I check mine? Aug 20 20:48:10 atop doesn't do it dos it? Aug 20 20:48:12 I think they started doing them with 266 after august 2006 or so Aug 20 20:48:41 cat /proc/cpuinfo Aug 20 20:49:57 as soon as samba works..i'm happy:p Aug 20 20:50:49 as soon as I get rid of the performance issue - i'm even more happy =) Aug 20 20:51:01 hello Aug 20 20:51:15 hehe Aug 20 20:51:25 i have wrote some data on my hdd with my computer, but i can find them with the slug Aug 20 20:51:29 I used tcpdum to check the traffic while copying, and it seems like the tcp window is very small Aug 20 20:51:32 you should be happy, it works at least:D Aug 20 20:52:08 2 packades sent from slug -> win, then an ack, then 2 more packages... adn so on Aug 20 20:52:28 Ice-Raven: hehe :D Aug 20 20:52:58 Ice-Raven: what is that doesnt work? Aug 20 20:53:09 hoho Aug 20 20:53:17 something works now:D Aug 20 20:53:39 yeah! =) Aug 20 20:53:41 at least i added a user. Aug 20 20:53:42 hehe Aug 20 20:53:50 i cant access any of my shares Aug 20 20:54:15 have u set the file permissions right? Aug 20 20:54:36 samba cant override the system permissions Aug 20 20:54:51 i'm not sure..i tried to add a user through linksys web interface..then add them with smbpasswd -a Aug 20 20:54:56 and that works now.. Aug 20 20:55:16 so if i want access to /shares/flash/public/mp3 Aug 20 20:55:25 for the user mp3 Aug 20 20:55:40 ok i found what was my prb Aug 20 20:55:54 i forgot to mount /home in the good partition Aug 20 20:56:04 ok, if you are gonna connect to the share using that user you have to make sure the user have at least read permissions Aug 20 20:56:18 how to i check that? Aug 20 20:57:15 I have created a particular user (lets call him 'Bob') hich owns all the files on my shares, and then I've set 'force user = Bob' in the smb.conf for all of my shares Aug 20 20:57:35 ah Aug 20 20:57:45 Ice-Raven: ls -al displays all the file permissions Aug 20 20:58:36 drwxrwxr-x 3 admin everyone 4096 Aug 21 22:30 . Aug 20 20:58:36 drwxrwxr-x 4 admin everyone 4096 Aug 21 22:48 .. Aug 20 20:58:36 d--x------ 2 root root 4096 Aug 21 22:30 mp3 Aug 20 20:58:44 this mean that "everyone" have access? Aug 20 20:59:03 this mean only root have access to the mp3 dir Aug 20 20:59:16 bah Aug 20 20:59:17 hehe Aug 20 20:59:25 so that is the problem.. Aug 20 20:59:25 hmm Aug 20 20:59:30 type: chown -R . mp3 to change the owner of all the files Aug 20 20:59:40 but i cant log inn as root Aug 20 20:59:56 then: chmod -R ug+rwx,o-rwx mp3/ Aug 20 21:00:05 Ice-Raven: hmm, that's not good :) Aug 20 21:00:24 root works fine, but i cant access adminfolder with that user Aug 20 21:00:28 if you understand.. Aug 20 21:00:41 etc: \\mediaserver Aug 20 21:00:49 i have two shares, Media Admin Aug 20 21:01:09 when i try to access, win ask for user and pwd Aug 20 21:01:15 i use root/pwd Aug 20 21:01:30 but i cant access the damn folder Aug 20 21:01:37 aah, ok... Aug 20 21:01:43 d--x------ 2 root root 4096 Aug 21 22:30 mp3 Aug 20 21:01:52 not even root has read access Aug 20 21:01:58 haha Aug 20 21:02:31 http://us5.samba.org/samba/docs/man/manpages-3/smb.conf.5.html smb.conf man page, quite good Aug 20 21:02:54 ah Aug 20 21:02:55 tnx Aug 20 21:03:02 I think u have to be able to login in as root and change the permissions to make it work Aug 20 21:03:02 i just have to read read read:) Aug 20 21:03:17 the dir works for root now. Aug 20 21:03:22 just rmdir, mkdir:p Aug 20 21:04:07 u said u could't log in as root, why? Aug 20 21:04:39 have u tried to telnet in? Aug 20 21:04:42 through ssh and into the unslung, noprob Aug 20 21:05:02 but if i try to connect to the folder \\mediaserver\Media Admin Aug 20 21:05:06 no luck Aug 20 21:06:12 there should be a 'telnet' button on the web ui somewhere, press that and you enable the telnet service Aug 20 21:06:39 telnet is disabled Aug 20 21:06:42 dont need it anyway Aug 20 21:06:47 i use putty and ssh Aug 20 21:06:57 aah, ok... a bit of lag here, missed the ssh part =) Aug 20 21:08:04 how have you configured the share in smb.conf? Aug 20 21:08:49 begin with the home dirs and see if that works Aug 20 21:08:49 [homes] Aug 20 21:08:49 comment = Home Directories Aug 20 21:08:49 browseable = no Aug 20 21:08:49 writable = yes Aug 20 21:09:37 you should the root home dir if connecting as root Aug 20 21:10:01 but do i have to smbpasswd -a "root" Aug 20 21:10:02 ? Aug 20 21:10:29 hmm, good question :) Aug 20 21:10:41 probably Aug 20 21:12:13 it looks like this: Aug 20 21:12:14 [Media Admin] Aug 20 21:12:14 from a security point of view it's better to add a specific user (not root) and connect as that user Aug 20 21:12:14 valid users=root Aug 20 21:12:14 comment=Root Admin Aug 20 21:12:14 path=/share/flash/data/ Aug 20 21:12:14 read only=yes Aug 20 21:12:16 write list=@"administrators" Aug 20 21:12:41 i know..but its only me.. Aug 20 21:12:48 true =) Aug 20 21:13:32 read only=no maybe? Aug 20 21:13:36 nothing wrong with that share Aug 20 21:13:50 naah, don't think so Aug 20 21:14:13 try making it public and see what happens: public = yes Aug 20 21:15:23 what does the permissions look like for the data folder? Aug 20 21:16:21 hmm Aug 20 21:16:38 didnt work with public=yes Aug 20 21:17:00 # ls -la /share/flash/data Aug 20 21:17:00 drwxrwxr-x 4 admin everyone 4096 Aug 21 22:48 . Aug 20 21:17:00 drwxrwxr-x 4 root root 4096 Aug 15 22:51 .. Aug 20 21:17:00 drwx------ 2 root root 16384 Aug 7 19:21 lost+found Aug 20 21:17:00 drwxrwxr-x 3 admin everyone 4096 Aug 21 22:58 public Aug 20 21:17:01 -rw------- 1 root root 64032 Aug 21 22:58 quota.user Aug 20 21:17:03 -rw------- 1 root root 64032 Aug 21 22:48 quota.user~ Aug 20 21:17:10 ah Aug 20 21:17:12 admin Aug 20 21:17:13 wtf Aug 20 21:17:24 Is this unslung? Aug 20 21:17:31 As admin is the web account thingy Aug 20 21:17:50 ie what you use to get to the web admin panale Aug 20 21:17:51 panel Aug 20 21:17:53 AFAIK Aug 20 21:18:06 thats admin Aug 20 21:18:07 yes Aug 20 21:18:11 what about the data folder it seld? Aug 20 21:18:13 self Aug 20 21:18:51 thats the datafolder? Aug 20 21:19:03 it's the content =) Aug 20 21:19:42 try pointing the share to /share/flash/data/public and restart samba Aug 20 21:19:54 everyone got access to that folder Aug 20 21:20:04 just to see if it works Aug 20 21:20:10 it works fine Aug 20 21:20:24 and also to access mp3 Aug 20 21:20:35 but if i point to mp3 it wont work..hehe Aug 20 21:22:02 ups Aug 20 21:22:06 cant access mp3 Aug 20 21:22:09 just public.. Aug 20 21:22:36 hmm, back to the data folder... if u type: ls -al /share/flash/ Aug 20 21:22:58 # ls -la /share/flash Aug 20 21:22:58 drwxrwxr-x 4 root root 4096 Aug 15 22:51 . Aug 20 21:22:58 drwxrwxr-x 4 admin everyone 4096 Aug 15 22:51 .. Aug 20 21:22:58 drwxrwxr-x 7 root root 1024 Aug 21 20:29 conf Aug 20 21:22:58 drwxrwxr-x 4 admin everyone 4096 Aug 21 22:48 data Aug 20 21:23:20 hmm, looks good... strange Aug 20 21:23:36 everyone got read access so you should be able to access the share Aug 20 21:24:00 and that works..but if i try to access mp3 Aug 20 21:24:03 nothing.. Aug 20 21:24:59 did u fix the permissions for the mp3 folder? (d--x------ 2 root root 4096 Aug 21 22:30 mp3) <--- that wont work Aug 20 21:28:33 i removed it and fixed it for root Aug 20 21:29:51 ok, as long as root has read access to it then it should work Aug 20 21:30:44 i used this: chmod o+r -R /share/flash/data/public/mp3 Aug 20 21:30:50 so now everybody can read from it Aug 20 21:30:52 at least Aug 20 21:32:00 ok, hmmm... try u+r as well, since root is the owner Aug 20 21:33:35 don't know if the system checks the other flag if the user already is the owner... Aug 20 21:33:49 # ls -al /share/flash/data/public/mp3 Aug 20 21:33:49 drwx---r-- 2 root root 4096 Aug 21 23:22 . Aug 20 21:33:49 drwxrwxr-x 4 admin everyone 4096 Aug 21 23:27 .. Aug 20 21:33:53 did that now.. Aug 20 21:34:03 ok :) Aug 20 21:34:34 it works to access mp3folder now..but i cant log inn as root Aug 20 21:34:45 so "everyone" can now access Media/mp3 Aug 20 21:34:52 and read from it Aug 20 21:35:24 hmm, but thats not so bad :) Aug 20 21:35:46 hehe no...no i only need one user so i can upload something to it:D Aug 20 21:36:15 if u set "force user = admin", all files created will be created as "admin" no matter who you connect as Aug 20 21:36:48 but if i do that in the public settnings, everyone can change and add music? Aug 20 21:37:59 you put that line under every share section Aug 20 21:38:54 if you only want a specific user to have write access, you can use the "write list" option Aug 20 21:38:55 write list = admin, root, @staff Aug 20 21:40:21 but if you are the only one using the share that might be overkill Aug 20 21:44:40 yeah..i want to make it clean and simple:) Aug 20 21:45:31 hehe Aug 20 21:46:38 clean and simple: set public = yes, read only = no, force user = admin (all files created by admin) Aug 20 21:48:09 [simple share] Aug 20 21:48:10 comment = Upload new stuff here Aug 20 21:48:10 path = /media/upload Aug 20 21:48:10 public = yes Aug 20 21:48:10 read only = no Aug 20 21:48:10 force user = admin Aug 20 21:48:46 maybe something like that :) Aug 20 21:49:02 i think i have to read that manual you gave me.. Aug 20 21:49:15 and i need to understand access Aug 20 21:49:29 because that is the problem some how Aug 20 21:49:39 etc: made /public/downloads Aug 20 21:50:03 cant access, even if its like the other one Aug 20 21:50:24 [Downloads] Aug 20 21:50:24 comment= Downloads Aug 20 21:50:24 path=/share/flash/data/public/downloads/ Aug 20 21:50:24 valid users= @"administrators", @"everyone" Aug 20 21:50:24 read only = yes Aug 20 21:50:24 browseable = yes Aug 20 21:50:26 write list=@"administrators",@"everyone" Aug 20 21:51:09 hmm, I think @ sign is for groups only... Aug 20 21:51:17 Example: write list = admin, root, @staff Aug 20 21:51:23 taken from smb.conf man page Aug 20 21:51:47 so if i want it to be public, i just put @everyone? Aug 20 21:51:48 basic rule: samba permissions (set in smb.conf) cant override system permissions Aug 20 21:52:03 no Aug 20 21:52:18 so i have to sort out he system permissions first.. Aug 20 21:52:39 etc: public/folders Aug 20 21:52:40 well, if everyone is a member of the @everyone group it might work =) Aug 20 21:53:06 i have 2 groups...guest and admin on the nslu2 linksys Aug 20 21:53:09 ah Aug 20 21:53:09 hmm Aug 20 21:53:13 guest Aug 20 21:53:14 bah Aug 20 21:53:15 haha Aug 20 21:53:17 yeah, all folders (even folders within the share) must be at least readable by the user you are connecting as Aug 20 21:53:33 haha Aug 20 21:53:56 try with just a small share (public and writable by all) and work from there Aug 20 21:54:09 yeah..now i have to sleep:D Aug 20 21:54:15 thnx for everyting, gn Aug 20 21:54:20 hehe, yeah me too.. getting late Aug 20 21:55:01 hehe, anytime.. good luck! Aug 20 21:55:57 i hope in about 10 days..everything is ok:D Aug 20 21:56:01 but sleep.. **** ENDING LOGGING AT Tue Aug 21 02:59:56 2007