http://seongbae.blogspot.com/2009/04/how-to-install-samba-on-pogoplug.html I then used this configuration file http://seongb..."/>
OUR NETWORK:TiVoCommunity TechLore MyOpenRouter Dijit Community MediaSmart Home See all... About UsAdvertiseContact Us

 
Learn about scoring Forum's Raw Score: 1377600.0
February 16, 2011 04:08 AM

Categories: PogoPlug Development

Rating (0 votes)
  • 1
  • 2
  • 3
  • 4
  • 5
Rate This!

Member Avatar

Andreas Heiberg

Member
Joined: 06/10/2010

Hi,

I recently installed samba2 on my pogoplug by following this guide http://seongbae.blogspot.com/2009/04/how-to-install-samba-on-pogoplug.html

I then used this configuration file http://seongbae.blogspot.com/2009/04/my-samba-config-for-pogoplug.html and everything should be working. However I'm unable to connect to the share.

I then did some research and found this guide http://diis.net/front/2010/09/05/installing-samba-on-your-pogoplug/ which had some extra commands to test wether or not the share was succesfully intalled. I tried to type the netstat and the smbclient command. The smbclient came back with an odd result, something of the lines of "Was unable to connect to the local share". (I will have to check in later with the correct wording, but this should be sufficient for now.)

Do anyone know what I'm doing wrong?

Thanks Andreas Heiberg

Discussion:    Add a Comment | Comments 1-25 of 51 | Latest Comment | 1 2 3 Next »

February 18, 2011 2:52 PM

Same situation what I believe is /opt/etc/samba/smb.conf configuration. Since I was able to see share on my windows machine but could not browse it. I did created a 'guest' user and also did smbpassword entry for the user.

February 18, 2011 5:01 PM

Make sure that Samba is actually running on your system. If you type "ps |grep smbd" at the command prompt, you should get something like:

root /opt/sbin/smbd -D

If not, you don't have samba running.

February 21, 2011 9:35 AM

That work fine, however I'm still unable to connect.

-bash-3.2# ps |grep smbd
14168 root 3888 S /opt/sbin/smbd -D
14172 root 3268 R grep smbd

February 21, 2011 11:52 PM

Dhival,
You might benefit from setting up swat to administer your samba configuration. It should have been installed with samba2.

February 22, 2011 1:45 PM

Swat should be in /opt/etc/init.d/ right? I did a ls command to see if it was present but it wasn't so I'm all out of ideas.

February 22, 2011 4:49 PM

You might want to try searching for it. Anyway, setup is at http://www.pogoplugged.com/forum/thread/15812/Optware-problems-on-Pogoplug-Pro/ .

February 25, 2011 1:44 PM

OddballHero said: You might want to try searching for it. Anyway, setup is at http://www.pogoplugged.com/forum/thread/15812/Optware-problems-on-Pogoplug-Pro/ .

I tried to follow your tutorial, however this step gives me an error:

7. Change to /etc directory with "cd /etc" and download the 2 files with:
"wget http://tech.groups.yahoo.com/group/nslu2-general/files/Plug%20Files/services"
"wget http://tech.groups.yahoo.com/group/nslu2-general/files/Plug%20Files/protocols"

error:

-bash-3.2# wget http://tech.groups.yahoo.com/group/nslu2-general/files/Plug%20Files/servicesC... to tech.groups.yahoo.com (66.196.85.48:80)wget: not an http or ftp url: https://login.yahoo.com/config/login_verify2?.intl=us&.src=ygrp&.done...

What can I do about that? 

Thanks for the help

Andreas Heiberg

February 25, 2011 2:27 PM

Ok Andreas, you need to sign up to the yahoo groups forum like you did for pogoplugged.com at http://tech.groups.yahoo.com/group/nslu2-general/ and become a member to be able to download files. You will be welcomed there with open arms. You do know NSLU2 has a big European membership? There are various European sites and they want to add membership such as http://www.nslu2-info.de/ (they wanted a mention according to the website and are looking for English speaking moderators). If I got the wrong language, I apologize. NSLU2 is a truly world wide organization since it's membership (the guys that write the code) span multiple continents.

March 7, 2011 10:10 AM

Hello again,
I got SWAT up and running! Thanks for the help however this haven't helped much since I'm still unable to connect to the share from my mac. Heres a link to my config file, not that it is any different from my old one. Have you gotten any ideas?

Thanks for assuming I'm a english speaker. I would love to be, however I'm a Dane.

March 7, 2011 1:01 PM

Hello Andreas,
I always assumed most Europeans are multi-lingual (my Father could speak 5). Where is the link to your config file? Anyway, for a Mac, make sure passwords are encrypted. Also, on the plug, check your permissions, owners, and groups to the share. So on the directory you are sharing, do "ls -la" and see if it and everything under it has read write permissions, and it's ownership and group are set to whichever user id is logging in. As a test, Log in as that user id with ssh to the plug and make sure you can create, edit, and delete files in that share. A while back, I used Seonbae's setup and it worked but permissions had to be fixed on my share with chmod, chown, and chgrp to match the correct user id.

March 8, 2011 9:40 AM

Sorry I forgot to add the link to my config file here it is: http://dl.dropbox.com/u/3167065/Samba%20Web%20Administration%20Tool.png
I had the password encryption set to no, and I have changed that now. I get that I have to make shares, however I can't get it working. I have made a share by the name "2GB", i know that it is mounted at "/tmp/.cemnt/sdb1" (I typed "mount" to come to the conclusion"). If I try to type "cd /tmp/.cemnt/sdb1" terminal responds with "cd: /tmp/.cemnt/sdb1: Not a directory" how should I then be able to check the permissions or connect to it for that matter?

It's correct that most Europeans are multi-lingual, I speak 3 languages fluently, I can communicate in 2 more and I'm learning latin in school. I simply got the impression that you thought I was an American. Btw that's at the age of 15 :-)

March 8, 2011 10:04 AM updated: March 8, 2011 10:04 AM

You'd actually want to use /tmp/.cemnt/mnt_sdb1 as that is the path since it is the mount point. /tmp/.cemnt/sdb1 is the device entry.

March 8, 2011 10:11 AM

Ok Andreas, we might be getting onto the problem. The location for the drives on the pogoplug are of the form "/tmp/.cemnt/mnt_sdb1". So the path location you created should be "/tmp/.cemnt/mnt_sdb1/2GB". This is the path you have to use in the smb.conf. Yes you have to turn on encryption for Macs. You may need to use root for Guest Accounts for testing purposes. I did not see what your Shares Tab setting is. Make sure you created an smb password with "smbpasswd -a". This is probably all that needs to be done. I speak 3 languages very badly.

March 14, 2011 12:32 PM

Thanks for all the help, however this devil of a machine has chosen to misbehave again. I have changed the mount path of the drive - awesome advise! I have turned on encryption. I'm able to get to the credentials prompt through finder at this point wow!! However another problem have come up, I can't login. I have tried logging in as guest, but that "isn't allowed". I have also tried logging in with my username, but it says that my user name or password is wrong.

The next thing I tried to do was to run the command "smbpasswd -a", however that results in "command not found". I tried googleing the problem, but that left me empty handed. Any suggestions?

On an other note do you work for pogoplug?

Again thanks you would believe how glad I have been for your help so far.

March 14, 2011 12:35 PM

Andreas:
Neither OddballHero or myself work for CE, but in seperate communities.

My thought is that since you are using Optware, check in the /opt subdirectories. It's possible that it's either not installed, or that it is not in the $PATH variable : try `echo $PATH`

March 14, 2011 1:48 PM

Could you please rephrase that? I know I'm a noob, but I didn't understand a word of that.

March 14, 2011 1:55 PM

From a shell (ssh, etc) run the following command:
echo $PATH

If smbpasswd is not in one of those listed directories, simply typing smbpasswd will render you nothing, as it does not know where that executable exists. You'll have to find it.

March 14, 2011 2:47 PM

Okay thanks for the rewrite. i got it now, and smbpasswd is indeed not in /usr/bin. How would I go about finding it?

I'm kinda considering trying to do a complete reinstall again, since I have had all these problems, however that would be unbelievably cumbersome considering all the problems had with this install.

March 14, 2011 2:49 PM updated: March 14, 2011 2:50 PM

Random googling of "optware smbpassword" yielded a suspect or two:

/opt/etc/samba/smbpasswd
/opt/bin/smbpasswd

March 14, 2011 3:23 PM

Okay I tried "/opt/etc/samba/smbpasswd smbpasswd -a" this results in "Permission denied". I tried to google the matter, but didn't find a solution, have you got one?

March 14, 2011 3:25 PM

Ok, let's assume that /opt/bin/smbpasswd is the one you are looking for:

cd /opt/bin
./smbpasswd -a

March 14, 2011 3:56 PM

Thanks for the help WarheadsSE! /opt/etc/samba/smbpasswd is the password file for Samba, like /etc/passwd is for the system (well, one of them). The smbpasswd command is in /opt/bin. It does indeed seem that Andreas did not place /opt/bin or /opt/sbin in the profile or download the profile from nslu2-linux.org.
WarheadsSE and I are just users and volunteers here, we do not work for CloudEngines. We actually have real jobs probably not related to plugs.
Make sure that when you do the command "smbpasswd -a username" that the username has been set up for the system. That is, the username that you choose must exist in /etc/passwd and /opt/etc/samba/smbpasswd so typing the commands "more /etc/passwd" and "more /opt/etc/samba/smbpasswd", both should show an entry for the same username that you chose. Once you have have successfully created your smbpasswd, you can try connecting to the share. On the Mac, it will try to log in with the Mac username. This might not work if it is different from the one you used on the plug. You would need to click on the "connect as" button and replace the username shown along with your samba password. If you get that far and it still does not work, you need to show us a copy of your share setting like you did for the general settings.

March 14, 2011 4:12 PM

This will hopefully be my last question. I got all that working, and I successfully changed my smbpasswd, however I was still unable to connect to the share. I thought it might be a problem to login with the root account, so I added a new user and it made me realize a new problem. I'm unable to connect to excising users. The reason why I know this, is that I get a wrong password note if I type a random user and password, but disconnects if I type genuine credentials.

error message: "There was an error connection to the server "192.168.0.13". Check the server name or IP address, and then try again.

If you are unable to resolve the problem contact your system administrator."

March 14, 2011 4:17 PM

share settings http://dl.dropbox.com/u/3167065/Samba%20Web%20Administration%20Tool.png

March 14, 2011 4:37 PM

Looking at your share settings, "read only" probably needs to be no. For testing purposes, just to get samba working, set "guest account" to root. Once you can connect, then you can change this. Make sure you read my previous post. Remember that you need to add the user (other than root) to the system (with adduser -h /opt/home/username username) before you can add them to samba (with "smbpasswd -a username"). You can test to see if the user is actually added to the system by using ssh to log in with their username and password.

Discussion:    Add a Comment | Back to Top | Comments 1-25 of 51 | Latest Comment | 1 2 3 Next »

Add Your Reply

(will not be displayed)

Email me when comments are added to this thread

 
 

Please log in or register to participate in this community!

Log In

Remember

Not a member? Sign up!

Did you forget your password?

You can also log in using OpenID.

close this window
close this window