samba swat总结

SWAT—Samba WEB管理工具
是否随操作系统自动启动配置文件/etc/rc.config.d/samba

Samba服务配置文件 /etc/opt/smb/smb.conf

Samba服务日志文件:/var/opt/samba/log.%m

Samba安装目录:/opt/samba

Cd  /opt/samba/bin

#smbstatus  看状态

#startsmb   stopsmb 启停

 

 

Swlist|grep CIFSswat软件是否安装

 

ERPDEV:/opt/samba/bin#swlist|grep CIFS

  CIFS-CLIENT                   A.02.02.02     HP CIFS Client

  CIFS-SERVER                   A.02.03.03     HP CIFS Server

 

ERPDEV:/opt/samba/bin#swat -V

Version 3.0.22 based HP CIFS Server A.02.03.03

 

ERPDEV:/opt/samba/bin#cifsclient status

path:     /opt/cifsclient/sbin/cifsclientd

version:            HP CIFS Client - Version A.02.02.02

          Compiled on HP-UX B.11.11, 9000/800/N4000-55, 2007/10/22 12:04:31

cksum:    2371973058

status:   The CIFS Client is down.

mntck:    ok

 

ERPDEV:/opt/samba/bin#smbstatus

 

Samba version 3.0.22 based HP CIFS Server A.02.03.03

PID     Username      Group         Machine                       

-------------------------------------------------------------------

 

Service      pid     machine       Connected at

-------------------------------------------------------

 

No locked files

 

 

ERPDEV:/opt/samba/bin#netstat -an|grep 901

tcp        0      0  *.901                  *.*                     LISTEN

 

 

 

屏蔽swat服务:

ERPDEV:/#more /etc/inetd.conf

注释swat    stream tcp   nowait.400 root /opt/samba/bin/swat swat

 

ERPDEV:/#more /etc/services

注释swat      901/tcp       # SAMBA Web-based Admin Tool

ERPDEV:/#inetd -c

 

(AIX: refresh -s inetdkill -1 PID(inetd's pid))

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ERPDEV:/opt/samba/bin#man cifsclient

 

 cifsclient(1M)                                               cifsclient(1M)

 

 NAME

      cifsclient - control script for the HP CIFS Client

 

 SYNOPSIS

      cifsclient command [arguments]

 

      cifsclient force_umount {mountpoint[...] | -a}

 

 DESCRIPTION

      cifsclient is part of the HP CIFS Client software bundle.  For

      detailed information, refer to the HP CIFS Client Administrator's

      Guide and Release Notes, available at http://docs.hp.com.

 

      cifsclient is a shell script used to start and stop the CIFS Client,

      and to perform other useful tasks.  Only users with 'root'

      capabilities can use the commands start, stop, restart, force_umount,

      and fuser (see also the -a option to klist and kdestroy).  Any user

      can invoke status, klist, kdestroy, and ver.  cifsclient without any

      additional command is equivalent to cifsclient start.

 

    Commands

      The cifsclient control script recognizes the following commands:

 

           start          Start the CIFS Client daemon.

 

           stop           Shut down the daemon.

 

           restart        Stop, sleep 1 second, start.

 

           status         Display information about the daemon: run status,

                          pid, start time, stale-mount check, version, build

                          data.

 

           force_umount {mountpoint[...]|-a}

                          Forcibly unmount the given CIFS mountpoint(s).

                          This is an emergency procedure that should be used

                          only for stale CIFS mounts. in the case of failure

                          of the standard umount commands:

 

                             umount -F cifs mountpoint

 

                          or

 

 Hewlett-Packard Company            - 1 -      HP-UX 11i Version 3: Mar 2006

 

 cifsclient(1M)                                               cifsclient(1M)

 

                             cifsumount mountpoint.

 

                          The output of cifsclient status includes a stale-

                          mount check.  -a forcibly unmounts all stale CIFS

                          mounts.  force_umount cannot be used unless the

                          CIFS Client is down.

 

           klist [-a]     Display the contents of all of the invoking user's

                          CIFS Client Kerberos credentials files.  This

                          command provides a shortcut that invokes klist(1)

                          on all of the user's credentials files,

                          automatically appending the -c filename option for

                          each file.  -a (recognized only for root) lists

                          entries for all users.  CIFS Client Kerberos

                          credentials files will be present on the system

                          only if the configuration parameter

                          rmTmpKerbCredFiles has been set to no.  The files

                          are located in /var/opt/cifsclient/krb5_tmp.

 

           kdestroy [-a]  Destroy all of the invoking user's temporary CIFS

                          Client Kerberos credentials files, using

                          kdestroy(1).  This operation is safe, because the

                          temporary files are never reused.  To destroy a

                          single CIFS Client Kerberos credentials file, use

                          kdestroy(1) directly, specifying the -c filename

                          option.  CIFS Client Kerberos credentials files

                          are located in /var/opt/cifsclient/krb5_tmp; they

                          will be present on the system only if the

                          configuration parameter rmTmpKerbCredFiles has

                          been set to no.  -a (recognized only for root)

                          destroys all temporary CIFS Client Kerberos

                          credentials files for all users.

 

           ver [-v]       Report version information.  If -v (verbose) is

                          specified, display what(1) strings for binaries,

                          scripts and configuration files.

 

           fuser [-v] mountpoint[...]

                          Run fuser -uf (see fuser(1M)) against the given

                          CIFS filesystem mountpoint and each of its

                          subdirectories.  This is useful for determining

                          which users are accessing the mount, in the event

                          that unmounting fails with a "Device busy"

                          message.  You must be logged into the mounted CIFS

                          fileserver for this command to be effective.  -v

                          produces verbose output (all subdirectories are

                          shown), otherwise, only directories with active

 

 Hewlett-Packard Company            - 2 -      HP-UX 11i Version 3: Mar 2006

 

 cifsclient(1M)                                               cifsclient(1M)

 

                          user processes are shown.

 

                          NOTE:  The execution time for this command is

                          proportional to the number of entries in the

                          mounted filesystem(s).

 

 FILES

      /etc/opt/cifsclient/cifsclient.cfg      CIFS Client configuration file

      /var/opt/cifsclient/krb5_tmp/krb5cc_*   Temporary CIFS Client Kerberos

                                              credentials files.

 

 AUTHOR

      cifsclient was developed by Objective Development Software GmbH and

      Hewlett-Packard.

 

 SEE ALSO

      cifslist(1), cifslogin(1), cifsmount(1M), fuser(1M), kdestroy(1),

      klist(1), mount_cifs(1M).

 

 Hewlett-Packard Company            - 3 -      HP-UX 11i Version 3: Mar 2006

 

You have mail in /var/mail/root

请使用浏览器的分享功能分享到微信等