PDA

View Full Version : samba shares within Home DIR's not working?


cRuNcHiE
27th November 2004, 02:12 PM
Ive recently switched to linux from windows and wanted to get my samba shares up and running again so that my Xbox can access media from my PC....

Ive managed to setup my usual shares that link to my ntfs mounts, a USB Fat32 drive and also as a test i setup a share in /tmp/temp

all these shares are publicly available as guest and all work fine..


but :)

When i try to share ANY folder within my home directory ( even if i make a folder and chmod 777) that share is not accessible from the xbox OR even on the local machine!?

The error i get when trying to browse the media share from xbox or locally is that the file/folder doesnt exist?!

Any Ideas why?

Im using Fedora Core 3 with all the latest updates, i had it working fine in FC2

Samba version = 3.0.8-0 pre1.3


#============================ Share Definitions ==============================
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /bin/false
username map = /etc/samba/smbusers
password server = None
guest ok = yes
winbind use default domain = no

[temp]
comment = Temporary file space
path = /tmp/temp
writeable = yes
guest ok = yes
public = yes

#This media share doesnt work :(
[media]
comment = media
path = /home/crunchie/media
guest ok = yes
public = yes

macemoneta
27th November 2004, 03:14 PM
Did you remember to:

# smbpasswd -a userid

for each user (from root)? The samba password is stored separately from the login password, and must be established with the smbpasswd command.

cRuNcHiE
27th November 2004, 03:32 PM

The shares are guest shares so no password is needed so i dont need to do that do i ?, also all my other shares work fine, it is only shares within the home directory that dont work.

I just updated to 3.0.9 and still have the same problem

macemoneta
27th November 2004, 04:12 PM
Hmm, I don't see a definition for your home shares in the smb.conf extract you posted. It should look like:

[homes]
comment = Home Directories
guest ok = no
browseable = yes
writable = yes
path=/home/%U

cRuNcHiE
27th November 2004, 05:16 PM
The media share is linked to a folder within home....

what you have just pasted would share each home directory per user as they login,

I can access my share in the home folder fine if i login with that users login/pass via samba

But what i want is a globally accessible share in there that guest users can read, or is that not possible?
Below is my current smb.conf now cleaned and written again....

Torrents 1 is the home share that id like to be visible to guests. As you can see i have guest enabled...
I have tried to access the share in the following ways from my xbox...

smb://home-username:password@linuxpc/torrents1 WORKS

smb://linuxpc/torrents1 DOES NOT WORK - error = share not found

smb://guest@linuxpc/torrents1 DOES NOT WORK - error = share not found

i then set a guest password as guest using smbpasswd

smb://guest:guest@linuxpc/torrents1 DOES NOT WORK - error = share not found

Share on other drive...
smb://linuxpc/torrents2 WORKS FINE



[global]
server string = Samba Server
password server = None
guest account = guest
username map = /etc/samba/smbusers
log file = /var/log/samba/log.smbd
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
guest ok = Yes

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
#Only person that can access torrents 1 is me if i use smb://username:password@pcname/torrents1 , Guest users still cant#
[torrents1]
comment = torrents1
path = /home/crunchie/!Downloads!
public = Yes
guest ok = Yes
browseable = yes

# anyone can access torrents 2 without a password fine#
[torrents2]
comment = usbhdd
path = /media/USBHDD

[homes]
comment = Home Directories
guest ok = no
browseable = yes
writable = yes
path=/home/%U