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
Comment Utility

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

Comment Utility
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
Comment Utility
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.


Author Comment

Comment Utility
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

Comment Utility
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

Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at

771 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

10 Experts available now in Live!

Get 1:1 Help Now