/* Samba Unix/Linux SMB client library Version 3.0 Distributed SMB/CIFS Server Management Utility Copyright (C) 2001 Steve French (sfrench@us.ibm.com) Copyright (C) 2001 Jim McDonough (jmcd@us.ibm.com) Copyright (C) 2001 Andrew Tridgell (tridge@samba.org) Originally written by Steve and Jim. Largely rewritten by tridge in November 2001. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /*****************************************************/ /* */ /* Distributed SMB/CIFS Server Management Utility */ /* */ /* The intent was to make the syntax similar */ /* to the NET utility (first developed in DOS */ /* with additional interesting & useful functions */ /* added in later SMB server network operating */ /* systems). */ /* */ /*****************************************************/ #include struct functable { char *funcname; int (*fn)(); }; /***********************************************************************/ /* Beginning of internationalization section. Translatable constants */ /* should be kept in this area and referenced in the rest of the code. */ /* */ /* No functions, outside of Samba or LSB (Linux Standards Base) should */ /* be used (if possible). */ /***********************************************************************/ #define PASSWORD_PROMPT "Password: " #define YES_STRING "Yes" #define NO_STRING "No" #define NET_USAGE \ "\nUsage: \n"\ " net domain \tto list domains \n"\ " net file \tto list open files on a server \n"\ " net group \tto list user groups \n"\ " net groupmember to list users in a group \n"\ " net password\t to change the password of a user\n"\ " net printq \tto list the print queues on a server\n"\ " net server \tto list servers in a domain\n"\ " net session \tto list clients with open sessions to a server\n"\ " net share \tto list shares exported by a server\n"\ " net user \tto list users\n"\ " net validate \tto check whether a user and the corresponding password are valid\n"\ " net help\n"\ "\nType \"net help