Samba and WindowsME, I see shares on linux machine but cannot access

Posted on 2001-09-10
Last Modified: 2010-03-18

I am having difficulty getting Samba to work. My objective is to be able to
access a directory on my linux computer from a Windows computer on the same
network. I have installed the samba rpm and am able to get the smbd and
nmbd daemons to work. I am also able to ping my windows computer from the
linux computer and vice versa. In the smb.conf file I have set up the
following service:

comment = /home/alec
browseable = yes
read only = no
create mode = 0750
directory = /home/alec

where /home/alec is the directory on the linux machine that I wish to
access from the Windows computer.

The linux computer appears in Network Neighborhood underneath the name of
the workgroup (that`s good). When I double click on the computer name, I
then see a folder named "alec", which is the name of the service.
When I double click on the folder, I am prompted for a password. I then
enter the password for the user named alec on the linux computer and it is
rejected. I have tried all other possible passwords, with no luck. I am
able to log in to the user "alec" with the password set for the

I have set up another user on the linux machine with the same name as on my
Windows machine, e.e. Alec McAndrew. I have assigned this user the same
password on the linux machine as on the Windows computer. I have the
following entry in the smb.conf

comment = Home directory
browseable = yes
read only = no
crate mode = 0750

I am able to see this service underneath the linux computer in , but when I
click on it I get the message: "the share name was not found".

Please note that in the networking properties the computer has the name
BC854431-G, given to me by the cable company for purposes of gaining access
to the Internet via cable modem. I have also read that NetBios names may be
relevant, but I am not sure what that name is or exatly what the relevance
might be to the above difficulties that I am having.

Thanks for anyone`s help.
Question by:amcandrew

Accepted Solution

BlackDiamond earned 100 total points
ID: 6472571

Try using the smbpasswd utility to set the smb password for that user.  If the user is not there yet, you may need to add an entry to the /etc/samba/smbpasswd file (and make sure to alias the smb username to the local user name).  Keep in mind that smbd does the authentication from the tokens that are created by smbpasswd (and stored in the smbpasswd file) not from the /etc/passwd file (where your normal authentication is done).  You are essentially creating 2 different users with the same name.

As for the home share, I don't see a path statment in what you listed above.  Don you have the path in your config?

Expert Comment

ID: 6473153
You also must enable "encrypted password" sections in the smb.conf file

encrypt passwords = yes, just before the:

smb passwd file = /etc/samba/smbpasswd, like BlackDiamond suggested.

Assisted Solution

swapsthegreat earned 100 total points
ID: 6492597
try adding this line to your [alec] share

public = yes

It wont ask for a password then.

As for the  [homes] it doesnt work for me as well
i guess maybe u need to specify a path for all home directories separately
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.


Author Comment

ID: 6504383
1. By using guest ok = yes I have gained access from my Windows machine

2. I have not yet had success with the following: [homes], creating a user on the linux_machine with the exact same user name as my user name on the Windows machine, and entering the same password in smbpasswd program as I use when I log on to Windows. (I gather that the Unix password may be different)  I wasn't sure what BlackDiamond meant by aliasing, but I can say that I used the same user name when setting up the Samba password file and when I look in the smbpasswd file, I see the proper user name and UID.

Expert Comment

ID: 9078678
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.

Expert Comment

ID: 9993838
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Split between BlackDiamond & swapsthegreat.
Please leave any comments here within the next seven days.


EE Cleanup Volunteer

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux - Fibre Channel arbitrated loop 2 99
Open BDS Pf 3 50
OpenWrt 1 43
Debian 8.5 networking quits working every couple of hours 13 104
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

831 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