[SOLVED] running samba on 13.37.... only one problem
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
every machine on the local network, one macbook, one winxp machine, one vista machine and another slack box can see my samba "movies" share.... all except for an xbox 360 which the family uses as a media center.
here's my smb.conf:
Code:
# Samba config file created using SWAT
# from UNKNOWN (127.0.0.1)
# Date: 2011/05/09 20:20:56
[global]
workgroup = STBM
interfaces = 192.168.0.9
bind interfaces only = Yes
security = SHARE
map to guest = Bad User
guest account = jed
lanman auth = Yes
log file = /var/log/samba/sambalog
max log size = 50
acl compatibility = winnt
server signing = auto
add user script = /usr/sbin/useradd %u
delete user script = /usr/sbin/userdel %u
add group script = /usr/sbin/groupadd %g
delete group script = /usr/sbin/groupdel %g
delete user from group script = /usr/sbin/deluser %u %g
set primary group script = /usr/sbin/groupadd %g
add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
logon path = %5C%5C%25N%5C%25U%5Cprofile
logon home = %5C%5C%25N%5C%25U
os level = 33
lm announce = Yes
preferred master = Yes
local master = No
domain master = No
dns proxy = No
guest ok = Yes
hosts allow = 192.168.0., 127.
[homes]
comment = Home Directories
read only = No
[printers]
comment = All Printers
path = /var/spool/samba
guest ok = No
printable = Yes
browseable = No
[movies]
path = /jed-docs/downloads/movies
username = jed
read only = No
hosts allow = 192.168.0.
hide files = bin/lib/
You might want to follow the login attempts in the samba log and see what's happening. Shutdown all the clients, power on the XBox, try to connect - and see what the last few lines in the Samba log on the server tell you.
You might want to follow the login attempts in the samba log and see what's happening. Shutdown all the clients, power on the XBox, try to connect - and see what the last few lines in the Samba log on the server tell you.
just tried again, no login attempts at all.... config set up for guest=yes globally, all shares browseable, etc. the xbox just does not see the share out there at all
i'm thinking the xbox is trying a port that samba doesn't have active, or looking for some "secret sauce" and not finding it.
FWIW, here's a *most insecure* smb.conf which makes smb easy and handy to use (I both rarely and manually start smb and also I only do so on my *secured lan*)
FWIW, as previously said, to do with guest is *not* in the global. I do not have an Xbox.
Code:
[global]
# workgroup = NT-Domain-Name or Workgroup-Name, eg: LINUX2
workgroup = WORKGROUP
cups options = raw
map to guest = Bad User
domain master = no
restrict anonymous = no
preferred master = no
max protocol = NT
server signing = Auto
domain logons = no
local master = yes
passdb backend = smbpasswd
netbios name = P5Q_SW122_SMB
encrypt passwords = yes
[home_al]
path = /home/al
read only = no
force user = root
force group = root
guest account = root
case sensitive = no
guest only = yes
guest ok = yes
browseable = yes
printable =no
# [mnt_dat_sda8]
# path = /mnt/dat_sda8
[mnt_sda_8]
path = /mnt/sda_8
read only = no
force user = root
force group = root
guest account = root
case sensitive = no
guest only = yes
guest ok = yes
browseable = yes
printable =no
Just few notes - I don't know if it will make a difference:
1. According to the samba website, "map to guest" option is not of any use when using "security = share".
2. I would start with a much simpler smb.conf - and build your way from there.
3. Looking on the internet, most examples involving samba and xbox seem to use "security=user". Make sure your xbox user has the same password on xbox and on the server, using smbpasswd.
I would start with the following, and then add to it if it works:
Code:
[global]
workgroup = STBM
security = user
guest account = jed
log file = /var/log/samba.%m
max log size = 1000
mangling method = hash2
mangle prefix = 6
[movies]
path = /jed-docs/downloads/movies
username = jed
read only = No
If you are using your xbox as a media center, you may want to try a dlna option. You can map the same directories that you are sharing for samba to be used for the dlna server. AlienBOB has a slackbuild for minidlna here. It's pretty easy to set up and I know it works because it's what I use for my 360. I couldn't get samba to work, so decided on this.
spent two hours installing ffmpeg and it's dependencies so i could install minidlna. went through the minidlna.conf file and set up what i needed.... now, running minidlna i get the following:
Code:
bash-4.1# minidlna
minidlna: error while loading shared libraries: libavformat.so.52: cannot open shared object file: No such file or directory
bash-4.1#
what if i just open port 8200 in samba?
Last edited by unclejed613; 05-29-2011 at 02:50 PM.
ok, got it working.... installed the alien bob slack build of ffmpeg, then tried minidlna again and it worked, and now the xbox sees the share and plays files from it.... marking as solved
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.