Bug 3810 - "net send" fails
Summary: "net send" fails
Status: RESOLVED WONTFIX
Alias: None
Product: Samba 3.2
Classification: Unclassified
Component: Client tools (show other bugs)
Version: 3.2.0
Hardware: Other Linux
: P3 enhancement
Target Milestone: ---
Assignee: Kai Blin
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-27 02:11 UTC by S Egbert
Modified: 2009-04-27 03:15 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description S Egbert 2006-05-27 02:11:57 UTC
Under GENTOO Linux, the "net send" is an invalid command line syntax.

What is the correct command to send Window Messaging?
Comment 1 S Egbert 2006-05-27 02:13:20 UTC
Failing command is:

# net send doctor2
No command: send
No command: send
  net time              to view or set time information
  net lookup            to lookup host name or ip address
  net user              to manage users
  net group             to manage groups
  net groupmap          to manage group mappings
  net idmap             to manage the idmap id mappings
  net join              to join a domain
  net cache             to operate on cache tdb file
  net getlocalsid [NAME]        to get the SID for local name
  net setlocalsid SID   to set the local domain SID
  net changesecretpw    to change the machine password in the local secrets database only
                        this requires the -f flag as a safety barrier
  net status            Show server status
  net usersidlist       to get a list of all users with their SIDs

  net ads <command>     to run ADS commands
  net rap <command>     to run RAP (pre-RPC) commands
  net rpc <command>     to run RPC commands

Type "net help <option>" to get more information on that option
Valid targets: choose one (none defaults to localhost)
        -S or --server=<server>         server name
        -I or --ipaddress=<ipaddr>      address of target server
        -w or --workgroup=<wg>          target workgroup or domain

Valid miscellaneous options are:
        -p or --port=<port>             connection port on target
        -W or --myworkgroup=<wg>        client workgroup
        -d or --debuglevel=<level>      debug level (0-10)
        -n or --myname=<name>           client name
        -U or --user=<name>             user name
        -s or --configfile=<path>       pathname of smb.conf file
        -l or --long                    Display full information
        -V or --version                 Print samba version information
        -P or --machine-pass            Authenticate as machine account
Comment 2 Kai Blin 2008-07-09 07:16:26 UTC
For now, you can use

echo "Message" | smbclient -M host

I might look into adding this to the net command as well.
Comment 3 Kai Blin 2009-04-25 05:14:18 UTC
Thinking a bit more about this, I think smbclient -M is sufficient. It's not terribly useful, and the whole NetBIOS stuff is pretty icky.

Closing as WONTFIX.
Comment 4 Guenther Deschner 2009-04-27 03:15:39 UTC
Hm, having "net send" that uses dcerpc to send messages would be neat though.