LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-15-2005, 11:51 PM   #1
c0uchm0nster
Member
 
Registered: Nov 2003
Distribution: debian
Posts: 62

Rep: Reputation: 15
Samba trouble


Fedora 3
Samba 3.081013
Windows XP Pro SP2
OpenVPN running on 10.8.0.0/24

Samba Server eth0 is static ip 209.198.x.x - don't want any sharing on this.
OpenVPN virtual TUN - 10.8.0.1
Windows XP virtual TUN - 10.8.0.6

the vpn works fine, they can ping each other and access each others various servers just fine.

Windows machine is on workgroup Olmzog
Samba server is moving around a bit:
when set to anything other than Olmzog the different workgroup never shows up on the windows machine (waiting hours, rebooting windows machine, announces etc).
Set samba server to Olmzog workgroup and the machine shows instantly on Windows machine.

Windows can't view the samba servers shares - can't even "open" the samba server to see what shares are available. Never asks for a password or anything.
Can't mount.cifs or mount -t smb any shares on the Windows machine from the samba machine - mount.cifs says it can't find the windows machine, mount -t smb says connection failed.

Any ideas? I know this is a very basic question but for some reason I've had terrible luck with samba in the past (never been able to get it going right as a matter of fact).

P.S. the windows shares work fine on it's physical LAN with other windows machines - so im almost positive it's a samba configuration problem

[edit]P.P.S. if i run the net use command on the windows machine, along with the /USER flag for it of an existing samba user i will get access denied even after entering the correct password.[/edit]

Last edited by c0uchm0nster; 05-16-2005 at 12:48 AM.
 
Old 05-16-2005, 03:01 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
did u add a samba user

add a valid machine user to samba user as

smbpasswd -a <username>

and set the password with this comand
 
Old 05-16-2005, 06:31 AM   #3
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
Its been a little bit since I've played with samba on my machine, but I had a similar problem I was unable to resolve. It ended up that the reduced file sharing security in WinXP Home prevented the XP machine from accessing samba shares after the installation of SP1. I tried tirelesly for days even compiling a new samba version from there latest code to no avail. This may be your culprit though I hope not good luck.

Alex
 
Old 05-16-2005, 11:42 AM   #4
c0uchm0nster
Member
 
Registered: Nov 2003
Distribution: debian
Posts: 62

Original Poster
Rep: Reputation: 15
Thank you both for the replies.
I do have a samba user setup with a password - that's the one I get access denied with when using the net use /user command in windows.
I'm trying to access the default "homes" share by the way.

And yes I thought of the simple file sharing stuff - cuases lots of headaches on windows only networks too - but the machine is Windows XP Pro, and has simple file sharing disabled - so it does try and use user names as it should.

Still, I can't even view the available samba shares via the windows machine. Shouldn't this be possible without a username/login?
I mean on a windows<->windows network if you go to network places, you then see the workgroups, inside the workgroups you see the computers, if you double-click on the computers you see their available shares. It's not until you try browsing into one of those shares that permissions become a problem with windows setups.
I'm getting access denied errors just trying to browse the samba machines available shares.

By the way, some more notes: I have OpenVPN configured correctly on client and server side specifically for using Samba so, while I am going to try accessing samba shares using the physical eth0's subnet today I don't think I'm going to get any better results.

Thanks again for the ideas, keep them coming
 
Old 05-16-2005, 11:56 AM   #5
Sern
Member
 
Registered: May 2005
Location: New York
Distribution: Fedora Core 3
Posts: 57

Rep: Reputation: 15
Talking

can you dump your smb.conf please =D
 
Old 05-16-2005, 12:05 PM   #6
c0uchm0nster
Member
 
Registered: Nov 2003
Distribution: debian
Posts: 62

Original Poster
Rep: Reputation: 15
I knew someone would ask this eventually
I also have a feeling someone's about to make me feel very stupid.
Code:
[global]
	log file = /var/log/samba/%m.log
	load printers = yes
	idmap gid = 16777216-33554431
	socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
	interfaces = 10.8.0.0/24
	hosts allow = 10.8.0.0/24 127.0.0.1
	winbind use default domain = no
	template shell = /bin/false
	dns proxy = no 
	netbios name = SA-Webserver
	cups options = raw
	server string = Samba Server
	idmap uid = 16777216-33554431
	workgroup = Olmzog
	os level = 20
	printcap name = /etc/printcap
	security = user
	max log size = 50

[homes]
	browseable = no
	comment = Home Directories
	writable = yes

[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
# Set public = yes to allow user 'guest account' to print
   guest ok = no
   writable = no
   printable = yes
mind you i have tried [home] browseable = yes with no difference
 
Old 05-16-2005, 06:22 PM   #7
Sern
Member
 
Registered: May 2005
Location: New York
Distribution: Fedora Core 3
Posts: 57

Rep: Reputation: 15
try this for the homes share

[homes]
create mask = 0777
writeable = yes
browseable = yes
public = yes
 
Old 05-16-2005, 08:21 PM   #8
c0uchm0nster
Member
 
Registered: Nov 2003
Distribution: debian
Posts: 62

Original Poster
Rep: Reputation: 15
tried it with no change in the results.
Unfortunately I didn't get a chance to try samba out on a physical network today, hopefully soon though.

Anyone else with any ideas?
 
Old 05-16-2005, 09:00 PM   #9
c0uchm0nster
Member
 
Registered: Nov 2003
Distribution: debian
Posts: 62

Original Poster
Rep: Reputation: 15
small update: i was reading through the posts and noticed i never mentioned that the samba server can browse the windows machines shares just fine
 
Old 05-16-2005, 09:22 PM   #10
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
try running this

smbclient '//<sambaserver machine name>/homes' -U<username>

this will prompt for a password

see that u can get to the smb shell

if not then comment this friom ur smb.conf

template shell = /bin/false

and restart samba and try to relogin using smbclient

regards
 
Old 05-16-2005, 10:40 PM   #11
c0uchm0nster
Member
 
Registered: Nov 2003
Distribution: debian
Posts: 62

Original Poster
Rep: Reputation: 15
getting connection failed either way.
just to be clear - i tried this from the samba server machine (the smbclient command that is)
Code:
(%:~)- smbclient '//SA-Webserver/homes' -U linux_server
Connection to SA-Webserver failed
[edit] yes i know its a terrible username [/edit]
 
Old 05-16-2005, 10:42 PM   #12
c0uchm0nster
Member
 
Registered: Nov 2003
Distribution: debian
Posts: 62

Original Poster
Rep: Reputation: 15
i swear i have some kind of hex against getting samba working right - this is my third attempt (first being fairly comfortable in a linux environment), always spend days on forums trying to get things worked out and the replies always die out hehe.
 
Old 05-16-2005, 10:49 PM   #13
danielanson
Member
 
Registered: May 2005
Location: San Antonio, TX
Distribution: OpenBSD 3.7
Posts: 76

Rep: Reputation: 15
Does noone ever use SWAT anymore? It makes it really easy.

http://h30097.www3.hp.com/docs/iass/...-samba-options

 
Old 05-16-2005, 10:59 PM   #14
c0uchm0nster
Member
 
Registered: Nov 2003
Distribution: debian
Posts: 62

Original Poster
Rep: Reputation: 15
tried swat in the past - had no more luck than straight editing of smb.conf
tried webmin's samba interface in the past - with slightly better luck, but still not fully working
 
Old 05-16-2005, 11:14 PM   #15
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
ok instead of the machine name in smbcleint try using the machine IP

regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
samba install trouble nbolli Linux - Software 1 09-17-2004 06:02 PM
samba trouble: not available bjojoi Linux - Networking 0 08-25-2003 05:26 PM
samba trouble mattymcg88 Linux - Networking 7 06-02-2003 08:57 PM
Samba trouble bjojoi Linux - Networking 8 02-17-2003 02:35 PM
having trouble with samba.conf aaronluke Linux - General 0 09-30-2002 07:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:23 AM.

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