the_lurker
Posts: 11
Joined: Wed Feb 01, 2012 4:03 pm

More samba problems

Tue Jun 12, 2012 7:37 pm

I followed the instructions from here
http://elinux.org/R-Pi_NAS
When I tried to login to the shared folder I get sent to the users home folder instead. I want /home/shares/public but I get /home/pi.
What am I doing wrong

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: More samba problems

Tue Jun 12, 2012 8:49 pm

Silly question time!

1) What is the path you've put in on the line that says "path = "

2) Have you restarted the samba server since you made the changes to the smb.conf file?

3) Have you tried restarting the pi all together?

4) Can you confirm that the changes you made to smb.conf actually took?
Dear forum: Play nice ;-)

the_lurker
Posts: 11
Joined: Wed Feb 01, 2012 4:03 pm

Re: More samba problems

Tue Jun 12, 2012 9:26 pm

1) /home/shares/public

2) Yes using "sudo /etc/init.d/samba restart"

3) Yes using "sudo reboot"

4) Yes it all looks right

I followed instructions carefully

obarthelemy
Posts: 1399
Joined: Tue Aug 09, 2011 10:53 pm

Re: More samba problems

Tue Jun 12, 2012 11:23 pm

I've run into samba weirdness on 2 other fronts
- edits done while samba is running sometimes get overwritten when you close samba, I think.
- the config file may not be where you think it is. use a command line parameter to make extra sure samba is using the one you're messing with.

the_lurker
Posts: 11
Joined: Wed Feb 01, 2012 4:03 pm

Re: More samba problems

Wed Jun 13, 2012 7:22 am

What command line parameter?

obarthelemy
Posts: 1399
Joined: Tue Aug 09, 2011 10:53 pm

Re: More samba problems

Wed Jun 13, 2012 4:33 pm

seems to be -s
http://www.samba.org/samba/docs/man/man ... mbd.8.html

I've resorted to putting all my custom config files in a specific dir under my user dir. This makes backups easier, and finding them, too. If you don't do that, config files end up all over the place with no rhyme nor reason.

victagayun
Posts: 127
Joined: Sun Apr 15, 2012 4:01 pm
Contact: Website

Re: More samba problems

Thu Jun 21, 2012 8:25 am

From the fileexplorer all the usb drives can be found in /media. I have made an edit to the config like this
[usb_drives]
path = /media

The folder "usb_drives" can be accessed and all the usb drives and its partition can be seen after "usb_drives" but cannot be accessed.
I have tried smbpasswd but it says no such command. I have successfully done this in vmware in debian but cannot do the same process in raspi

victagayun
Posts: 127
Joined: Sun Apr 15, 2012 4:01 pm
Contact: Website

Re: More samba problems

Thu Jun 21, 2012 3:35 pm

the_lurker wrote:I followed the instructions from here
http://elinux.org/R-Pi_NAS
When I tried to login to the shared folder I get sent to the users home folder instead. I want /home/shares/public but I get /home/pi.
What am I doing wrong
hello lurker,
u can try this
http://www.linuxquestions.org/questions ... ms-946890/

the_lurker
Posts: 11
Joined: Wed Feb 01, 2012 4:03 pm

Re: More samba problems

Mon Jun 25, 2012 8:06 pm

I gave up on this for a while. I was playing with OpenELEC. I just tried installing samba in Debian wheezy and fail at tiring to get it to start. So I went back to squeeze and found some new instructions. http://www.botcyb.org/2012/06/raspberry ... ndows.html
I've still sharing /home/pi but I've got /home/share working. The one command that I found most helpful was
sudo testparm /s
Thanks for the help.

Return to “Beginners”