Linux下的各种备份方法汇总(2)
2008-02-23 07:24:00来源:互联网 阅读 ()
D74_SERVER 00000D74 00000000001
If you don't, wait for a few minutes and retry. If the slist command displays a message
like: ncp_connect: Invalid argument, then your kernel probably does not support IPX.
Check that you have actually booted off the appropriate kernel. When you boot you should
see messages about IPX and ncpfs in system startup messages. If the slist command does
not list all of your fileservers, then you may need to use the manual network configuration
method. Type cat /proc/net/ipx_interface. You should see something like:
At this point, your Linux box is setup for IPX networking. Check if your kernel has
support for NetWare NCP file system. The default Red Hat kernel has NCP file system
support. You simply have to load the ncpfs module /usr/sbin /lib/modules/2.0.32/fs/ncpfs.0.
You can also add the line to your local file to load it automatically at the boot time.
Once that is done,
Login as root (only root can mount NetWare volumes).
Type mkdir/netware to create a directory for mounting the NetWare volumes.
Type ncpmount -S D74_SERVER -U user10 /netware. You will be prompted for a password for user10.
At this point your server is mounted on /netware. The volumes are sub-directories under
/netware. So the SYS volume would be /netware/sys and the DATA volume would be /netware/data.
If you only want to mount a single volume, you can use ncpmount -S D74_SERVER -V sys -U user10
/netware. This will mount only the SYS volume to /netware.
When you finish using the Net-Ware volume, you can unmount usingncpumount/netware.
Tip: You don't need to manually unmount NetWare volumes when you shutdown.
When you want to share the mounted NetWare volume among other Linux users, you need to
understand file permissions. The NetWare file system doesn't support user IDs and group
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.
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
上一篇:如何在Linux中设置磁盘限额?
下一篇:网卡设置指南
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash
