LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Configuring Samba (https://www.linuxquestions.org/questions/linux-networking-3/configuring-samba-45122/)

F|eA 02-12-2003 05:21 PM

Configuring Samba
 
I quite new to all this stuff still :)
I've got Slackware 8.1 running on a AMD k6-2 400 machine
It's my server and I just installed samba so i can browse the directories of my 20 GB hdd installed. Store files as back up and what not.

I got the package off the samba site, samba-2.2.7-i386-1.tgz
using pkgtool i installed and and configured it
I can do smbclient -L Nemesis (slackmachine) and get a list of shares
I can also so smbclient -L Matrix (WINXP Machine) and get a list of it's share
However, i set the smb.conf to
encryption = yes

when I try and browse in winxp, i see the folder, but it prompts me for log and password, but of which i don't have and i tried creating using
smbpasswd (both as root and as use account) both times it failed saying i can't modify as root and when i tried as my user (flea) i get the error:
Quote:

machine 127.0.0.1 rejected the password change: Error was : RAP86: The specified password is invalid.
Failed to change password for flea
I read the page on encryption, (I linked it all on to my server for easy reading without visiting too many pages) http://flea.ods.org/samba-2.2.7/docs...NCRYPTION.html
but when i search for a mksmbpasswd.sh I don't have such a file,
I do have a smbpasswd but it's are jargon and not in the proper format as said

Will the guru's please help a n00b? :)

michaelk 02-12-2003 07:41 PM

Only root can create samba passwords. Check permissions for smbpasswd. syntax is smbpasswd -a <username>

The username should be an existing account on both the windows and linux boxes.

encryption = yes

should be

encrypt passwords = yes

You can check the syntax of the smb.conf file with the console command

testparm

jamrock 02-12-2003 07:56 PM

http://www-1.ibm.com/servers/esdd/tu...mba/index.html

http://networking.earthweb.com/netos...le.php/1144701

http://networking.earthweb.com/netos...le.php/1151091

F|eA 02-12-2003 08:40 PM

encrypt passwords = yes
is actually waht i have, was typing that stuff off my memory,
i was able to add a flea user which is good, and after restarting dameon, it works fine
thanks for everyone's help :)

plasma 02-12-2003 09:40 PM

SAMBA Setup
 
OK.

1. Have you made a smbpasswd file in the samba configuration directory?
2. If so, have you run smbpasswd for each user?
3. Check your smb.conf with testparm
4. If you don't have the mksmbpasswd.sh file:

#!/bin/sh
awk 'BEGIN {FS=":"
printf("#\n# SMB password file.\n#\n")
}
{ printf( "%s:%s:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:%s:%s:%s\n", $1, $3, $5, $6, $7) }
'

and then run:
cat /etc/passwd | mksmbpasswd.sh > /etc/smbpasswd

Also, make sure you have this set in smb.conf:
encrypt passwords = yes

I hope this helps.

Edit: Heh. You got it. ;D

F|eA 02-13-2003 05:54 AM

there already was one, it just didn't have any accounts or wasn't in any readable form
but if i made a n account using smbclient -a, everything worked out


All times are GMT -5. The time now is 03:47 AM.