Click to See Complete Forum and Search --> : Samba Issues...


vmantunes
08-05-2003, 11:49 PM
I'm using RH 7.3 and Samba 2.2.3a. My smb.conf is setup up like this:

=== Global Settings ===
[global]
workgroup = WORKGROUP
netbios name = linux
server string = file server
printcap name = /etc/printcap
load printers = yes
printing = lprng
log file = /var/log/samba/%m.log
max log size = 50
min passwd length = 5
timestamp logs = yes
security = user
password server = *
encrypt passwords = yes
smb passwd file = /usr/local/samba/private/smbpasswd
unix password sync = Yes
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*success fully*
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
local master = yes
os level = 33
hide dot files = yes
wins support = yes
dns proxy = yes

=== Share Definitions ===
[f_server]
comment = file server
path = /f_server
valid users = %U
public = no
browsable = yes
writable = yes
read only = no

Although its not in my share definitions I did set the permissions on the /f_server to 777 which should allow all access (until of course I figure this out). I have added the ip address of the LINUX server to my WINS properties on the Windows server. I moved the smbpasswd file (which was in /usr/bin/smbpasswd) to /usr/local/samba/private/smbpasswd and changed the permissions on ../private to 500 and ../smbpasswd to 600. I used:

# cat /etc/passwd | mksmbpasswd.sh > /usr/local/samba/private/smbpasswd

to generate the smbpasswd file from my /etc/passwd file. Then, I tried:

# /usr/bin/smbadduser -c /etc/samba/.smbpass linuxuser:xpuser

plugging in actual linux username for linuxuser and vice versa for xpuser (although, its not a Window XP server its a Windows 2000 server - I figured I'd give it a shot).

Finally, I did a:

# testparm
#service smb restart
#smbclient //winserver/drive
Password:xxxxxxxxx

and got:

session setup failed: NT_STATUS_LOGON_FAILURE

I also tried from the Windows server and it showed the LINUX server in the network, but tried to open it and was prompted for a username and password which then failed.

What am I doing wrong??

Please help (if I missed any info please say so and I will provide any further data to assist)!!!

-VMAntunes

vmantunes
08-06-2003, 07:40 PM
Is there anyone out there that can help?!?!?!

VMAntunes

DMR
08-06-2003, 08:24 PM
I moved the smbpasswd file (which was in /usr/bin/smbpasswd) to /usr/local/samba/private/smbpasswd and changed the permissions on ../private to 500 and ../smbpasswd to 600. Erm, it looks like you've mistaken the /usr/bin/smbpasswd program for the /etc/samba/smbpasswd file. If you've really done what you say, you've just overwritten the smpasswd program that sets up individual smb user accounts.

:(

sploo22
08-06-2003, 08:26 PM
The NT_STATUS_LOGON_FAILURE message usually means an incorrect username or password. Double check your typing; if that doesn't solve it, I'm not sure what the next step would be. I'm sort of fuzzy on Samba myself.

vmantunes
08-06-2003, 08:50 PM
OK... so where do I now get a new /usr/bin/smbpasswd program in order to continue??? When I did a:

# find / -name smbpasswd -print

that was the only file that came up (/usr/bin/smbpasswd)... no other. But, are you saying that we have to create individual smb accounts??; or, does this:

# cat /etc/passwd | mksmbpasswd.sh > /usr/local/samba/private/smbpasswd

generate smb accounts from the current user accounts for you??

Anyways, what else is wrong (no, there was no mistyping)??

VMAntunes

DMR
08-06-2003, 10:36 PM
From the mksmbpasswd man page:mksmbpasswd should be used only once, the first time Samba is installed. The idea is to ease accounts creation by transferring all user accounts from /etc/passwd to /etc/samba/smbpasswd.

Please note that passwords are not transferred automatically from /etc/passwd to the new /etc/samba/smbpasswd file. After running mksmbpasswd all accounts are disabled so the system administrator must run smbpasswd for each account that needs to be enable. So, from the "find" results, are you sayng that you still have a /usr/bin/smbpasswd program, or was that before you ran mksmbpasswd.?

vmantunes
08-06-2003, 11:17 PM
I used find to produce results. Then using mv I moved /usr/bin/smbpasswd (program) to /usr/local/samba/private. Then ran mksmbpasswd to generate the smbpasswd file (which was placed in /usr/local/samba/private) from /etc/passwd.

So according to that MAN page I could still transfer the /etc/passwd file to the /etc/samba/smbpasswd file by using mksmbpasswd. Only thing I would have to do afterwards would be to run smbpasswd for each account that needs to be enabled.

Which, of course, would then require the /usr/bin/smbpasswd program that I overwrote (but can find where??).

VMAntunes

DMR
08-06-2003, 11:47 PM
Right, you've got the idea.

I posted a copy of smbpasswd for your version of Samba here (http://www.stevewolfonline.com/Downloads/DMR/Doc/Linux/) . Right-click on the program and do a "save link as".

:)

vmantunes
08-07-2003, 07:45 PM
DMR-

Thanks for all your help!!! I'll try enabling the smb user to see if that works... if not, I'm sure i'll be back ;)

Thanks,

VMAntunes

DMR
08-07-2003, 07:59 PM
if not, I'm sure i'll be back And we'll be here to help...

:)

vmantunes
08-07-2003, 08:27 PM
SUCCESS!!!!!

You guys can close this thread.

-VMAntunes