http://www.dclabs.com.au

Question: How to password a folder on the DCserver?
Answer:
Quick tutorial on how to password a folder on the DCserver.

The DCServer uses Samba to allow other machines to read/write file/printer shares via SMB/CIFS. This allows windows machines to via the share via //dcserver/share or through "My Network".

In /etc/smb.conf edit the share named and put

valid users = rene, mfu
(make sure that public = no)

Example -

[www.dclabs]
comment = dclabs.com.au Web Page
path = /home/httpd/dclabs.com.au
public = no
only guest = no
writable = yes
printable = no
force user = webmaster
force group = webmaster
write list = @webmaster
valid users = rene, mfu

You have to make sure these users exist in /etc/smbpasswd or have an user alias in /etc/smbusers.

To add a username to the smbpasswd database use

smbpasswd -a rene

Once this is done, restart samba

/etc/rc.d/init.d/smb restart

We are working on a Windows graphical interface to all of these functions on the DCServer, so users dont have to use the arcane programs such as vi.
Stay tuned.