Discussion:
"net use" exit code 2
Andrea Zagli
2011-12-13 11:55:45 UTC
Permalink
i have a strange behavior

in a package definition i use "net use" to mount a disk

if i use "/user:domain\administrator" parameter it works; instead if a
use "/user:domain\readonly" it doesn't work and return the exit code 2
(readonly isn't a "domain admins")

if i execute the same command (with user readonly) from "prompt msdos"
it works (so the user readonly have the rights to mount the disk)

what could be the problem?

thanks in advance

(windows xp; wpkg 1.2)

-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
Marco Gaiarin
2011-12-13 12:44:33 UTC
Permalink
Mandi! Andrea Zagli
In chel di` si favelave...
Post by Andrea Zagli
what could be the problem?
In windows (i don't remember if it is a client or a server/protocol
limitation...) you cannot connect the same resource with two user
(even the ''guest access'' one).

So check if simply you still have a connection to the share with a
local user (administrator?), and try to connect with another user
(SYSTEM?) that run wpkg.
--
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia'' http://www.sv.lnf.it/
Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN)
marco.gaiarin(at)sv.lnf.it tel +39-0434-842711 fax +39-0434-842797

Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
http://www.lanostrafamiglia.it/chi_siamo/5xmille.php
(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
Andrea Zagli
2011-12-14 09:13:53 UTC
Permalink
Post by Marco Gaiarin
Mandi! Andrea Zagli
In chel di` si favelave...
Post by Andrea Zagli
what could be the problem?
In windows (i don't remember if it is a client or a server/protocol
limitation...) you cannot connect the same resource with two user
(even the ''guest access'' one).
i think the problem is just that

thanks a lot

-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
Continue reading on narkive:
Loading...