PDA

View Full Version : Shell and 3t access to non-root users


blate
08-08-2011, 06:05 PM
We keep running into the following problem: Users really need to be able to use UNIX command-line tools in conjunction with 3t commands (such as 3t class get_desc/ modify descriptor/ 3t class put_desc; or executing a number of commands in a loop, like 'for app in APP1 APP2 ... ; do 3t app stop ${app}; done'.

I know how to give a user root shell access. But I don't want these users having root on the grid controller. It also appears that 3t/3tshell do not function properly non-root users.

I also fundamentally dislike having all users log in as root -- it makes it hard to see who is doing what on the CLI.

Would sudo suffice?

How have you (the reader) addressed this problem in your environment, as applicable?

LeoKalev
08-09-2011, 12:26 AM
If you have a client OS that supports the 'bash' shell (e.g., all Linux-based OS-es, MAC, Windows with Cygwin), you can take advantage of a set of shell functions that I developed exactly for the type of jobs that you are referring to.

You can find the documentation here, but note that the shell file attached to the doc. page is out of date:
http://doc.3tera.com/AppLogic2/ClientSideMacros.html

(the AppLogic 3.0 documentation has this doc page, but the actual up-to-date file is missing from it: http://doc.3tera.com/AppLogic30/Cli_Ref/index.htm?toc.htm?1503403.html)

The latest version of the shell macros is on the Wiki, if you have access to it, or get it from the attachment that I posted here on the forum:
http://wiki.3tera.net/bin/view/AppLogic29/ClientSideMacros
http://forum.3tera.com/attachment.php?attachmentid=171&stc=1&d=1312874365