Sharing files over SMB protocol - Debian Linux and Windows XP

Posted on 2005-05-02
Last Modified: 2013-11-15

I'm in a network environment where most other machines on the switch are Windows XP and have file shares, which I cannot seem to access with the Samba setup I have. All I want to be able to do is access their file shares. At the moment when ever I try to connect with xsmbclient I get an NT_STATUS_ACCESS_DENIED error from the stdout and when I try using the Nautilus Windows network client I just get asked for passwords when in fact the shares should not require password authentication for access, and subsequently I am refused access.

Any thoughts?
Question by:GeneriK
    LVL 87

    Expert Comment

    Make sure your XP boxes have simple file and print sharing disabled. Then create users which are allowed access to all those PCs and give them access rights to the shares. If you are using knoqueror on your linux box, you should be able to connect to the xp boxes simply by entering smb://IPAddressOfWindowsBox/ShareName. You will then have to enter the username and password of the user you have just setup on the XP Box. You can also use "mount" to connect to a windows share.
    First create a mount point (/mnt/xp1), then use the following command to connect:

    mount -t cifs -o username=name //IpAddress/share /mnt/xp1

    You'l again be asked for the password. After that the shared drive of the xp box should be mounted in /mnt/xp1

    You'll have to do that as root. The cifs filesystem will also have to be installed. With older linux kernels this probably won't be the case (kernels below 2.6). With most newer systems cifs probably is installed already.
    LVL 1

    Author Comment

    I do not have adminstrative access to the Windows boxes. They are people's personal machines. There are no domain-wide users either - this is not an Active Directory controlled environment. All I want to do is get onto the Windows shares that have been set up for anonymous access, and for some reason are available to all the other Windows users but not to me.
    LVL 87

    Accepted Solution

    You don't need AD, but you have to get that simple file sharing option turned off, that only works with XP (and even then it is erratic). And you will have to create those users. Samba needs some sort of authentification, it is not like windows which throws all security into the winds. You'll have to get the admins of those PCs to make those changes if you don't have enough rights yourself. An alternative could be to use an ftp server program on those xp boxes. There are free 3rd party ftp programs available for windows (but you will again need enough rights to install them).
    LVL 2

    Expert Comment


    You should be able to access in anonymous user mode by entering null password (simple enter) when it asks for password.

    you can try using forward slash (/) instead of backward(\) in hostname.
    eg: smbmount //hostname/disk-share /mnt/point

    also before trying smbmount, try listing available shares on the server.
    eg: smbclient -L //hostname

    if that shows the shares properly with anonymous login then you should be able to mount them

    Hope this helps,

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Read only access to a user 5 83
    Cron jobs 12 64
    grub issue after new Debian installation 2 33
    help pulling data string using Awk 9 43
    This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
    This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now