Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm trying to grab some files off of a computer that no longer boots to OS.

On the SRCD computer:

  • I put in SRCD, boot, and make sure that I can ping the other computer (say I set the IP to 192.168.0.50 and the hostname to sysresccd)
  • I use ntfs-3g to mount the windows partition to /mnt/windows.
  • I chmod the /mnt/windows partition to 777
  • I edit /etc/samba/smb.conf.default and put in this:

[public]
path = /mnt/windows
public = yes
writable = yes
printable = no
browsable = yes

  • I use passwd to change the root password to password
  • I start up smbd

On the Windows 7 computer:

  • I go to Explorer, type in \\192.168.0.50\public and it comes up with a Windows Security dialog box
  • I enter username sysresccd\root and password password

It keeps telling me that ‘The specified network password is not correct’
Is there a step that I'm missing?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Samba doesn't use the Unix password database because the hashes are stored in a format that is not compatible with CIFS. You need to use the command smbpasswd username to update the samba password database.

share|improve this answer
    
You are awesome. That was the answer, but System Rescue CD didn't come with smbpasswd installed so I used pdbedit -a -u root to get the smb user in there. Thanks! –  blsub6 Mar 14 '12 at 7:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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