Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

net use * over rsh

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> Windows Server 2003 R2 SUA >> net use * over rsh Page: [1]
Login
Message << Older Topic   Newer Topic >>
net use * over rsh - Jun. 21, '06, 3:34:49 PM   
albertw

 

Posts: 4
Joined: Jun. 21, '06,
Status: offline
Hi folks,

I'm migrating a process from some NT machines to 2003R2.
One thing this process does is mount a remote filesystem from a Solaris server. Previously this was using samba, but now I'm using the NFS client.

Part of the process basically logs in over rsh and issues a
net use * \\nfs-server\export

It's actually called from a ksh script on the Solaris machines as
DEV_NM=$(rsh -n $ntserver net use '*' $NT_PT) where NT_PT is the \\server\share

But even just manually logging in as Administrator over rsh I cant get this to work, it's fine over telnet and from the dos command. It also fails from the c shell at the console.
Depending on how I try to escape or quote the * I get the useage message for net or
--
System error 67 has occurred.
The network name cannot be found.
--

Whats the correct way to call/escape this command from the Interix rsh shell? Perhaps I'm just not excaping it the right way.

Similar issue with nfsmount:
$ /usr/sbin/nfsmount \\server\share *
ERROR - Invalid command line argument
mount.exe \servershare bin common dev docs etc help lib net opt proc tmp usr var
Error varies depending on how I try to escape the *

Though I'd rather not use nfsmount anyway, as others use this process with XP & NT so I want to avoid changing the server scripts.

Thanks,
~Albert
Post #: 1
RE: net use * over rsh - Jun. 21, '06, 4:00:22 PM   
Rodney

 

Posts: 3695
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
The default security token created when passwordless logins are used is that
there will be _no_ network access allowed. When you connected with telnet you
had to give a password. There is no exception to this even for Administrator.

To have a security token with network access you have to have the target user
on the target machine run regpwd to register their password. Then
the security token will be create with network access.

(in reply to albertw)
Post #: 2
RE: net use * over rsh - Jun. 21, '06, 6:28:23 PM   
albertw

 

Posts: 4
Joined: Jun. 21, '06,
Status: offline
Thanks, however:

$ regpwd
sh: regpwd: Operation not permitted

EnableSetuidBinaries is set to 1 in the registry.

As for my problem with escaping the command, well I forgot about the /'s in the server entry. Doh.
net use \* \\\\server\\share works fine once I'm logged in.

Cheers,
~Al

(in reply to Rodney)
Post #: 3
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> Windows Server 2003 R2 SUA >> net use * over rsh Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.047