Difference between lmhost win and include via dhcp

hi guys.
since i have used both these command together and separately but i am still unable to figure out the difference. because i didn’t see any difference in my system while using them.

**name resolve order = bcast host lmhosts wins

include = /etc/samba/dhcp.conf**

what is the purpose of force user because i have used it in a share and valid users were denied entry.

i have also studied SOHO LAN. and different topics but can’t figure out these 2 things

On Thu April 30 2009 02:56 pm, davesal wrote:

>
> hi guys.
> since i have used both these command together and separately but i am
> still unable to figure out the difference. because i didn’t see any
> difference in my system while using them.
>
> NAME RESOLVE ORDER = BCAST HOST LMHOSTS WINS
>
> INCLUDE = /ETC/SAMBA/DHCP.CONF
>
> what is the purpose of force user because i have used it in a share
> and valid users were denied entry.
>
> i have also studied SOHO LAN. and different topics but can’t figure out
> these 2 things
>
>
davesal;
The “name resolve order” parameter determines the order in which Samba tries
to resolve netbios names. In your example the order would be 1st Broadcast,
2nd the Host file, 3rd the LMhost file and finally 4th, the Wins Server.
Usually Samba will have given up by the time it gets to the last one.

The “Include” just adds the contents of the file listed to smb.conf. In your
case /ETC/SAMBA/DHCP.CONF. It would depend on the contents of the file as to
which parameters are added.

The “force user” parameter is a bit like a “su username”. When any user
connects to the share they are mapped to the username assigned to the “force
user” All file manipulations on that share are cared out as the forced user,
regardless of the actual user that connected.

You can always find the use of Samba parameters with:


man smb.conf


P. V.
“We’re all in this together, I’m pulling for you.” Red Green

what is the purpose of force user because i have used it in a share and valid users were denied entry

Just to add to what PV said: There are two steps: first the user accesses the share, second the user assumes the persona for the “force user”. The denial of access occurs before the persona change so “force user” generally doesn’t affect the access.