On Fri, 06 May 2005 Dinesh Joshi wrote :
From: "Richard Chang" richard@hinditron.com
Everytime I have to manually map it thru Net Neighbourhood or check the option of Auto Mapping so that >it is available in the next login. It helps, but I want to control which user can access which share. The >share available to the user shall appear mapped whenever he/she logs in.
Ok, heres what you need to do. You need to create a user account on you Linux OS for each user on the windoze PC. Then, you need to create a samba account for each username (smbpasswd). Once you do that, then you will be able to make a share selectively available to users. For example:
I might suggest a means of automating this stuff by the following command at one go
# cat /etc/passwd | /usr/bin/mksmbpasswd.sh > /etc/samba/smbpasswd
where mksmbpasswd.sh is a script to allocate each Linux user a samba password.
rgds Sameer
'You will be what you WILL to Be' -James Allen