Adaptec 5325301507 Administration Guide - Page 196
Scripts in SnapCLI, SnapServer Administrator Guide, Delete the share, Create a user, group
![]() |
UPC - 753253015740
View all Adaptec 5325301507 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 196 highlights
Scripts in SnapCLI $CLI group delete group-name="$1" > /dev/null 2>&1 if [ $? -ne 0 ]; then echo "Deletion of group '$1' failed." return 1 fi else echo "Group '$1P' does not exist." fi return 0 } # usage: 'rmshare ' rmshare() { # if the share exists delete it if $CLI share get share-name="$1" > /dev/null 2>&1; then echo "Deleting share '$1' ..." $CLI share delete share-name="$1" > /dev/null 2>&1 if [ $? -ne 0 ]; then echo "Deletion of share '$1' failed." return 1 fi else echo "Share '$1' does not exist." fi return 0 } Delete the share 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" 180 SnapServer Administrator Guide
![](/manual_guide/products/adaptec-5325301507-administration-guide-0f96d41/196.png)