Overland Storage SnapServer Administrator's Manual page 246

Hide thumbs Also See for SnapServer:
Table of Contents

Advertisement

SnapServer 7.0 Administrator's Guide
fi
return 0
}
# usage: 'rmshare <share_name>'
rmshare()
{
Delete the Share
# if the share exists delete it
if $CLI share get share-name="$1" > /dev/null 2>&1; then
echo "Deleting share '$1' ..."
return 1
else
fi
return 0
}
Create a User, Group, and Share; Then Add the User to the Group
##############
#
Main
##############
# create a user, a group and a share and add the user to the group
mkuser "$USER" "$PASSWORD"
mkgroup "$GROUP"
adduser2group "$USER" "$GROUP"
mkshare "$SHARE" "$VOLUME"
#remove the group, the user and the share
rmgroup "$GROUP"
rmuser "$USER"
rmshare "$SHARE"
10400317-001 10/2011
echo "Group '$1P' does not exist."
$CLI share delete share-name="$1" > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "Deletion of share '$1' failed."
fi
echo "Share '$1' does not exist."
#
©2010-11 Overland Storage, Inc.
E – Command Line Interface
E-15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents