Sponsored Content
Full Discussion: Testing for valid DC's?
Top Forums UNIX for Dummies Questions & Answers Testing for valid DC's? Post 302416538 by infinitiguy on Tuesday 27th of April 2010 12:14:45 AM
Old 04-27-2010
if i recall, most DC's have a netlogon share, used for login scripts. You can just \\machine_in_question and see if it comes up..

however this may only work if the machine is a part of the domain... i'd assume netlogon isn't shareable by everyone... so I guess that might not work for you.

however, going on one of the earlier posts about ports.. there's always trusty telnet <machine> port_to_suspect

if it listens, it responds, if not.. move on.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Is this a valid statement?

I need an if statement that recognizes whether files fitting a certain pattern exist in the current directory. Is this syntax valid: if ; then ... fi assuming that zero="0" and star="*". Is there a better way to write it? (3 Replies)
Discussion started by: mharley
3 Replies

2. Programming

valid code?

hey , everyone. I have a few questions about pieces of code and was wondering if someone could tell me what exactly they did or if they are even valid. bool1 && bool2 || bool3 <---in what order do these get processed? if (! isdigit(c)) <---What does this do? i = j % 3; <---what does this do?... (4 Replies)
Discussion started by: bebop1111116
4 Replies

3. Shell Programming and Scripting

': not a valid identifier

I am trying to write a bash script. I am able to do simple things like pass arguments, assign variables and echo the results. However, when I try to declare and array or anything a little more complicated I get ': not a valid identifier Here is my code so far: #!/bin/bash echo start t... (7 Replies)
Discussion started by: script123
7 Replies

4. Programming

is it valid output ?

#include <iostream> #include<stdio.h> using namespace std; class a { public: int xx; a() { cout << "in CONS a \n"; } ~a() { cout << "in DES a \n"; } }; (1 Reply)
Discussion started by: crackthehit007
1 Replies

5. Shell Programming and Scripting

Specified substitution not valid for

Experts, In a script i get the following error: The specified substitution is not valid for this command Do you have any idea what is wrong with it? TITLE="Code Checker" # Script Titel # EXT="_UA99" # Eind van dirnaam # FILE="job.dat" # Zoekbestandsnaam # SEARCH="returncode 0" #... (1 Reply)
Discussion started by: klaasjan
1 Replies

6. Homework & Coursework Questions

Valid Name

Could someone help me by midnight tonight!!! Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Insert a reference to the Bourne shell as the command... (0 Replies)
Discussion started by: cody007
0 Replies

7. UNIX for Dummies Questions & Answers

Is this valid tar statements ?

Hello every one, Is this a valid tar statement ? tar cv /dev/rmt/0 /etc tar cx /dev/rmt/0 /opt tar c /dev/rmt/0 and what is there effect ? Thanks in advance. (3 Replies)
Discussion started by: drdigital_m
3 Replies

8. UNIX for Dummies Questions & Answers

Script to see if a username is valid.

This is my task: The argument enter on the command line is a first and last name ( for example: "John Smith"). If the argument is a validly formatted name, you display The "name enter" is valid to standard out. If the argument is not a validly formated name, you display The "name enter" is... (1 Reply)
Discussion started by: TheRealNapsta
1 Replies

9. Shell Programming and Scripting

PL/SQL: Specified Number Is Not Valid

Hi I have Unix shell script that invokes PL/SQL procedure. The batch job when executed terminated with the error message:-unlimited: The specified number is not valid for this command.Please let me know what is the root cause of the issue and how to fix the issue. Thanks (1 Reply)
Discussion started by: moonkhan1
1 Replies
smbutil(1)							   User Commands							smbutil(1)

NAME
smbutil - Solaris CIFS client utility SYNOPSIS
/usr/bin/smbutil crypt /usr/bin/smbutil login [-c] [[domain/]user] /usr/bin/smbutil login [-c] [user[@domain]] /usr/bin/smbutil logout [[domain/]user] /usr/bin/smbutil logout [user[@domain]] /usr/bin/smbutil logout -a /usr/bin/smbutil logoutall /usr/bin/smbutil lookup name /usr/bin/smbutil status server /usr/bin/smbutil view [-A | -U user] //[domain;][user[:password]@]server /usr/bin/smbutil [-?dv] DESCRIPTION
The smbutil command controls the Solaris CIFS client and issues various commands. Subcommands The smbutil command supports the following subcommands: crypt Creates a hash of a password. This subcommand prompts for a password and writes the hash to standard output. This hash value is suit- able for use as a value for the password property in the $HOME/.nsmbrc file. The hashed password begins with two dollar signs ($$). If you assign this hashed password to the password property in your $HOME/.nsm- brc, be sure that you escape the special characters in the password. If you plan to store hashed passwords in your $HOME/.nsmbrc file, ensure that the file permissions are set so that only the owner can read or write the file (400 or 600), or the passwords are ignored. login [-c] [ [[domain/]user] | [user[@domain] ] Specifies persistent password information to be used for a CIFS server user account. When you specify this information, mounts can be done without a password prompt in non-Kerberos configurations. Kerberos sites should use Kerberos automatically, not prompt for a pass- word. If a default domain is available in SMF or nsmbrc(4), the domain can be omitted. If a user name is not specified, the Solaris user account name is used. Use the -c to check whether a persistent password is set for the specified user. Passwords can also be stored for a specific server by using a server name in place of the domain name. This capability is useful with servers that are configured for "workgroup mode." logout [ [[domain/]user] | [user[@domain] ] Erases the persistent passwords that are stored for the Solaris user account name of the person running the command. If any part of user name, domain or user, is not specified, the password is deleted for the user who specified by the user and domain properties described in the nsmbrc(4) manual page. If you stored your password for a specific server, specify the server name in place of the domain name. logout -a Erases all of the persistent passwords that are stored for the user who is running the command. logoutall Erases all the persistent passwords that are stored by all users running the smbutil login command. This command must be run as superuser. lookup name Resolves the specified name to an IP address. This subcommand is only supported if an NBNS/WINS name server is available. status server Resolves the specified server to the NetBIOS domain and system name. server can be an IP address or a DNS name. view [-A | -U user] //[domain;][user[:password]@]server Lists the resources available to user on the specified server. You can specify the -A option to view the resources as an anonymous user or the -U user option to view the resources as the specified user. These options are mutually exclusive. If the resource includes a domain, you must escape the semicolon that appears after the domain name to prevent it from being inter- preted by the command shell. For instance, surround the entire resource name with single quotes: smbutil view '//SALES;george@RSERVER'. OPTIONS
The following global options are supported: -d Produces debugging output. -v Produces verbose output. -? Prints a short help message. EXAMPLES
Example 1 Creating a Password Hash for the $HOME/.nsmbrc File The following example shows how to use the smbutil crypt command to create a hash of the password you specify. Then, you can use the hash as the value for the $HOME/.nsmbrc file. Be sure to escape the two dollar-sign prefix of the hashed password if you store it as a value of the password property. $ smbutil crypt Password: $$178465324253e0c07 The following $HOME/.nsmbrc file fragment shows how the password hash value is set: [RSERVER:george] charsets=koi8-r:cp866 password='$$178465324253e0c07' Example 2 Storing a Password for a CIFS Server The following example shows how to use the smbutil login command to store the root@example user's password. $ smbutil login root@example Password: Example 3 Erasing the Stored Password The following example shows how to use the smbutil logout command to remove the root@example user's password. $ smbutil logout root@example Example 4 Viewing Available Shares The following example shows how to use the smbutil view command to see the available shares for user root on server example. $ smbutil view //root@example Password: Share Type Comment ------------------------------- netlogon disk Network Logon Service ipc$ IPC IPC Service (Samba Server) tmp disk Temporary file space public disk Public Stuff root disk Home Directories 5 shares listed from 5 available Example 5 Viewing Available Shares as an Anonymous User The following example shows how to use the smbutil view command to anonymously view the available shares on the example server. $ smbutil view -A //example Share Type Comment ------------------------------- netlogon disk Network Logon Service ipc$ IPC IPC Service (Samba Server) tmp disk Temporary file space public disk Public Stuff ethereal disk /export/ethereal myshare disk Jan's stuff 6 shares listed from 6 available Example 6 Obtaining the IP Address From a Server Name The following example shows how to use the smbutil lookup command to obtain the IP address of the example server. $ smbutil lookup example Got response from 192.168.168.210 IP address of example: 192.168.168.210 Example 7 Obtaining the NetBIOS Domain and System Name Using the Server Name The following example shows how to use the smbutil status command to obtain the NetBIOS domain and system name of the example server. The server name, example, is specified on the command line. $ smbutil status example Domain: WORKGROUP Server: EXAMPLE Example 8 Obtaining the NetBIOS Domain and System Name Using the IP Address The following example shows how to use the smbutil status command to obtain the NetBIOS domain and system name of the example server. The IP address, 192.168.168.210, is specified on the command line. $ smbutil status 192.168.168.210 Domain: WORKGROUP Server: EXAMPLE FILES
$HOME/.nsmbrc User-settable mount point configuration file to store the description for each connection. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWsmbfscu | +-----------------------------+-----------------------------+ |Interface Stability |See below. | +-----------------------------+-----------------------------+ The output is Uncommitted. The rest of the interface is Committed. SEE ALSO
mount_smbfs(1M), nsmbrc(4), attributes(5), smbfs(7FS) AUTHORS
This manual page contains material originally authored by Boris Popov, bp@butya.kz, bp@FreeBSD.org. NOTES
The Solaris CIFS client always attempts to use gethostbyname() to resolve host names. If the host name cannot be resolved, the CIFS client uses NetBIOS name resolution (NBNS). By default, the Solaris CIFS client permits the use of NBNS to enable Solaris CIFS clients in Windows environments to work without additional configuration. Since NBNS has been exploited in the past, you might want to disable it. To disable NBNS, set the nbns-enabled service management facility property to false. By default, nbns-enabled is set to true. SunOS 5.11 18 Aug 2008 smbutil(1)
All times are GMT -4. The time now is 07:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy