Hello, I try to exectute a command on my NT server from my unix server with the following command : smbclient \\\\monnet01\\C$ -U admin_nan -c "help.exe" C$ is my share admin_nan is the user Smbclient doesn't ask a password so i get the following error message : Anonymous login successful Domain=[FR-MON] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0] tree connect failed: ERRDOS - ERRnoaccess (Access denied.) When i try with the ipc$ share, help.exe is not found, neither C:\winnt\system32\help.exe. Do you have any idea ? S?bastien Dagnicourt.
At 09:10 31-8-00 +0200, DAGNICOURT Sebastien - NTR wrote:>I try to exectute a command on my NT server from my unix server with the >following command : >smbclient \\\\monnet01\\C$ -U admin_nan -c "help.exe"I'm confused here. Do you want to run help.exe? I don't think you can start it on the NT server using samba from the Unix machine. help.exe is an interactive program and should probably be started on the NT server itself. Samba is not meant for running commands on remote machines. However, if you want to copy something from NT server to Unix server, you can use this command on the Unix server (on one line): smbclient //ntserver/c$ -U onno%myntpassword -c 'get "nt folder name\filename.txt" /home/onno/unixfilename.txt' I use the "" because the path contains spaces. With unix command "man smbclient" you can find more details about the -c parameter and the commands you can use with it. Salut, Onno -- Onno Zweers, automatisering mailto:onno@verweij.com Verweij Fashion BV verweij.com
On Thu, 31 Aug 2000, DAGNICOURT Sebastien - NTR wrote:> I try to exectute a command on my NT server from my unix server with > the > following command : > > smbclient \\\\monnet01\\C$ -U admin_nan -c "help.exe"smbclient can't do that, I'm afraid. The "-c command" option to smbclient is for you to supply an *smbclient* command line, not a Windows command line. So, running something like smbclient '\\server\printer' -N -c "print file.ps" is equivalent to running smbclient '\\server\printer' -N and typing "print file.ps" at the "smb:\>" prompt. Regards, -- Neil Hoggarth Departmental Computer Officer <neil.hoggarth@physiol.ox.ac.uk> Laboratory of Physiology physiol.ox.ac.uk/~njh University of Oxford, UK
See if you can find rexec for NT, that should make it possible to execute something on NT from the Unix machine. -----Oorspronkelijk bericht----- Van: Neil Hoggarth [mailto:neil.hoggarth@physiol.ox.ac.uk] Verzonden: vrijdag 1 september 2000 10:46 Aan: samba@samba.org Onderwerp: Re: Execution on NT On Thu, 31 Aug 2000, DAGNICOURT Sebastien - NTR wrote:> I try to exectute a command on my NT server from my unix server with > the > following command : > > smbclient \\\\monnet01\\C$ -U admin_nan -c "help.exe"smbclient can't do that, I'm afraid. The "-c command" option to smbclient is for you to supply an *smbclient* command line, not a Windows command line. So, running something like smbclient '\\server\printer' -N -c "print file.ps" is equivalent to running smbclient '\\server\printer' -N and typing "print file.ps" at the "smb:\>" prompt. Regards, -- Neil Hoggarth Departmental Computer Officer <neil.hoggarth@physiol.ox.ac.uk> Laboratory of Physiology physiol.ox.ac.uk/~njh University of Oxford, UK
Jeroen, On Fri, 1 Sep 2000 13:24:29 +0200, Vriesman, Jeroen wrote:>See if you can find rexec for NT, that should make it possible to >execute something on NT from the Unix machine.rexec is on the NT CD. What would be needed is rexecd. Regards, Robert -- --------------------------------------------------------------- Robert.Dahlem@gmx.net Fax +49-69-432647 ---------------------------------------------------------------