Different types of Samba shares
Ok, I ALMOST got my smb.conf setup the way I want it, but I'm having some trouble doing something that I'm not exactly sure I'm even trying to implement it correctly. I want 3 different SMB shares on one MDK10 machine.
1. /home/user/netshare
All contents open, no password prompt needed to access it, you click on the machine and it shows up and you can READ the files.
2. /home/user/pubdrv
A public network drive. Anybody on the network can read AND write to this directory. Used for photo editing from a laptop to other machine, currently in-use documents on multiple machines, things like that.
3. /home/user
The WHOLE directory, but I want access to it restricted to a username and password. Let's call the user "bob" and password is "pass" I want to be able to open the machine in Network Neighborhood and do the first two shares without even getting a password, prompt, which I can do now. I also have a printer shared in this fashion, as well. But I want a password prompt when I click on the third share, which I'll call "access" I'm posting a copy of my smb.conf file here, I know there's some redundant stuff in it for the free shares, but it works NOW, my question is how do I add the third share without changing the other two?
[global]
load printers = yes
printcap name = cups
printing = cups
netbios name = linuxbox
security = share
guest ok = yes
guest account = user
guest = user
workgroup = WORKGROUP
print command = lpr-cups -P %p -o raw %s -r
[linux]
path = /home/user/netshare
writeable = no
security = share
guest ok = yes
guest account = user
guest = user
[pubdrv]
path = /home/user/pubdrv
writeable = yes
security = share
guest ok = yes
guest account = user
guest = user
[printers]
comment = DeskJet
path = /var/spool/samba
browseable = no
public = yes
guest ok = yes
writable = no
printable = yes
printer admin = root
Not sure what to do here, anything I try either leaves it open to be viewed, passwords ALL the folders on the machine, or leaves it all open to WRITE. Help! I'm getting better, but I'm still a Linux n00b.
Last edited by CaptainRegular; 08-28-2004 at 12:03 PM.
|