In order to create customize SAM functions, you should first create a custom group, and then the custom menu items. As an example, I will create a custom function for mounting and unmounting a CD-ROM driver.
/usr/sbin/sam).
CDROM, hit return,
and press OK. (For some reason, SAM won't accept the hyphen
in CD-ROM.)
Mount
CDROM in the Label box, and /etc/mount /cdrom
in the Command box. Use the full path to the mount command. (Of
course, you must use the correct mount point for the CD-ROM on
your system). Be sure to hit return after each box.You must now choose whether the command will execute as user root or as another user. In this case, only user root can mount and unmount the CD-ROM drive, so I must choose Root's ID. However, if I were running a different command that does not require user root, I could make a different choice. For example, if I were restarting the LDM, I would choose Specific User's ID, and type in user ldm.
The User Interface option defines whether the command you've just specified has it's own graphical user interface or not. The mount command does not have a GUI, so I will select Terminal Environment. However, if you were configuring SAM to start NTL, then you would choose Graphical Environment.
As before, the Help File and Icon Path are optional and can be left blank. Click on OK.
/etc/umount
/cdrom.
Remember, you may configure these SAM functions into the restricted SAM interface for users on your system. Simply follow the instructions in the document Creating a Restricted SAM for instructions.