The command is typed, as
root user, from a Terminal window:
# mkdir /mnt/toys
# mount -t smbfs -o username=chris,password=a72mg //toys/chris /mnt/toys
The file system type for a Samba share is smbfs (-t smbfs). The username (chris) and password
(a72mg) are passed as options (-o). The remote share of the home directory on toys is
//toys/chris. The local mount point is /mnt/toys. At this point, you can access the contents
of /home/chris on toys as you would any file or directory locally. You will have the same permission
to access and change the contents of that directory (and its subdirectories) as you would
if you were the user chris using those contents directly from toys.
To mount the Samba shared directory permanently, add an entry to your /etc/fstab file. For the
example just described, you??™d add the following line (as root user):
//toys/chris /mnt/toys smbfs username=chris,password=a72mg
Troubleshooting Your Samba Server
A lot can go wrong with a Samba server. If your Samba server isn??™t working properly, the descriptions
in this section should help you pinpoint the problem.
Basic Networking in Place?
You can??™t share anything with other computers without a network. Before computers can share
directories and printers from Samba, they must be able to communicate on your LAN.
Pages:
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358