LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-26-2011, 10:53 PM   #1
unclejed613
Member
 
Registered: Mar 2009
Posts: 352

Rep: Reputation: 32
running samba on 13.37.... only one problem


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/
 
Old 05-27-2011, 04:22 AM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Try using "guest ok = Yes" in the [movies] service. I do not think that "guest ok = Yes" should appear in the global section of smb.conf.
 
Old 05-27-2011, 06:27 AM   #3
unclejed613
Member
 
Registered: Mar 2009
Posts: 352

Original Poster
Rep: Reputation: 32
it was done that way by SWAT. i'm trying to figure out what the xbox is looking for that's not there...
 
Old 05-27-2011, 07:39 AM   #4
xj25vm
Member
 
Registered: Jun 2008
Posts: 393

Rep: Reputation: 68
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.
 
Old 05-27-2011, 07:51 AM   #5
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
You could look at this http://viperxx.com/index.php/Xbox_360_Linux_Samba

From http://www.samba.org/samba/docs/man/...mb.conf.5.html. Note the (S) for service.
Quote:
guest ok (S)

If this parameter is yes for a service, then no password is required to connect to the service. Privileges will be those of the guest account.

This paramater nullifies the benifits of setting restrict anonymous = 2

See the section below on security for more information about this option.

Default: guest ok = no
Maybe SWAT got it wrong?
 
Old 05-27-2011, 07:23 PM   #6
unclejed613
Member
 
Registered: Mar 2009
Posts: 352

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by xj25vm View Post
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.
 
Old 05-28-2011, 12:32 AM   #7
acummings
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 615

Rep: Reputation: 50
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
--
Alan.
 
Old 05-28-2011, 03:32 AM   #8
xj25vm
Member
 
Registered: Jun 2008
Posts: 393

Rep: Reputation: 68
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
 
Old 05-28-2011, 09:25 AM   #9
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
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.
 
Old 05-29-2011, 02:46 PM   #10
unclejed613
Member
 
Registered: Mar 2009
Posts: 352

Original Poster
Rep: Reputation: 32
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.
 
Old 05-29-2011, 04:52 PM   #11
unclejed613
Member
 
Registered: Mar 2009
Posts: 352

Original Poster
Rep: Reputation: 32
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Running Samba on openSUSE 11.1 chubbs Linux - Newbie 1 12-20-2009 11:08 PM
Is Samba running? rcschroeder Slackware - Installation 2 01-12-2007 09:01 AM
Problem Running Win32 Applications Through A Samba Network TheWrldCanWait Linux - Networking 6 03-29-2006 06:08 AM
Samba - Connecting from WinXP Pro to Samba running on Debian critical Linux - Networking 1 02-03-2005 09:36 AM
running samba worked, running it out of xinetd doesn't? system Linux - Networking 1 12-24-2001 03:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration