特殊:Badtitle/NS100:AccessingNetwareShares/zh:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Tlhl28留言 | 贡献
无编辑摘要
Tlhl28留言 | 贡献
无编辑摘要
第31行: 第31行:
Most Windows Netware Clients needs to change their passwords every x days.<br><br>So to make it easy to update your passwords in Ubuntu use this script after changing your Windows Netware Password.<br><br>
Most Windows Netware Clients needs to change their passwords every x days.<br><br>So to make it easy to update your passwords in Ubuntu use this script after changing your Windows Netware Password.<br><br>


 
<br>几乎所有WINDOWS下的Netware客户端都要每X天改一次密码。所以在你更改你的 Windows Netware 的密码后,执行这个脚本,它会使你在Ubuntu下更新密码变得省事。<br><br>
几乎所有
 
 
WINDOWS下的Netware客户端都要每X天改一次密码。所以在你更改你的 Windows Netware 的密码后,执行这个脚本,它会使你在Ubuntu下更新密码变得省事。<br><br>
<pre>#!/bin/bash
<pre>#!/bin/bash
# windows-passwd-change.sh
# windows-passwd-change.sh

2008年2月2日 (六) 19:56的版本




{{#ifexist: :AccessingNetwareShares/zh/zh | | {{#ifexist: AccessingNetwareShares/zh/zh | | {{#ifeq: {{#titleparts:AccessingNetwareShares/zh|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:AccessingNetwareShares/zh|1|-1|}} | zh | | }}



Introduction

This page shows how to mount a Netware filesystem and create symbolic links to it on the User Desktop.
本页面展示了如何挂载一个 Netware文件系统和创建符号链接到使用者的桌面。

What is Needed


ipx - utilities to configure the kernel ipx interface.
配置交换协议内核接口的工具
ncpfs - a set of utilities to use resources from NetWare servers.
一组用于使用NetWare服务器资源的工具。

Mount Netware Filesystem

Firstly we need to make the folder to mount the filesystem to.
首先我们要建一个文件夹来挂载文件系统

sudo mkdir /mnt/company_fs

Then we mount the filesystem
接着挂载文件系统

sudo ncpmount -S RDI_DBN_FS -U <UserName>.LABS -u <UserNo> -g <GroupNo> -P <NetWarePassword> -c <UbuntuUserName> /mnt/company_fs

To make sure that the filesystem is automatically mounted at startup, we need to add the following line to /etc/rc.local
我们要在 /etc/rc.local 文件里添加以下内容以确认文件系统在启动时自动挂载

ncpmount -S RDI_DBN_FS -U <UserName>.LABS -u <UserNo> -g <GroupNo> -P <NetWarePassword> -c <UbuntuUserName> /mnt/company_fs

Creating Symbolic Links

创建符号链接
Create a symbolic (never a hard) link to the mounted netware filesystem and place it in a folder on the user desktop.
为已经挂载的netware文件系统创建一个符号链接(非硬盘),然後把它软连接到用户桌面的一个文件夹里。

ln -s /mnt/company_fs/ /home/<UbuntuUserName>/Desktop/CompanyNetwork/company_fs

Now, most Companies have a lot of shared drives in Windows, ex P: S: X: etc., that are normally used for say Apps, Users etc.
现在的很多公司在WINDOWS下有很多共享,例如 P: S: X: 等等,这些通常用于描述应用程序,用户等

If required these shares must be made with symbolic links as only one mount to a filesystem can be make at a time.
 如果需要,这些共享应该单独用符号连接 连接到一个文件系统。

ln -s /mnt/company_fs/FolderToShare /home/<UbuntuUserName>/Desktop/CompanyNetwork/ShareDriveName

Netware Password Change

Most Windows Netware Clients needs to change their passwords every x days.

So to make it easy to update your passwords in Ubuntu use this script after changing your Windows Netware Password.


几乎所有WINDOWS下的Netware客户端都要每X天改一次密码。所以在你更改你的 Windows Netware 的密码后,执行这个脚本,它会使你在Ubuntu下更新密码变得省事。

#!/bin/bash
# windows-passwd-change.sh
# Script to change netware mounts and restart cups after a 
# windows/netware password change

ncpumount -a

gedit /etc/cups/printers.conf
echo
echo 'Restarting the CUPS service...'
echo
/etc/init.d/cupsys restart

gedit /etc/rc.d/rc.local
echo
echo 'Running rc.local script to configure IPX Netware mounts...'
echo
/etc/rc.d/rc.local

Note: The content on this page should be merged with MountingNovellNetworkDrives.
注:本页面的内容要和 MountingNovellNetworkDrives合并使用