Page 1 of 3 123 LastLast
Results 1 to 10 of 22

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

  1. #1

    Default 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]

  2. #2

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

    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.

  3. #3

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

    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?

  4. #4
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,731
    Blog Entries
    2

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

    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.
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  5. #5

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

    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]

  6. #6
    PV NNTP User

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

    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

  7. #7

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

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

    Any other ideas?

  8. #8
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,731
    Blog Entries
    2

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

    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 (TM) Business 6001 Service Pack 1] Server=[Windows Vista (TM) Business 6.0]
    Domain=[DRAGAVISTA] OS=[Windows Vista (TM) Business 6001 Service Pack 1] Server=[Windows Vista (TM) 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 (TM) Business 6001 Service Pack 1] Server=[Windows Vista (TM) 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.
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  9. #9
    PV NNTP User

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

    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

  10. #10

    Thumbs up Re: Can see vista from linux pc can't access shared files

    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 (TM) Home Premium 6001 Service Pack 1] Server=[Windows Vista (TM) Home Premium 6.0]
    Domain=[LEON-PC] OS=[Windows Vista (TM) Home Premium 6001 Service Pack 1] Server=[Windows Vista (TM) 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 (TM) Home Premium 6001 Service Pack 1] Server=[Windows Vista (TM) Home Premium 6.0]
    Domain=[LEON-PC] OS=[Windows Vista (TM) Home Premium 6001 Service Pack 1] Server=[Windows Vista (TM) 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 (TM) Home Premium 6001 Service Pack 1] Server=[Windows Vista (TM) 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?

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •