Hardware Reference
In-Depth Information
This gives anyone at home, including visitors, a chance to listen to whatever band I've been enthusing about.
It's public (meaning my visitors don't need a user account on my computer) and browsable (so it can be found
on the network, without anyone knowing its exact name). However, it is made read-only, preventing visitors from
accidentally (or maliciously, with rogue viruses perhaps) deleting the files.
They can see it from their Windows network neighborhood (or by typing \\mediapc\media ) or from Linux (either
by desktop or command line, with smbmount //mediapc/media local_media_folder -o guest 14 ).
Next, I have a second share to the same location. This has a password, meaning that only I can add the latest
DVD rips or music purchases to the system.
[media_incoming]
comment = Media Incoming
path = /media
browseable = no
public = no
writable = yes
read only = no
guest ok = no
The final share is my computer's DVD drive. This is almost unused in my house because I've had the time to rip
all my CDs and DVDs into files on my local machine, but it is still occasionally useful. The default installation provides
a suitable example on the method here:
[cdrom]
comment = Media server's DVD
writable = no
locking = no
path = /dvd
public = yes
preexec = /bin/mount /dvd
postexec = /bin/umount /dvd
The last two lines will automatically mount the disk when asked for and unmount it after it's been unused for a
short period of time. The system is told how to handle the (un)mounting of /media/dvd with a suitable description in
/etc/fstab :
/dev/scd0 /dvd udf,iso9660 user,noauto 0 0
Depending on the range and login configurations on your network, you may want to set up specific Samba users.
If you're a sysadmin by trade, setting up a centralized login database for all machines (Windows/Linux/Mac) might
appear like a simple task. But for the rest of us, each machine will maintain its own set of usernames and passwords.
Consequently, the Samba server has no way of knowing about these other machines or when their respective
users decide to change their passwords. This makes it impossible for Samba to know what username/password
combinations it should accept from this other machine. Therefore, it uses a separate set password table.
You simply need to type, as root, the following for each user who has password access to the particular Samba
shared folders:
smbpasswd -a steev
7HICHUNLESSTHEMOUNTISIN /etc/fstab CANONLYBEUNMOUNTEDBYUSINGUMOUNTDIRECTORYASROOT
Search WWH ::




Custom Search