strange samba behavior

strange samba behavior

Post by james » Sat, 09 Oct 2004 13:47:26


after all the years i've used Samba i actually found a need to mount a windows
share on my bsd box to get some files off, but got some very unexpected results...
i have FreeBSD 5.2.1 running Samba as a PDC for a windows domain using user
level access for all of it's shares. i needed to share a directory on a Win98se
box so i configured it for user level as well. added my user to the list of
allowed people and tried to mount it with "mount_smbfs //user@windowsbox/share
/mnt" and was prompted for the password for "user" as expected. mounted fine
and could see it with df but /mnt was empty!
after adding every group and relevent user on the list it obtained from the PDC
i gave up and set it to share level. worked like a champ.
is this odd or am i doing something incredibly stupid ?

--
- - james <at> hal-pc.org - -

"DOS... an OS originally designed for a microprocessor
that modern kitchen appliances would sneer at."
- - - - - - - - - - - - - - -
 
 
 

strange samba behavior

Post by Robert Mui » Sat, 09 Oct 2004 15:02:26

James,

I had much trouble with samba at user level until I realised that the samba
passwords are maintained independently of the unix passwords. The main file
is at /usr/local/private/smbpasswd. You can modify the passwords and add
users with the smbpasswd utility. There is a script which adds unix users as
samba users, but this adds everything (incl daemons etc) and sets the
passwords to X's which disallows access.

Set your passwd with smbpasswd to the same as the windows machine, and it
should work fine.

I still have no way of automatically synchronising unix accounts with samba.
Anyone?

Robert.

 
 
 

strange samba behavior

Post by james » Sun, 10 Oct 2004 00:08:38


Thank you for your reply, but this certainly isn't the problem i'm having. the
user does exist on the PDC as i can log into the domain with that un/pw.
besides that it /will/ mount it and it is visible when doing "df" but the mount
point is empty. any attempts to write/read from the mount point is disallowed.

just to clarify: i'm mounting it from a 98se box on a FreeBSD 5.2.1 workstation
authenticating off a FreeBSD PDC.

--
- - james <at> hal-pc.org - -

"NTFS: Sure it corrupts your data, but look how fast it is!"
- - - - - - - - - - - - - - -