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
From: "Sameer Niphadkar" spniphadkar@rediffmail.com
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.
A working script would've been a big help. But anyway you can automate it using webmin too ;) He could steal...ahem...borrow the appropriate parts of the code which converts Linux users to SMB users :)
Regards, Dinesh.
_________________________________________________________________ Is your PC infected? Get a FREE online computer virus scan from McAfee® Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963