net   Début   Suivant   Sommaire   Préc.page.lue   Accueil

Section: System Administration tools (8)
Updated: 02/03/2009
Sommaire net - Tool for administration of Samba and remote CIFS servers.  




Synopsis   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

FCnetF[] {<ads|rap|rpc>} [-h] [-w workgroup] [-W myworkgroup] [-U user] [-I ip-address] [-p port] [-n myname] [-s conffile] [-S server] [-l] [-P] [-d debuglevel] [-V]
 



DESCRIPTION   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

samba(7) suite.

The Samba net utility is meant to work just like the net utility available for windows and DOS. The first argument should be used to specify the protocol to use when executing a certain command. ADS is used for ActiveDirectory, RAP is using for old (Win9x/NT3) clients and RPC can be used for NT4 and Windows 2000. If this argument is omitted, net will try to determine it automatically. Not all commands are available on all protocols.

 




OPTIONS   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

-h|--help

Print a summary of command line options.

-w target-workgroup

Sets target workgroup or domain. You have to specify either this option or the IP address or the name of a server.

-W workgroup

Sets client workgroup or domain

-U user

User name to use

-I ip-address

IP address of target server to use. You have to specify either this option or a target workgroup or a target server.

-p port

Port on the target server to connect to (usually 139 or 445). Defaults to trying 445 first, then 139.

-n <primary NetBIOS name>

This option allows you to override the NetBIOS name that Samba uses for itself. This is identical to setting the m[blue]netbios namem[] parameter in the FCsmb.confF[] file. However, a command line setting will take precedence over settings in FCsmb.confF[].

-s <configuration file>

The file specified contains the configuration details required by the server. The information in this file includes server-specific information such as what printcap file to use, as well as descriptions of all the services that the server is to provide. See FCsmb.confF[] for more information. The default configuration file name is determined at compile time.

-S server

Name of target server. You should specify either this option or a target workgroup or a target IP address.

-l

When listing data, give more information on each item.

-P

Make queries to the external server using the machine account of the local server.

-d|--debuglevel=level

level is an integer from 0 to 10. The default value if this parameter is not specified is 0.

The higher this value, the more detail will be logged to the log files about the activities of the server. At level 0, only critical errors and serious warnings will be logged. Level 1 is a reasonable level for day-to-day running - it generates a small amount of information about operations carried out.

Levels above 1 will generate considerable amounts of log data, and should only be used when investigating a problem. Levels above 3 are designed for use only by developers and generate HUGE amounts of log data, most of which is extremely cryptic.

Note that specifying this parameter here will override the m[blue]log levelm[] parameter in the FCsmb.confF[] file.

 



COMMANDS   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

 




CHANGESECRETPW   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

This command allows the Samba machine account password to be set from an external application to a machine account password that has already been stored in Active Directory. DO NOT USE this command unless you know exactly what you are doing. The use of this command requires that the force flag (-f) be used also. There will be NO command prompt. Whatever information is piped into stdin, either by typing at the command line or otherwise, will be stored as the literal machine password. Do NOT use this without care and attention as it will overwrite a legitimate machine password without warning. YOU HAVE BEEN WARNED.  




TIME   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

The FCNET TIMEF[] command allows you to view the time on a remote server or synchronise the time on the local server with the time on the remote server.  




TIME   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Without any options, the FCNET TIMEF[] command displays the time on the remote server.  




TIME SYSTEM   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Displays the time on the remote server in a format ready for FC/bin/dateF[].  




TIME SET   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Tries to set the date and time of the local server to that on the remote server using FC/bin/dateF[].  




TIME ZONE   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Displays the timezone in hours from GMT on the remote computer.  




[RPC|ADS] JOIN [TYPE] [-U username[%password]] [createupn=UPN] [createcomputer=OU] [options]   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Join a domain. If the account already exists on the server, and [TYPE] is MEMBER, the machine will attempt to join automatically. (Assuming that the machine has been created in server manager) Otherwise, a password will be prompted for, and a new account may be created.

[TYPE] may be PDC, BDC or MEMBER to specify the type of server joining the domain.

[UPN] (ADS only) set the principalname attribute during the join. The default format is host/netbiosname@REALM.

[OU] (ADS only) Precreate the computer account in a specific OU. The OU string reads from top to bottom without RDNs, and is delimited by a '/'. Please note that '\' is used for escape by both the shell and ldap, so it may need to be doubled or quadrupled to pass through, and it is not used as a delimiter.  




[RPC] OLDJOIN [options]   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Join a domain. Use the OLDJOIN option to join the domain using the old style of domain joining - you need to create a trust account in server manager first.  




[RPC|ADS] USER   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

 




[RPC|ADS] USER   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

List all users  




[RPC|ADS] USER DELETE target   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Delete specified user  




[RPC|ADS] USER INFO target   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

List the domain groups of the specified user.  




[RPC|ADS] USER RENAME oldname newname   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Rename specified user.  




[RPC|ADS] USER ADD name [password] [-F user flags] [-C comment]   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Add specified user.  




[RPC|ADS] GROUP   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

 




[RPC|ADS] GROUP [misc options] [targets]   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

List user groups.

 




[RPC|ADS] GROUP DELETE name [misc. options]   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Delete specified group.  




[RPC|ADS] GROUP ADD name [-C comment]   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Create specified group.  




[RAP|RPC] SHARE   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

 




[RAP|RPC] SHARE [misc. options] [targets]   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Enumerates all exported resources (network shares) on target server.  




[RAP|RPC] SHARE ADD name=serverpath [-C comment] [-M maxusers] [targets]   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Adds a share from a server (makes the export active). Maxusers specifies the number of users that can be connected to the share simultaneously.  




SHARE DELETE sharename   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Delete specified share.  




[RPC|RAP] FILE   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

 




[RPC|RAP] FILE   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

List all open files on remote server.  




[RPC|RAP] FILE CLOSE fileid   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Close file with specified fileid on remote server.  




[RPC|RAP] FILE INFO fileid   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Print information on specified fileid. Currently listed are: file-id, username, locks, path, permissions.

 




[RAP|RPC] FILE USER user   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

List files opened by specified user. Please note that FCnet rap file userF[] does not work against Samba servers.

 




SESSION   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

 




RAP SESSION   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Without any other options, SESSION enumerates all active SMB/CIFS sessions on the target server.  




RAP SESSION DELETE|CLOSE CLIENT_NAME   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Close the specified sessions.

 




RAP SESSION INFO CLIENT_NAME   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Give a list with all the open files in specified session.  

RAP SERVER DOMAIN

List all servers in specified domain or workgroup. Defaults to local domain.  




RAP DOMAIN   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Lists all domains and workgroups visible on the current network.  




RAP PRINTQ   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

 




RAP PRINTQ INFO QUEUE_NAME   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Lists the specified print queue and print jobs on the server. If the QUEUE_NAME is omitted, all queues are listed.  




RAP PRINTQ DELETE JOBID   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Delete job with specified id.  

RAP VALIDATE user [password]

Validate whether the specified user can log in to the remote server. If the password is not specified on the commandline, it will be prompted.


Note

Currently NOT implemented.

 



RAP GROUPMEMBER   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

 




RAP GROUPMEMBER LIST GROUP   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

List all members of the specified group.  




RAP GROUPMEMBER DELETE GROUP USER   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Delete member from group.  




RAP GROUPMEMBER ADD GROUP USER   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Add member to group.  

RAP ADMIN command

Execute the specified command on the remote server. Only works with OS/2 servers.


Note

Currently NOT implemented.

 



RAP SERVICE   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

 




RAP SERVICE START NAME [arguments...]   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Start the specified service on the remote server. Not implemented yet.


Note

Currently NOT implemented.

 



RAP SERVICE STOP   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Stop the specified service on the remote server.


Note

Currently NOT implemented.

 

RAP PASSWORD USER OLDPASS NEWPASS

Change password of USER from OLDPASS to NEWPASS.  




LOOKUP   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

 




LOOKUP HOST HOSTNAME [TYPE]   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Lookup the IP address of the given host with the specified type (netbios suffix). The type defaults to 0x20 (workstation).  




LOOKUP LDAP [DOMAIN]   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Give IP address of LDAP server of specified DOMAIN. Defaults to local domain.  




LOOKUP KDC [REALM]   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Give IP address of KDC for the specified REALM. Defaults to local realm.  




LOOKUP DC [DOMAIN]   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Give IP's of Domain Controllers for specified DOMAIN. Defaults to local domain.  




LOOKUP MASTER DOMAIN   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Give IP of master browser for specified DOMAIN or workgroup. Defaults to local domain.  




CACHE   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Samba uses a general caching interface called 'gencache'. It can be controlled using 'NET CACHE'.

All the timeout parameters support the suffixes:

s - Seconds

m - Minutes

h - Hours

d - Days

w - Weeks

 



CACHE ADD key data time-out   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Add specified key+data to the cache with the given timeout.  




CACHE DEL key   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Delete key from the cache.  




CACHE SET key data time-out   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Update data of existing cache entry.  




CACHE SEARCH PATTERN   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Search for the specified pattern in the cache data.  




CACHE LIST   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

List all current items in the cache.  




CACHE FLUSH   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Remove all the current items from the cache.  




GETLOCALSID [DOMAIN]   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Prints the SID of the specified domain, or if the parameter is omitted, the SID of the local server.  




SETLOCALSID S-1-5-21-x-y-z   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Sets SID for the local server to the specified SID.  




GETDOMAINSID   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Prints the local machine SID and the SID of the current domain.  




SETDOMAINSID   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Sets the SID of the current domain.  




GROUPMAP   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Manage the mappings between Windows group SIDs and UNIX groups. Common options include:

* unixgroup - Name of the UNIX group

* ntgroup - Name of the Windows NT group (must be resolvable to a SID

* rid - Unsigned 32-bit integer

* sid - Full SID in the form of "S-1-..."

* type - Type of the group; either 'domain', 'local', or 'builtin'

* comment - Freeform text description of the group

 



GROUPMAP ADD   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Add a new group mapping entry:



net groupmap add {rid=int|sid=string} unixgroup=string \
        [type={domain|local}] [ntgroup=string] [comment=string]

 




GROUPMAP DELETE   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Delete a group mapping entry. If more than one group name matches, the first entry found is deleted.

net groupmap delete {ntgroup=string|sid=SID}  




GROUPMAP MODIFY   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Update en existing group entry.



net groupmap modify {ntgroup=string|sid=SID} [unixgroup=string] \
       [comment=string] [type={domain|local}]

 




GROUPMAP LIST   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

List existing group mapping entries.

net groupmap list [verbose] [ntgroup=string] [sid=SID]  




MAXRID   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Prints out the highest RID currently in use on the local server (by the active 'passdb backend').  




RPC INFO   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Print information about the domain of the remote server, such as domain name, domain sid and number of users and groups.

 




[RPC|ADS] TESTJOIN   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Check whether participation in a domain is still valid.  




[RPC|ADS] CHANGETRUSTPW   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Force change of domain trust password.  




RPC TRUSTDOM   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

 




RPC TRUSTDOM ADD DOMAIN   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Add a interdomain trust account for DOMAIN. This is in fact a Samba account named DOMAIN$ with the account flag 'I' (interdomain trust account). If the command is used against localhost it has the same effect as FCsmbpasswd -a -i DOMAINF[]. Please note that both commands expect a appropriate UNIX account.  




RPC TRUSTDOM DEL DOMAIN   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Remove interdomain trust account for DOMAIN. If it is used against localhost it has the same effect as FCsmbpasswd -x DOMAIN$F[].  




RPC TRUSTDOM ESTABLISH DOMAIN   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Establish a trust relationship to a trusting domain. Interdomain account must already be created on the remote PDC.  




RPC TRUSTDOM REVOKE DOMAIN   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Abandon relationship to trusted domain  




RPC TRUSTDOM LIST   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

List all current interdomain trust relationships.

 




RPC RIGHTS   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

This subcommand is used to view and manage Samba's rights assignments (also referred to as privileges). There are three options currently available: list, grant, and revoke. More details on Samba's privilege model and its use can be found in the Samba-HOWTO-Collection.  




RPC ABORTSHUTDOWN   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Abort the shutdown of a remote server.  




RPC SHUTDOWN [-t timeout] [-r] [-f] [-C message]   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Shut down the remote server.

-r

Reboot after shutdown.

-f

Force shutting down all applications.

-t timeout

Timeout before system will be shut down. An interactive user of the system can use this time to cancel the shutdown.

'>

-C message

Display the specified message on the screen to announce the shutdown.

 



RPC SAMDUMP   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Print out sam database of remote server. You need to run this against the PDC, from a Samba machine joined as a BDC.  




RPC VAMPIRE   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Export users, aliases and groups from remote server to local server. You need to run this against the PDC, from a Samba machine joined as a BDC.  




RPC GETSID   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Fetch domain SID and store it in the local FCsecrets.tdbF[].  




ADS LEAVE   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Make the remote host leave the domain it is part of.  




ADS STATUS   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Print out status of machine account of the local machine in ADS. Prints out quite some debug info. Aimed at developers, regular users should use FCNET ADS TESTJOINF[].  




ADS PRINTER   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

 




ADS PRINTER INFO [PRINTER] [SERVER]   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Lookup info for PRINTER on SERVER. The printer name defaults to "*", the server name defaults to the local host.  




ADS PRINTER PUBLISH PRINTER   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Publish specified printer using ADS.  




ADS PRINTER REMOVE PRINTER   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Remove specified printer from ADS directory.  

ADS SEARCH EXPRESSION ATTRIBUTES...

Perform a raw LDAP search on a ADS server and dump the results. The expression is a standard LDAP search expression, and the attributes are a list of LDAP fields to show in the results.

Example: net ads search '(objectCategory=group)' sAMAccountName  

ADS DN DN (attributes)

Perform a raw LDAP search on a ADS server and dump the results. The DN standard LDAP DN, and the attributes are a list of LDAP fields to show in the result.

Example: net ads dn 'CN=administrator,CN=Users,DC=my,DC=domain' SAMAccountName  




ADS WORKGROUP   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Print out workgroup name for specified kerberos realm.  




SAM CREATEBUILTINGROUP <NAME>   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

(Re)Create a BUILTIN group. Only a wellknown set of BUILTIN groups can be created with this command. This is the list of currently recognized group names: Administrators, Users, Guests, Power Users, Account Operators, Server Operators, Print Operators, Backup Operators, Replicator, RAS Servers, Pre-Windows 2000 compatible Access. This command requires a running Winbindd with idmap allocation properly configured. The group gid will be allocated out of the winbindd range.  




SAM CREATELOCALGROUP <NAME>   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Create a LOCAL group (also known as Alias). This command requires a running Winbindd with idmap allocation properly configured. The group gid will be allocated out of the winbindd range.  




SAM DELETELOCALGROUP <NAME>   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Delete an existing LOCAL group (also known as Alias).  




SAM MAPUNIXGROUP <NAME>   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Map an existing Unix group and make it a Domain Group, the domain group will have the same name.  




SAM UNMAPUNIXGROUP <NAME>   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Remove an existing group mapping entry.  




SAM ADDMEM <GROUP> <MEMBER>   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Add a member to a Local group. The group can be specified only by name, the member can be specified by name or SID.  




SAM DELMEM <GROUP> <MEMBER>   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Remove a member from a Local group. The group and the member must be specified by name.  




SAM LISTMEM <GROUP>   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

List Local group members. The group must be specified by name.  




SAM LIST <users|groups|localgroups|builtin|workstations> [verbose]   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

List the specified set of accounts by name. If verbose is specified, the rid and description is also provided for each account.  




SAM SHOW <NAME>   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Show the full DOMAIN\\NAME the SID and the type for the corresponding account.  




SAM SET HOMEDIR <NAME> <DIRECTORY>   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Set the home directory for a user account.  




SAM SET PROFILEPATH <NAME> <PATH>   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Set the profile path for a user account.  




SAM SET COMMENT <NAME> <COMMENT>   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Set the comment for a user or group account.  




SAM SET FULLNAME <NAME> <FULL NAME>   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Set the full name for a user account.  




SAM SET LOGONSCRIPT <NAME> <SCRIPT>   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Set the logon script for a user account.  




SAM SET HOMEDRIVE <NAME> <DRIVE>   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Set the home drive for a user account.  




SAM SET WORKSTATIONS <NAME> <WORKSTATIONS>   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Set the workstations a user account is allowed to log in from.  




SAM SET DISABLE <NAME>   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Set the "disabled" flag for a user account.  




SAM SET PWNOTREQ <NAME>   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Set the "password not required" flag for a user account.  




SAM SET AUTOLOCK <NAME>   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Set the "autolock" flag for a user account.  




SAM SET PWNOEXP <NAME>   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Set the "password do not expire" flag for a user account.  




SAM SET PWDMUSTCHANGENOW <NAME> [yes|no]   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Set or unset the "password must change" flag for a user account.  




SAM POLICY LIST   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

List the available account policies.

 




SAM POLICY SHOW <account policy>   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Show the account policy value.  




SAM POLICY SET <account policy> <value>   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Set a value for the account policy. Valid values can be: "forever", "never", "off", or a number.  




SAM PROVISION   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Only available if ldapsam:editposix is set and winbindd is running. Properly populates the ldap tree with the basic accounts (Administrator) and groups (Domain Users, Domain Admins, Domain Guests) on the ldap tree.  




IDMAP DUMP <local tdb file name>   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Dumps the mappings contained in the local tdb file specified. This command is useful to dump only the mappings produced by the idmap_tdb backend.  




IDMAP RESTORE [input file]   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Restore the mappings from the specified file or stdin.  




IDMAP SECRET <DOMAIN>|ALLOC <secret>   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Store a secret for the specified domain, used primarily for domains that use idmap_ldap as a backend. In this case the secret is used as the password for the user DN used to bind to the ldap server.  




USERSHARE   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Starting with version 3.0.23, a Samba server now supports the ability for non-root users to add user defined shares to be exported using the "net usershare" commands.

To set this up, first set up your smb.conf by adding to the [global] section: usershare path = /usr/local/samba/lib/usershares Next create the directory /usr/local/samba/lib/usershares, change the owner to root and set the group owner to the UNIX group who should have the ability to create usershares, for example a group called "serverops". Set the permissions on /usr/local/samba/lib/usershares to 01770. (Owner and group all access, no access for others, plus the sticky bit, which means that a file in that directory can be renamed or deleted only by the owner of the file). Finally, tell smbd how many usershares you will allow by adding to the [global] section of smb.conf a line such as : usershare max shares = 100. To allow 100 usershare definitions. Now, members of the UNIX group "serverops" can create user defined shares on demand using the commands below.

The usershare commands are:

net usershare add sharename path [comment] [acl] [guest_ok=[y|n]] - to add or change a user defined share.

net usershare delete sharename - to delete a user defined share.

net usershare info [-l|--long] [wildcard sharename] - to print info about a user defined share.

net usershare list [-l|--long] [wildcard sharename] - to list user defined shares.

 



USERSHARE ADD sharename path [comment] [acl] [guest_ok=[y|n]]   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Add or replace a new user defined share, with name "sharename".

"path" specifies the absolute pathname on the system to be exported. Restrictions may be put on this, see the global smb.conf parameters: "usershare owner only", "usershare prefix allow list", and "usershare prefix deny list".

The optional "comment" parameter is the comment that will appear on the share when browsed to by a client.

The optional "acl" field specifies which users have read and write access to the entire share. Note that guest connections are not allowed unless the smb.conf parameter "usershare allow guests" has been set. The definition of a user defined share acl is: "user:permission", where user is a valid username on the system and permission can be "F", "R", or "D". "F" stands for "full permissions", ie. read and write permissions. "D" stands for "deny" for a user, ie. prevent this user from accessing this share. "R" stands for "read only", ie. only allow read access to this share (no creation of new files or directories or writing to files).

The default if no "acl" is given is "Everyone:R", which means any authenticated user has read-only access.

The optional "guest_ok" has the same effect as the parameter of the same name in smb.conf, in that it allows guest access to this user defined share. This parameter is only allowed if the global parameter "usershare allow guests" has been set to true in the smb.conf.

There is no separate command to modify an existing user defined share, just use the "net usershare add [sharename]" command using the same sharename as the one you wish to modify and specify the new options you wish. The Samba smbd daemon notices user defined share modifications at connect time so will see the change immediately, there is no need to restart smbd on adding, deleting or changing a user defined share.  




USERSHARE DELETE sharename   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Deletes the user defined share by name. The Samba smbd daemon immediately notices this change, although it will not disconnect any users currently connected to the deleted share.  




USERSHARE INFO [-l|--long] [wildcard sharename]   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Get info on user defined shares owned by the current user matching the given pattern, or all users.

net usershare info on its own dumps out info on the user defined shares that were created by the current user, or restricts them to share names that match the given wildcard pattern ('*' matches one or more characters, '?' matches only one character). If the '-l' or '--long' option is also given, it prints out info on user defined shares created by other users.

The information given about a share looks like: [foobar] path=/home/jeremy comment=testme usershare_acl=Everyone:F guest_ok=n And is a list of the current settings of the user defined share that can be modified by the "net usershare add" command.  




USERSHARE LIST [-l|--long] wildcard sharename   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

List all the user defined shares owned by the current user matching the given pattern, or all users.

net usershare list on its own list out the names of the user defined shares that were created by the current user, or restricts the list to share names that match the given wildcard pattern ('*' matches one or more characters, '?' matches only one character). If the '-l' or '--long' option is also given, it includes the names of user defined shares created by other users.

 




CONF   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Starting with version 3.2.0, a Samba server can be configured by data stored in registry. This configuration data can be edited with the new "net conf" commands.

The deployment of this configuration data can be activated in two levels from the smb.conf file: Share definitions from registry are activated by setting registry shares to lqyesrq in the [global] section and global configuration options are activated by setting m[blue]include = registrym[] in the [global] section for a mixed configuration or by setting m[blue]config backend = registrym[] in the [global] section for a registry-only configuration. See the smb.conf(5) manpage for details.

The conf commands are:

net conf list - Dump the complete configuration in smb.conf like format.

net conf import - Import configuration from file in smb.conf format.

net conf listshares - List the registry shares.

net conf drop - Delete the complete configuration from registry.

net conf showshare - Show the definition of a registry share.

net conf addshare - Create a new registry share.

net conf delshare - Delete a registry share.

net conf setparm - Store a parameter.

net conf getparm - Retrieve the value of a parameter.

net conf delparm - Delete a parameter.

net conf getincludes - Show the includes of a share definition.

net conf setincludes - Set includes for a share.

net conf delincludes - Delete includes from a share definition.

 



CONF LIST   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Print the configuration data stored in the registry in a smb.conf-like format to standard output.  




CONF IMPORT [--test|-T] filename [section]   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

This command imports configuration from a file in smb.conf format. If a section encountered in the input file is present in registry, its contents is replaced. Sections of registry configuration that have no counterpart in the input file are not affected. If you want to delete these, you will have to use the "net conf drop" or "net conf delshare" commands. Optionally, a section may be specified to restrict the effect of the import command to that specific section. A test mode is enabled by specifying the parameter "-T" on the commandline. In test mode, no changes are made to the registry, and the resulting configuration is printed to standard output instead.  




CONF LISTSHARES   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

List the names of the shares defined in registry.  




CONF DROP   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Delete the complete configuration data from registry.  




CONF SHOWSHARE sharename   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Show the definition of the share or section specified. It is valid to specify "global" as sharename to retrieve the global configuration options from registry.  




CONF ADDSHARE sharename path [writeable={y|N} [guest_ok={y|N} [comment]]]   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Create a new share definition in registry. The sharename and path have to be given. The share name may not be "global". Optionally, values for the very common options "writeable", "guest ok" and a "comment" may be specified. The same result may be obtained by a sequence of "net conf setparm" commands.

 




CONF DELSHARE sharename   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Delete a share definition from registry.  




CONF SETPARM section parameter value   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Store a parameter in registry. The section may be global or a sharename. The section is created if it does not exist yet.  




CONF GETPARM section parameter   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Show a parameter stored in registry.  




CONF DELPARM section parameter   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Delete a parameter stored in registry.  




CONF GETINCLUDES section   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Get the list of includes for the provided section (global or share).

Note that due to the nature of the registry database and the nature of include directives, the includes need special treatment: Parameters are stored in registry by the parameter name as valuename, so there is only ever one instance of a parameter per share. Also, a specific order like in a text file is not guaranteed. For all real parameters, this is perfectly ok, but the include directive is rather a meta parameter, for which, in the smb.conf text file, the place where it is specified between the other parameters is very important. This can not be achieved by the simple registry smbconf data model, so there is one ordered list of includes per share, and this list is evaluated after all the parameters of the share.

Further note that currently, only files can be included from registry configuration. In the future, there will be the ability to include configuration data from other registry keys.

 




CONF SETINCLUDES section [filename]+   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Set the list of includes for the provided section (global or share) to the given list of one or more filenames. The filenames may contain the usual smb.conf macros like %I.  




CONF DELINCLUDES section   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Delete the list of includes from the provided section (global or share).  




HELP [COMMAND]   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

Gives usage information for the specified command.  




VERSION   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

This man page is complete for version 3 of the Samba suite.  




AUTHOR   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed.

The net manpage was written by Jelmer Vernooij.


 



Sommaire   Début   Suivant   Sommaire   Préc.page.lue   Accueil

Synopsis

DESCRIPTION

OPTIONS

COMMANDS

CHANGESECRETPW

TIME

TIME

TIME SYSTEM

TIME SET

TIME ZONE

[RPC|ADS] JOIN [TYPE] [-U username[%password]] [createupn=UPN] [createcomputer=OU] [options]

[RPC] OLDJOIN [options]

[RPC|ADS] USER

[RPC|ADS] USER

[RPC|ADS] USER DELETE target

[RPC|ADS] USER INFO target

[RPC|ADS] USER RENAME oldname newname

[RPC|ADS] USER ADD name [password] [-F user flags] [-C comment]

[RPC|ADS] GROUP

[RPC|ADS] GROUP [misc options] [targets]

[RPC|ADS] GROUP DELETE name [misc. options]

[RPC|ADS] GROUP ADD name [-C comment]

[RAP|RPC] SHARE

[RAP|RPC] SHARE [misc. options] [targets]

[RAP|RPC] SHARE ADD name=serverpath [-C comment] [-M maxusers] [targets]

SHARE DELETE sharename

[RPC|RAP] FILE

[RPC|RAP] FILE

[RPC|RAP] FILE CLOSE fileid

[RPC|RAP] FILE INFO fileid

[RAP|RPC] FILE USER user

SESSION

RAP SESSION

RAP SESSION DELETE|CLOSE CLIENT_NAME

RAP SESSION INFO CLIENT_NAME

RAP SERVER DOMAIN

RAP DOMAIN

RAP PRINTQ

RAP PRINTQ INFO QUEUE_NAME

RAP PRINTQ DELETE JOBID

RAP VALIDATE user [password]

RAP GROUPMEMBER

RAP GROUPMEMBER LIST GROUP

RAP GROUPMEMBER DELETE GROUP USER

RAP GROUPMEMBER ADD GROUP USER

RAP ADMIN command

RAP SERVICE

RAP SERVICE START NAME [arguments...]

RAP SERVICE STOP

RAP PASSWORD USER OLDPASS NEWPASS

LOOKUP

LOOKUP HOST HOSTNAME [TYPE]

LOOKUP LDAP [DOMAIN]

LOOKUP KDC [REALM]

LOOKUP DC [DOMAIN]

LOOKUP MASTER DOMAIN

CACHE

CACHE ADD key data time-out

CACHE DEL key

CACHE SET key data time-out

CACHE SEARCH PATTERN

CACHE LIST

CACHE FLUSH

GETLOCALSID [DOMAIN]

SETLOCALSID S-1-5-21-x-y-z

GETDOMAINSID

SETDOMAINSID

GROUPMAP

GROUPMAP ADD

GROUPMAP DELETE

GROUPMAP MODIFY

GROUPMAP LIST

MAXRID

RPC INFO

[RPC|ADS] TESTJOIN

[RPC|ADS] CHANGETRUSTPW

RPC TRUSTDOM

RPC TRUSTDOM ADD DOMAIN

RPC TRUSTDOM DEL DOMAIN

RPC TRUSTDOM ESTABLISH DOMAIN

RPC TRUSTDOM REVOKE DOMAIN

RPC TRUSTDOM LIST

RPC RIGHTS

RPC ABORTSHUTDOWN

RPC SHUTDOWN [-t timeout] [-r] [-f] [-C message]

RPC SAMDUMP

RPC VAMPIRE

RPC GETSID

ADS LEAVE

ADS STATUS

ADS PRINTER

ADS PRINTER INFO [PRINTER] [SERVER]

ADS PRINTER PUBLISH PRINTER

ADS PRINTER REMOVE PRINTER

ADS SEARCH EXPRESSION ATTRIBUTES...

ADS DN DN (attributes)

ADS WORKGROUP

SAM CREATEBUILTINGROUP <NAME>

SAM CREATELOCALGROUP <NAME>

SAM DELETELOCALGROUP <NAME>

SAM MAPUNIXGROUP <NAME>

SAM UNMAPUNIXGROUP <NAME>

SAM ADDMEM <GROUP> <MEMBER>

SAM DELMEM <GROUP> <MEMBER>

SAM LISTMEM <GROUP>

SAM LIST <users|groups|localgroups|builtin|workstations> [verbose]

SAM SHOW <NAME>

SAM SET HOMEDIR <NAME> <DIRECTORY>

SAM SET PROFILEPATH <NAME> <PATH>

SAM SET COMMENT <NAME> <COMMENT>

SAM SET FULLNAME <NAME> <FULL NAME>

SAM SET LOGONSCRIPT <NAME> <SCRIPT>

SAM SET HOMEDRIVE <NAME> <DRIVE>

SAM SET WORKSTATIONS <NAME> <WORKSTATIONS>

SAM SET DISABLE <NAME>

SAM SET PWNOTREQ <NAME>

SAM SET AUTOLOCK <NAME>

SAM SET PWNOEXP <NAME>

SAM SET PWDMUSTCHANGENOW <NAME> [yes|no]

SAM POLICY LIST

SAM POLICY SHOW <account policy>

SAM POLICY SET <account policy> <value>

SAM PROVISION

IDMAP DUMP <local tdb file name>

IDMAP RESTORE [input file]

IDMAP SECRET <DOMAIN>|ALLOC <secret>

USERSHARE

USERSHARE ADD sharename path [comment] [acl] [guest_ok=[y|n]]

USERSHARE DELETE sharename

USERSHARE INFO [-l|--long] [wildcard sharename]

USERSHARE LIST [-l|--long] wildcard sharename

CONF

CONF LIST

CONF IMPORT [--test|-T] filename [section]

CONF LISTSHARES

CONF DROP

CONF SHOWSHARE sharename

CONF ADDSHARE sharename path [writeable={y|N} [guest_ok={y|N} [comment]]]

CONF DELSHARE sharename

CONF SETPARM section parameter value

CONF GETPARM section parameter

CONF DELPARM section parameter

CONF GETINCLUDES section

CONF SETINCLUDES section [filename]+

CONF DELINCLUDES section

HELP [COMMAND]

VERSION

AUTHOR


Ce document a été créé par man2html suivi de man2html.pl, le 12/02/2009 07:49:29, en utilisant les pages de 'man'.
 

Valid HTML 4.01 Transitional