LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-17-2009, 08:43 AM   #16
Nuvious
Member
 
Registered: Mar 2005
Posts: 34

Original Poster
Rep: Reputation: 16

Quote:
Originally Posted by john test View Post
What happens if you go to Win Vista > start > network and several minutes for the samba share to appear?

If it appears and you click on it, does it give you a login prompt?

If you get the samba share login prompt, can you not just login with the uid/pw from the linux machine that is being shared?

Do you have identical accounts/passwords on both Vista and Linux/Samba?
When browse the network NUVNETNAS is the first thing to come up actually, so the server's responding pretty quickly. There is no login prompt for this particular share. However, when I was trying to set up a network share I got a similar error message. My samba account is not similar to my windows account though (user is nasuser :/). When I did have authentication, I had made sure to smbpasswd -a the nasuser.

TO REITERATE THOUGH:
This is just a bare public share and should work as a read-only share that does not require authentication. I am not prompted for a login when I access it but get the error after about 15/20 seconds :/.
 
Old 02-17-2009, 09:41 AM   #17
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
Your original post seems to indicate that the link is trying to take you to a non-existant location "NAS_PUBLIC".
What happens if you create user "NAS_PUBLIC" so that there is a folder /home/NAS_PUBLIC to go to?
 
Old 02-17-2009, 10:32 AM   #18
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Quote:
Originally Posted by Nuvious View Post
It definitely not the firewall. I can access Windows shares from THIS linux box, just not visa versa. I have a linux laptop that I can still access shares from my Vista/Windows 7 machine with no trouble, so it has to be something with this machine. Both Fedora and my Vista/Windows 7 firewalls are configured correctly.
Sorry I tend to Check things like this rather than assume my configuration is perfect.. It's not troubleshooting if you don't verify.

Just because you can go out through a firewall does not mean you can initiate a connection outside and come back through.

best of luck, I hope your assumptions are correct.
 
Old 02-17-2009, 10:46 AM   #19
pentode
Member
 
Registered: Dec 2005
Location: Oregon
Distribution: Debian Testing
Posts: 488

Rep: Reputation: 38
Do you have a Windows XP machine you can try? There are significant differences in networking configurations in Vista.
 
Old 02-17-2009, 11:40 AM   #20
Nuvious
Member
 
Registered: Mar 2005
Posts: 34

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by pentode View Post
Do you have a Windows XP machine you can try? There are significant differences in networking configurations in Vista.
Unfortunately no all my machines are either running Vista or Windows 7 at this point in time.

P.S. Thanks for all the suggestions everyone's been sending btw.
 
Old 02-17-2009, 01:40 PM   #21
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Could be how windows is responding to auth requests..

3 - "Send NTLMv2 response only"
1 - "Send LM & NTLM - use NTLMv2 session security if negotiated"


Windows Registry

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa "LmCompatibilityLevel"

if that value is set to 3, change it to a 1 and try to connect again.
 
Old 02-17-2009, 04:35 PM   #22
Nuvious
Member
 
Registered: Mar 2005
Posts: 34

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by farslayer View Post
Could be how windows is responding to auth requests..

3 - "Send NTLMv2 response only"
1 - "Send LM & NTLM - use NTLMv2 session security if negotiated"


Windows Registry

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa "LmCompatibilityLevel"

if that value is set to 3, change it to a 1 and try to connect again.
Have already done that :/ and as I mentioned prior I have a linux-laptop with shares that I can access without issue. I'm 99.9% certain this is a fedora/samba issue at this point. Is there any windows logs I could access that could help me figure out what error specifically caused this issue? The event viewer doesn't seem to log this issue :/.
 
Old 02-17-2009, 04:52 PM   #23
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I'd take a punt on an SELinux issue. Try disabling it temporarily with "setenforce =0" and see if it works. If that fixes the problem, read
Quote:
# SELINUX NOTES:
#
# If you want to use the useradd/groupadd family of binaries please run:
# setsebool -P samba_domain_controller on
#
# If you want to share home directories via samba please run:
# setsebool -P samba_enable_home_dirs on
#
# If you create a new directory you want to share you should mark it as
# "samba-share_t" so that selinux will let you write into it.
# Make sure not to do that on system directories as they may already have
# been marked with othe SELinux labels.
#
# Use ls -ldZ /path to see which context a directory has
#
# Set labels only on directories you created!
# To set a label use the following: chcon -t samba_share_t /path
#
# If you need to share a system created directory you can use one of the
# following (read-only/read-write):
# setsebool -P samba_export_all_ro on
# or
# setsebool -P samba_export_all_rw on
#
# If you want to run scripts (preexec/root prexec/print command/...) please
# put them into the /var/lib/samba/scripts directory so that smbd will be
# allowed to run them.
# Make sure you COPY them and not MOVE them so that the right SELinux context
# is applied, to check all is ok use restorecon -R -v /var/lib/samba/scripts
#
#--------------
follow the instructions and re-enable SELinux with "etenforce 1". These are CentOS5 instructions, but should be good for F10

As for logs, check /var/log/audit/audit.log
 
Old 02-17-2009, 06:50 PM   #24
Hypnoz
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Rep: Reputation: 0
In global I have
guest ok = yes

I'm not sure if this would make a difference.

as a stanza, I have

[Samba]
comment = Samba Test Share
path = /tmp/Samba/
browsable = yes
writable = yes
guest ok = yes

I noticed my "guest ok = yes" is different than your "guest only = yes".

If you're worried about SElinux, you could just set it to permissive with the command
# setenforce permissive

Otherwise, there are 4 directives associated with samba.

allow_smb_anon_write
samba_enable_home_dirs
samba_share_nfs
use_samba_home_dirs

I would just disable SElinux for now to remove that as a variable. But you can always setseboot -P <name> 1

Try connecting to your server with ip address instead of hostname. Also, try to create and share a directory in /tmp instead of /home.

Last edited by Hypnoz; 02-17-2009 at 06:52 PM.
 
Old 02-23-2009, 07:46 AM   #25
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Any luck?
What was the solution?
 
Old 02-23-2009, 08:45 AM   #26
Nuvious
Member
 
Registered: Mar 2005
Posts: 34

Original Poster
Rep: Reputation: 16
Sorry about the late update (just got around to trying SELinux stuff today. All of the issues I was running into were due to SELinux Policies that weren't checked off. Also I needed to set the guest user on the system to nasuser which had ownership permissions on the files). Thanks for the help everyone!

Quote:
Originally Posted by archtoad6 View Post
Any luck?
What was the solution?
 
  


Reply

Tags
firewall, public, samba, share, solution, vista



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
Vista issues with SMB, fixed with rinetd lefty.crupps Linux - Networking 3 08-04-2007 05:48 AM
10.2 can't modify files on windows share through SMB ajsitch SUSE / openSUSE 2 01-19-2007 08:55 AM
SMB Share Issues Soulful93 Linux - Networking 7 09-06-2005 06:28 PM
Can't access a smb share from windows digitalspillage Linux - Newbie 2 10-05-2003 09:42 AM
smb windows share need help pissy_pants Linux - Networking 4 09-04-2003 01:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:06 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