LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-12-2003, 05:21 PM   #1
F|eA
LQ Newbie
 
Registered: Nov 2002
Location: Toronto
Distribution: Slackware
Posts: 6

Rep: Reputation: 0
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?
 
Old 02-12-2003, 07:41 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
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
 
Old 02-12-2003, 08:40 PM   #4
F|eA
LQ Newbie
 
Registered: Nov 2002
Location: Toronto
Distribution: Slackware
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
Old 02-12-2003, 09:40 PM   #5
plasma
LQ Newbie
 
Registered: Feb 2003
Location: Underground H-Game import bunker.
Distribution: Redhat
Posts: 2

Rep: Reputation: 0
Exclamation 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

Last edited by plasma; 02-12-2003 at 09:41 PM.
 
Old 02-13-2003, 05:54 AM   #6
F|eA
LQ Newbie
 
Registered: Nov 2002
Location: Toronto
Distribution: Slackware
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring Samba alexr186 SUSE / openSUSE 1 10-18-2005 09:19 AM
Configuring Samba sibtay Linux - Networking 3 10-04-2004 12:21 PM
Need ur help in configuring Samba safrout Linux - Networking 3 06-24-2004 04:04 AM
configuring samba raven Linux - Software 1 06-10-2002 07:56 AM
configuring samba gxd2639 Linux - Networking 2 03-13-2001 06:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration