|
|
|
|
|
Adding, editing and removing users easily from the CLI Three scripts are provided on all Opengear devices (with firmware 2.8.1 or later) to assist with adding, editing and removing users from the command line without the need to use the "config" command. The three scripts are situated in /etc/scripts/ and are called: user-add (add new users to config) user-mod (modify a user's config) user-del (remove a user from the config) The user-add and user-mod scripts can edit the user's password, description, port access, and group access. To use any of these scripts, type the following at a command prompt: $ /etc/scripts/{script-name} The usage for each script can be found by running the script without any parameters. Some examples follow. *Add a user with name "John", description "main user", part of group "admin" and access to serial ports 1, 2, 3, 4 and 5 $ /etc/scripts/user-add -p "1 2 3 4 5" -g "admin" -d "main user" John *Add a user with name "Peter", who is part of the "users" group $ /etc/scripts/user-add -g "users" Peter *Add a user named "Sarah" $ /etc/scripts/user-add Sarah *Modify user "John" by changing his description to "Main User", adding him to group "users", removing access to serial ports 1 and 2, giving him access to serial ports 6 and 7 $ /etc/scripts/user-mod -p "-1 -2 +6 7" -g "+users" -d "Main User" John *Modify user "Peter" by adding him to group "admin" and giving him access to serial ports 1,2 and 20 $ /etc/scripts/user-mod -p "1 2 20" -g "admin" Peter *Change the password of user "Mary" $ /etc/scripts/user-mod -P Mary *Add John to group "users" $ /etc/scripts/user-mod -g "-users" John *Show the help text fot the "user-del" command $ /etc/scripts/user-del -h *Delete user "John" $ /etc/scripts/user-del John *Delete users "Peter" and "Sarah" $ /etc/scripts/user-del Peter Sarah NOTE: The add/modify/delete users scripts all use the delete-node script (as described in faq 335) to work . For more general information on custom scripts refer faq 255. |
|
Solutions Product Overview Solutions Overview How to Buy |
About Us Corporate In the Media Press Releases Contact Us |
Resources YouTube Videos Resource Library |
Support Technical Support Knowledge Base Cabling & Adapters Contact Us |
| © Opengear 2012 | Privacy Policy |