Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Possible Duplicate:
how do we share files from Mac to Windows?

I am unable to access the filesystem on my Mac.

I can actually see the machine from my Windows Vista machine, but whenever I double click on the icon for it and type my password, it always takes it as an invalid login.

I have also tried directly accessing it with the IP address. I have done the following things to no avail:

  1. I have set both machines workgroups to be the same name.
  2. I have added the IP address of my machine and the router under WINS servers
  3. I have added a user account in Windows that is the same name as my user account on my Mac (OSX 10.5 Leopard).

I know I am not entering the wrong password because I am able to access my MacBook Pro using ssh, with my usual username, and I have no trouble logging in.

Tried doing this, but it doesn't work:

root# smbpasswd -a ted
New SMB password:
Retype new SMB password:
Failed to modify entry for user ted.
Failed to modify password entry for user ted.
share|improve this question

marked as duplicate by Ƭᴇcʜιᴇ007, slhck, 8088, Simon Sheehan, studiohack Nov 10 '11 at 16:06

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
possible duplicate of how do we share files from Mac to Windows? Specifically see This Answer : "...However, your mac will clearly demand a share password during the SMB share procedure in System Preferences. That password is independent of your login passwords on the mac..." –  Ƭᴇcʜιᴇ007 Oct 23 '11 at 16:49
add comment

1 Answer 1

up vote 0 down vote accepted

You need to set a Samba-password (Samba/SMB is the program/protocol that shares your files) for your username on your Mac. That password could be set to the same as your user's system-/SSH-password, but it's not necessary.

Run this as root (hence the #):

# smbpasswd -a myusername

Then type your new password, hit enter and repeat. If the username and password you use here are the same as the ones on your Vista machine, you will probably not be prompted for username/password when connecting to your Mac from Windows.

If you want to change your password later, run the same command without the -a argument.

share|improve this answer
    
This didn't appear to work: $ sudo smbpasswd -a Password: New SMB password: Retype new SMB password: Failed to modify entry for user root. Failed to modify password entry for user root –  Flethuseo Oct 25 '11 at 2:00
    
@Flethuseo Whoha, don't use root as a samba user! Set up the samba password for a normal user... –  poplitea Oct 25 '11 at 2:03
    
@Flethuseo Remember to replace myusername in the above code with a normal user's username... –  poplitea Oct 25 '11 at 2:07
    
It still isn't working :\ root# smbpasswd -a ed New SMB password: Retype new SMB password: Failed to modify entry for user ed. Failed to modify password entry for user ed –  Flethuseo Oct 25 '11 at 2:08
    
@Flethuseo But does the user ed exist as a user on your Mac system? Otherwise, you'll have to create this user first. –  poplitea Oct 25 '11 at 2:13
show 2 more comments

Not the answer you're looking for? Browse other questions tagged or ask your own question.