[LBo] Progress on Samba

Stefan Waidele Stefan at Waidele.info
Tue Jul 18 20:36:51 CEST 2006


Anita Lewis schrieb:
> [...]
> I made a user named ajlewis with the login that I use on that computer
> [...]
> I made another user with the same login name as my other computer with 
> XP.  It is AnitaLewis, but I made it anitalewis on the Linux computer.
> [...]
> I made a share of the home user directories for both ajlewis and 
> anitalewis on Samba and I see them both on both the Linux box network 
> and on the XP box in My Network Places.  I can view things on both.  I 
> can put something on the anitalewis share and not on the ajlewis share. 
>  That is not all that surprising to me, because I have logged in there 
> as anitalewis and only that directory is open to me.
> 
> How do I make ajlewis share open to me and only me?

Change the permission in linux.
On Ubuntu (maybe others too), user-data is world-readable.

Tune the permission on the linux-side, and it will have effect on the 
windows-side, too.

> [...]
> Right now opening that ajlewis share is what I need to 
> do.  

Do you really need two shares?
Then you could cofigure in smb-conf the users that are allowed to access 
a share and which not. (I don't have the keywords memorized, but scan 
the manpage for "allow" and "deny").
Be aware that samba does not override the linux-permissions.

If you would be fine with one share, then you could map the 
windows/samba-user "anitalewis" to the linux/system-user "ajlewis". That 
eliminates much confusion.

You need a line in smb.conf like:
username map = /etc/samba/smbusers

In the file /etc/samba/smbusers, you put a line like:
ajlewis = anitalewis

Then Samba will let you log in as ajlewis or anitalewis. Both need to 
specify ajlewis' password, IIRC

HTH,

Stefan



More information about the QnA mailing list