LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-26-2003, 11:13 AM   #1
AcerKev
Member
 
Registered: Aug 2003
Location: Nottingham
Distribution: XP SP2, Vista, Mandrake/iva 9.2 - 2007
Posts: 50

Rep: Reputation: 15
Mars NWE - How to configure a login script


I eventually got MARS_NWE running on a Mandrake 9.1 box, the printer shares are fine as are file access.

The Server name is LANCIA

Basically what i want to do is to set it up so that when a Windows user logs in a start up script runs (like on a "proper" netware server), and map y:\ to the share the SYS folder (currently accessed via Network Neighbourhood)

The line in the nwserv.conf file to define this share is
"1 SYS /home/netware/SYS/ #SYS"

All users want this to run - all have the same Linux GUI and UID (13 and 13)

i.e. when logging into the server the Y:\ drive on windows is actually the /home/netware/SYS/ folder on LANCIA



Also, quick question - is it possible to add printers/users without taking mars_nwe down and restarting it?
 
Old 08-28-2003, 06:47 AM   #2
AcerKev
Member
 
Registered: Aug 2003
Location: Nottingham
Distribution: XP SP2, Vista, Mandrake/iva 9.2 - 2007
Posts: 50

Original Poster
Rep: Reputation: 15
yay, i finally susses this out
First load /etc/nwserv.conf

Look at where the SYS mount is - the line will be like this :
1 SYS /home/netware/SYS/ # SYS

cd /home/netware/SYS/PUBLIC/
vi "NET\$LOG.DAT"

Treat as a normal Login script - The Novell Guide to Netware Networks Book has a load of examples in chapter 10 - you can ignor NDS stuff as it won't work.

My example is
Code:
Write "Good %GREETING_TIME, %LOGIN_NAME."
MAP DISPLAY OFF
MAP ERRORS OFF

Write "Welcome to %FILE_SERVER The MARS_NWE Print Server"

Write "Restoring Network Shares...."

MAP K:=HIGHWAY:

Write "Connecting LPT1 to CAXTON...."

#capture L=1 Q=caxton ti=30 FF AU NOTI NB

IF "%OS" = "WIN98" THEN GOTO WINDOWS98

MAP DISPLAY ON
MAP
END
EXIT

;========= Subroutines ==========

WINDOWS98:
        Write "You are Running Windows 98"
EXIT
unfortunatly i get what seams to be a cosmetic error of "LOGIN-4.22.00-923: Un Unexpected Error Has Occured. 14 (89fc)"

But hey it works

Last edited by AcerKev; 08-28-2003 at 06:49 AM.
 
Old 08-28-2003, 06:48 AM   #3
AcerKev
Member
 
Registered: Aug 2003
Location: Nottingham
Distribution: XP SP2, Vista, Mandrake/iva 9.2 - 2007
Posts: 50

Original Poster
Rep: Reputation: 15
oh and i sussed out how to reload changes without restarting the server (new users printers fileshares)

type (as su)
service mars-nwe reload

 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check in a script whether the shell is login or non login? frankie_DJ Programming 7 10-21-2015 10:09 AM
Mars! MasterC General 10 08-28-2003 11:33 PM
Trouble with mars-nwe Grimaldez Linux - Networking 2 07-02-2003 05:06 AM
mars...who would likto go... cognosti Programming 1 06-10-2003 02:50 AM
Configure Script?? Phonics3k Linux - Software 12 06-20-2002 10:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration