Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Praise should be given to the Forum managers or the Tipmasters - they are what make it work - give them extra recognition!!! They are timely (prompt - unlike ACTUAL support sites) and on the ball!!!..."

Geography

Where in the world do Tek-Tips members come from?
Badmoro (IS/IT--Management)
15 Feb 06 16:00
Hello -

I need to mount a drive to Win XP machines running in a Novell network.
I have this script:

umount g:
mount -o anon server:/export/sbi/home/%nwusername%  g:

This works fine when you are the admin or you are a normal user and run it manually.
The auto run only partially works.  The server gets a mount request, but the request is for the same directory as what was mounted before (it uses the username that was last logged on, not the current one).  It is as though the script is ignoring the %nwusername% variable.

If anybody has a clue, will be much appreciated! Thanks

-Bad
iolair (IS/IT--Management)
15 Feb 06 17:03
What OS is the server running? I assume from your script that it's some form of Unix, so you'll need to check to make sure the %nwusername% variable is defined or somehow related to the Unix user or username.

Secondly, how are you trying to "auto run" this script? From Windows? From the Unix server? From a Netware server?

Iolair MacWalter

Iolair MacWalter
Director of IT

marvhuffaker (MIS)
15 Feb 06 22:27
You need to explain exactly what you're trying to do cause what you're saying doesn't make sense for how you'd normally work with the 4.9 client and connect a network drive on Windows XP.

Marvin Huffaker, MCNE
http://www.redjuju.com

terry712 (TechnicalUser)
19 Feb 06 14:35
thanks god it makes no sense to everyone else
Badmoro (IS/IT--Management)
22 Feb 06 22:44
I admit the way I described the problm is not clear. I ll try to clarify it, so please bear with me:

What I m trying to do: connect XP machines (running 4.9 client) to a network drive (on a Linux server).

How I tried to do it: I wrote this script (.bat file) and I added a registry key for it so that it runs every time somebody logs on. Here is the script:
umount g:
mount -o anon server:/export/sbi/home/%nwusername%  g:

The problem: When I login as administrator, this works fine, meaning that I see the g drive with my login under it.
Now, when a normal user (not admin) logs in, they see the network drive (g) under My Computer, but the login under it, is the login of the person who was logged on right before them.

The server gets the request, and replies by mounting the drive, but what I do not get is why it ignores the current value of %nwusername%. Instead, it uses the value that was in the previous request.

I hope this makes more sense! If anybody has a clue about this or has another way to do it, I d really appreciate it :) Thanks,

-badmoro
LawnBoy (MIS)
23 Feb 06 8:23
Are you using Fast User Switching? Or is each user completing a full log off / log on sequence? Is FUS enabled, even if not used?

Does it make any difference if you reboot between users?

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close