[Samba] net share

Lapin(c) lapin at linagora.com
Mon Dec 13 09:13:02 GMT 2004


Hi Team,

Can anybody give me some details about 'net share' command ?
I need to run locally on PDC some 'net share' command to add/remove shares an
printers. After many tries, I'm not able to add any shares, the command doesn't
send back any error but in logs I can detect a WERR_ACCESS_DENIED.

[2004/12/11 14:04:19, 5] rpc_server/srv_srvsvc_nt.c:_srv_net_share_add(1621)
  _srv_net_share_add: 1621
[2004/12/11 14:04:19, 10] rpc_server/srv_srvsvc_nt.c:_srv_net_share_add(1633)
  _srv_net_share_add: No add share command
[2004/12/11 14:04:19, 5] rpc_parse/parse_prs.c:prs_debug(82)
  000000 srv_io_r_net_share_add 
[2004/12/11 14:04:19, 5] rpc_parse/parse_prs.c:prs_uint32(635)
      0000 ptr_parm_error: 00000000
[2004/12/11 14:04:19, 5] rpc_parse/parse_prs.c:prs_werror(695)
      0004 status: WERR_ACCESS_DENIED
[2004/12/11 14:04:19, 5] rpc_server/srv_pipe.c:api_rpcTNP(1581)
  api_rpcTNP: called srvsvc successfully

the command is run with Administrator account:
net share add tmp=/var/tmp -U Administrator

thanks for your help

Fred





More information about the samba mailing list