Linux下的各种备份方法汇总( 三 )


IDs for directories. So all files and directories on the mounted directory have the
permissions as the directory where it was mounted. For example, if you type ls -ld/netware,
drwxrwxr-x 1 root root 512 Nov 24 1960 /netware is what you get.

So, all the NetWare files will have the above file permissions.

If you want non-root users to mount NetWare volumes, ncpmount command must be Set Userid Root,
so you would need to type chmod 4755 ncpmount

Simplifying mounting of volumes

There is another way of configuring NetWare mounts-by creating a .nwclient file in your home
directory. This file contains details of temporary or user specific NetWare mounts that would
be performed regularly. It allows you to store the details of mounts so that you can recreate
them without specifying all details each time. Its format is quite straightforward:

# The first entry is the "preferred server" entry and is
# used whenever you do not specify a server explicitly.
#
# User USER01 login to D74_SERVER fileserver with password "password" D74_SERVER/USER01 password
#
# User CYBER login to the CYBER_DOC fileserver with no password.
CYBER_DOC/CYBER -

To activate these mounts you type ncpmount/netware to mount D74_SERVER with a login (say) TERRY
 under /NetWare directory. Note that this entry was chosen because no fileserver was specified
in the mount command. Had we used ncpmount -S CYBER_DOC /netware, then it would mount CYBER_DOC
with a login of CYBER under /NetWare directory.

Since the passwords for your Novell accounts are not encrypted, you should protect them by
typing chmod 0600 $HOME/.nwclient.

Printing to NetWare print queues

Once you are comfortable accessing your files, you can try printing to a Novell print queue.

Use slist to check that you can see your Novell server.
Type pqlist -S D74_SERVER -U USER01 to list the print queues on D74_SERVER.
Type nprint -S D74_SERVER -U USER01 -q DMPQUEUE/etc/passwd. This would print the /etc/passwd
file to the DMPQUEUE print queue on the D74_SERVER by logging in as USER01. If you have created
 your .nwclient file, then you can use nprint -q DMPQUEUE /etc/passwd instead. The server and
login ID are taken from the .nwclient file. Ensure that the queue names are in capitals.
Check your Novell print queue from a DOS client using PCONSOLE. You should see a printjob
called No Description in the DMPQUEUE.
Printing using nprint is tedious-first it requires you to print to a file and then submit
using nprint. You can automate this by setting up a Linux print queue, which automatically
 sends it to the NetWare print queue. The following steps are a bit confusing and reading
about Unix printing in the Printing HOW-TO would be beneficial.

The following steps tell you how to configure a NetWare print queue for Red Hat Linux.

Copy Netwareprint.tgz from the CD-ROM to the /tmp directory.
cd /;tar xzvf /tmp/netwareprint.tgz. This will replace /usr/bin/printtool,
/usr/lib/rhs/rhs-printfilters/master-filter, and /usr/lib/rhs/rhs-printfilters/nwprint,
with the latest versions.

推荐阅读