rmsmbcmnt Command
Purpose
Removes a Server Message Block (SMB) client file system entry from the /etc/filesystems file and unmounts the SMB client file system if the SMB client file system is mounted.
Syntax
rmsmbcmnt -f MountPoint [-B | -N | -I]
Description
The rmsmbcmnt command removes an SMB client file system entry from the /etc/filesystems file. If the SMB client file system is mounted, the rmsmbcmnt command unmounts it.
Flags
- -B
- Removes the corresponding SMB client file system entry from the /etc/filesystems file, and unmounts the SMB client file system. This is the default setting.
- -f MountPoint
- Specifies the path name of the SMB client mount point.
- -I
- Does not unmount the file system, but removes the entry from /etc/filesystems file, only if the filesystem is already unmounted.
- -N
- Unmounts the SMB client file system, but does not remove the SMB entry from the /etc/filesystems file.
Exit status
- 0
- The command completed successfully.
- >0
- An error occurred.
Example
To remove the SMB entry that is mounted over the
/mnt
mount point, and to
unmount the SMB client file system, enter the following
command:rmsmbcmnt -f /mnt
Location
/usr/sbin/rmsmbcmnt
Files
- /etc/filesystems
- Stores the SMB client file system entry that contains the SMB client mount points.