Can see vista from linux pc can't access shared files

I have set up samba and it seems xp to linux are running fine. I can share files between both.

From vista laptop can see lunxpc and access files, can create files etc. All ok.

My problem is getting access to vista shared files from linux pc.

Have fixed IPs on all machines. Have been using swerdnas tutorials and at present I have the firewall turned off.

Here is my smb.conf file, I have tried using a LMB and you can see I have commented it out to try using a WINS. Still cant browse from linux to vista though can see the vista machine in my network.

Netbios is enabled in vista.

Any ideas anyone?

smb.conf is the main Samba configuration file. You find a full commented

version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the

samba-doc package is installed.

Date: 2008-06-06

[global]
workgroup = WORKGROUP
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
logon path = \%L\profiles.msprofile
logon home = \%L%U.9xprofile
logon drive = P:
usershare allow guests = Yes
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
security = user
netbios name = linux-u706
usershare max shares = 100
#preferred master = Yes
#local master = yes
#os level = 65
name resolve order = wins bcast host lmhosts
include = /etc/samba/dhcp.conf
wins support = Yes
wins server = 192.168.1.130
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775

Share disabled by YaST

[netlogon]

the problem is not your conf thats the version form your samba.

try to change regedit on the vista system HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa

in key LmCompatibilityLevel from 3 to 1

or update samba server.

Thanks for the getting back to me.

Prior to getting your reply I rebooted and had to change my smb.conf file as network wasn’t visible. See below…

preferred master = Yes
local master = yes
os level = 65
name resolve order = wins bcast host lmhosts
#wins support = Yes
#wins server = 192.168.1.130

So this puts me back on an LMB.

Have changed the registry on vista, doesn’t seem to change things. Even after a reboot. What have I just changed btw? Shall I change it back?

As far as updating samba server, it is the most recent version if thats what you mean.

Have even updated firmware on my router.

Is this a opensuse 11 issue? Lot of the advice tutorials and screenshots look like a different version. Would I be better to downgrade?

name resolve order = bcast host lmhosts wins

Try that now that wins support is off.

Incidentally, you can’t successfully have both these lines simultaneously because they contradict each other:
wins support = Yes
wins server = 192.168.1.130

The first says “I am a wins server”
The second says “I am not a wins server”

If you set for a wins server – did you set vista to use a wins server too? If you did, now you should unset it. If you didn’t set vista to use a wins server – OK

Sometimes it takes 10 minutes for the network to settle after any single configuration change.

Hi,

Changed the tag back to

name resolve order = bcast host lmhosts wins

still no change.

So this time went back and set up wins as you suggested and pointed both windows machines at the correct ip.

Still no change on me being able to access and change files on vista from linuxpc. But I can share the printer connected to linuxpc on vista and xp, which I couldn’t last night. So something is working better.

Here is my current smb.conf file

smb.conf is the main Samba configuration file. You find a full commented

version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the

samba-doc package is installed.

Date: 2008-06-06

[global]
workgroup = WORKGROUP
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
logon path = \%L\profiles.msprofile
logon home = \%L%U.9xprofile
logon drive = P:
usershare allow guests = Yes
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
security = user
netbios name = linux-u706
usershare max shares = 100
#preferred master = Yes
#local master = yes
#os level = 65
name resolve order = wins bcast host lmhosts
wins support = Yes
#wins server = 192.168.1.130
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775

Share disabled by YaST

[netlogon]

RioSteel wrote:

>
> Hi,
>
> Changed the tag back to
>
> name resolve order = bcast host lmhosts wins
>
> still no change.
>
> So this time went back and set up wins as you suggested and pointed
> both windows machines at the correct ip.
>
> Still no change on me being able to access and change files on vista
> from linuxpc. But I can share the printer connected to linuxpc on
> vista and xp, which I couldn’t last night. So something is working
> better.
>
> Here is my current smb.conf file
<snip>
RioSteel;

Window’s Firewall?


P. V.
“We have met the enemy an he is us” Pogo

Had forgot to look at that, but just been through and turned it off and still no difference.

Any other ideas?

Let’s go through a few diagnostics. Try these commands. Enter su to become root first. They will analyse the name resolvability of the link to vista. The non-bold text shows what I get. What do you get?

rcnmb status
Checking for Samba NMB daemon running

rcsmb status
Checking for Samba SMB daemon running

smbclient -L dragavista -U draga | grep Disk
Enter draga’s password:
Domain=[DRAGAVISTA] OS=[Windows Vista ™ Business 6001 Service Pack 1] Server=[Windows Vista ™ Business 6.0]
Domain=[DRAGAVISTA] OS=[Windows Vista ™ Business 6001 Service Pack 1] Server=[Windows Vista ™ Business 6.0]
ADMIN$ Disk Remote Admin
C$ Disk Default share
print$ Disk Printer Drivers
Users Disk
vistashare Disk

Change dragavista to the network name of the vista machine and change draga to the username of the owner of a share on the vista machine.

smbclient -L 10.1.1.4 -U draga | grep Disk
Enter draga’s password:
Domain=[DRAGAVISTA] OS=[Windows Vista ™ Business 6001 Service Pack 1] Server=[Windows Vista ™ Business 6.0]
ADMIN$ Disk Remote Admin
C$ Disk Default share
print$ Disk Printer Drivers
Users Disk
vistashare Disk

Change 10.1.1.4 to the IP address of the vista machine and change draga to the username of the owner of a share on the vista machine.

RioSteel wrote:

>
> Had forgot to look at that, but just been through and turned it off and
> still no difference.
>
> Any other ideas?
>
>
RioSteel;

Follow Swerdna on the Linux end, at the VISTA end consider the following:

Any third party internet security suite? (e.g. AVG, McAfee, Symantec/Norton)
that could be running a firewall?

On the file(s) you have shared, is the Everyone group listed as a Co-Owmer?
Unlike earlier versions of Windows, there is much better control of which
user(s) can access a share. (Properties->Sharing->share) and are the
permissions correct for “Everyone” (Properties->Security).

Can other machines (XP/VISTA) access the shares?


P. V.
“We have met the enemy an he is us” Pogo

Hi guys,

Thanks for looking again.

PV… In relation to vista. For now the only security is Windows Firewall which is turned off. The vista shares are set to allow all users access. I configured them when we first got the vista laptop and added to the original xp network. I have changed to allow everyone as a co-author. Still no change.

Swerdna… Have pasted below the results from the diagnostics you said to run:

nmb status running
smb status running

linux-u706:/home/leon # smbclient -L LEON-PC -U Leon | grep Disk
Enter Leon’s password:
Domain=[LEON-PC] OS=[Windows Vista ™ Home Premium 6001 Service Pack 1] Server=[Windows Vista ™ Home Premium 6.0]
Domain=[LEON-PC] OS=[Windows Vista ™ Home Premium 6001 Service Pack 1] Server=[Windows Vista ™ Home Premium 6.0]
ADMIN$ Disk Remote Admin
C$ Disk Default share
print$ Disk Printelinux-u706:/home/leon # smbclient -L LEON-PC -U Leon | grep Disk
Enter Leon’s password:
Domain=[LEON-PC] OS=[Windows Vista ™ Home Premium 6001 Service Pack 1] Server=[Windows Vista ™ Home Premium 6.0]
Domain=[LEON-PC] OS=[Windows Vista ™ Home Premium 6001 Service Pack 1] Server=[Windows Vista ™ Home Premium 6.0]
ADMIN$ Disk Remote Admin
C$ Disk Default share
print$ Disk Printer Drivers
Public Disk
S$ Disk Default share
testshare Disk samplshare
Users Diskr Drivers
Public Disk
S$ Disk Default share
testshare Disk samplshare
Users Disk

This seems to be similar to yours

linux-u706:/home/leon # smbclient -L 192.1.1.128 -U Leon | grep Disk
Enter Leon’s password:
Domain=[LEON-PC] OS=[Windows Vista ™ Home Premium 6001 Service Pack 1] Server=[Windows Vista ™ Home Premium 6.0]
ADMIN$ Disk Remote Admin
C$ Disk Default share
print$ Disk Printer Drivers
Public Disk
S$ Disk Default share
testshare Disk samplshare
Users Disk

Again seems to be similar to yours

I have seen on another thread some more info on Global settings namely:

    lanman auth = Yes
client NTLMv2 auth = Yes
    client lanman auth = Yes

Which I added and changed from the default no. Is this good or bad what exactly do they do?

RioSteel wrote:

>
> Hi guys,
>
<snip by PV>
> ----------------------------------
>
>
> I have seen on another thread some more info on Global settings
> namely:
>
> lanman auth = Yes
> client NTLMv2 auth = Yes
> client lanman auth = Yes
>
> Which I added and changed from the default no. Is this good or bad
> what exactly do they do?
>
RioSteel;

Lanman is the password hash used by DOS and Windows9X. The encryption is
easy to break, thus it is not considered very secure. I can not imagine it
has anything to do with your VISTA problem.

It seems that Samba is working fine. But as another check try, from a
console,

smbclient //<machine name>/<shared file> -U <user name>

it should prompt for a password and then display the prompt:

smb: &gt;

you can now give Linux commands, try ls to see if it lists your shares, or
cd to change directories. If all this works the problem may be how you are
trying to view the shares in Linux and not in your Samba configuration.

(Oh yes, to return to the regular prompt type q)


P. V.
“We have met the enemy an he is us” Pogo

PV your a genius, I’m a noob. When I used the smbclient command. It worked. Thanks, you’ve stopped my premature baldness in its tracks.

It connected to the the testshare directory I had created on vista. Typed dir and it listed my files. Woo Hoo!!

So I went to nautilus and clicked on Leon-PC (vista) and same as usual happened I couldn’t see any files. But when I added testshare to the end of

smb://leon-pc/
:.
smb://leon-pc/testshare

…it listed the files in the directory :confused:

So I am able to connect to the vista machine I can browse, edit, create and delete files. I may have been able to always.

But why when I click on the vista machine from linux are no shared files displayed. I just assumed it would work in the same way as connecting to xp. Which as you guessed lists all shared files on the xp machine?

Any takers?

RioSteel wrote:

<snip>
>
> But why when I click on the vista machine from linux are no shared
> files displayed. I just assumed it would work in the same way as
> connecting to xp. Which as you guessed lists all shared files on the
> xp machine?
>
> Any takers?
>
>
RioSteel;

I’ve seen one server that acts similarly(Konqueror). If you click on a
Windows machine it will give an error (file or folder does not exist), but
then if you RELOAD the page the shares are displayed. Since there is
normally no need to pull things up to the server, I never spent a lot of
time trying to solve it.

Just for my information, try and see if reloading displays the shares.

P. V.
“We have met the enemy an he is us” Pogo

Sound thanks for the help. You too swerdna.

As a workaround I have added the folder I’m trying to access as a bookmark and this works fine.

Glad for you RioSteel

Just to tidy a few loose ends for other’s who might get here on the search facility:

Vista and Suse didn’t work together without assistance up to and including OpenSuse 10.2; 11.0 wityh Samba 3.2 is fine with vista.

Vista comes configured appropriately for Samba. There’s no need to adjust the vista firewall from the defaults – that allows Samba through. There’s no need to adjust the default NTLMv2 authentication that comes with Vista (i.e. “NTLMv2 responses only” in secpol is just fine). There is no need to adjust the default authentication that comes with Samba for NTLMv2 (i.e. “client NTLMv2 auth = No” is just fine).

I don’t know what adjusting the vista registry downwards will do; but it’s not necessary for Samba communications.

Regarding your real problem, which is drilling down from the netBIOS name “leon-pc” with “smb://leon-pc” – well I don’t know what it might be.

swerdna wrote:

>
> Glad for you RioSteel
>
> Just to tidy a few loose ends for other’s who might get here on the
> search facility:
<snip>

> Regarding your real problem, which is drilling down from the netBIOS
> name “leon-pc” with “smb://leon-pc” – well that doesn’t jive with this
> line in smb.conf:
>> netbios name = linux-u706
> So I guess if you’re still using that but browsing on “leon-pc”
> instead, then it would be confused.
>
>
Swerdna;

Leon-pc is the netbios name of the vista machine that he is trying to
connect to. Linux-u706 is the netbios name of the linux machine he is
connecting from. See his results from smbclient -L.

P. V.
“We have met the enemy an he is us” Pogo

:eek:
Guess who should have coffee first! Probably breakfast too.

swerdna wrote:

>
> PV;1849099 Wrote:
>>
>> Swerdna;
>>
<snip>

> :eek:
> Guess who should have coffee first! Probably breakfast too.
>
>
That is the only advantage of getting old, you can blame it on a senior
moment. :wink:

P. V.
“We have met the enemy an he is us” Pogo

I’m actually running into this same problem right now. I’ve set up openSUSE 11.0 on my laptop and am trying to configure some network sharing between it and my x64 Vista desktop.

Vista can find my linux Samba shares and can open them after authorization (added user name to Samba user/pass list). Linux can find Vista shares if I explicitly call them (
ame\share), but Nautilus can’t navigate to them (smb://name). And both machines can find other shares, such as my roommate’s x86 XP laptop and desktop.

I’m looking for a solution, so if you guys find anything, please let me know too. :slight_smile:

And this might be a little unrelated, but when I navigate to my roommate’s XP shared folder, Nautilus asks for a user/pass even though XP isn’t configured to need one. I can just enter nothing and it’ll let me through. Now, is there a way to have it test that first automatically without me needing to enter credentials? (ie: only prompt for user/pass if it’s needed)

I’m just checking back through earlier versions of openSUSE. Maybe it’s a new bug. Two users with the same problem – hmmm…