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

来自Ubuntu中文
跳到导航跳到搜索
Wikibot留言 | 贡献
无编辑摘要
Wikibot留言 | 贡献
无编辑摘要
第32行: 第32行:
# Script to change netware mounts and restart cups after a  
# Script to change netware mounts and restart cups after a  
# windows/netware password change
# windows/netware password change
ncpumount -a
ncpumount -a
gedit /etc/cups/printers.conf
gedit /etc/cups/printers.conf
echo
echo
第38行: 第40行:
echo
echo
/etc/init.d/cupsys restart
/etc/init.d/cupsys restart
gedit /etc/rc.d/rc.local
gedit /etc/rc.d/rc.local
echo
echo
第43行: 第46行:
echo
echo
/etc/rc.d/rc.local
/etc/rc.d/rc.local
</nowiki></pre>
  </nowiki></pre>
Note: The content on this page should be merged with [[UbuntuHelp:MountingNovellNetworkDrives|MountingNovellNetworkDrives]].
Note: The content on this page should be merged with [[UbuntuHelp:MountingNovellNetworkDrives|MountingNovellNetworkDrives]].
----
----

2007年12月6日 (四) 10:02的版本

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

Introduction

This page shows how to mount a Netware filesystem and create symbolic links to it on the User Desktop.

What is Needed

ipx - utilities to configure the kernel ipx interface. ncpfs - a set of utilities to use resources from NetWare servers.

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

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.

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. 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.

#!/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.


NetwarePrintingFromUbuntu