Opened 19 years ago
Last modified 10 years ago
#2 new enhancement
IZ40: How to display list of accessible hosts for a user
Reported by: | slmingol | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | sge | Version: | current |
Severity: | Keywords: | Sun Solaris clients | |
Cc: |
Description
[Imported from gridengine issuezilla http://gridengine.sunsource.net/issues/show_bug.cgi?id=40]
Issue #: 40 Platform: Sun Reporter: slmingol (slmingol) Component: gridengine OS: Solaris Subcomponent: clients Version: current CC: None defined Status: NEW Priority: P3 Resolution: Issue type: ENHANCEMENT Target milestone: --- Assigned to: andreas (andreas) QA Contact: roland URL: * Summary: How to display list of accessible hosts for a user Status whiteboard: Attachments: Issue 40 blocks: Votes for issue 40: Opened: Thu Aug 16 14:37:00 -0700 2001 ------------------------ I have 6 nodes, 6 queues setup, and 2 user groups. The groups are defined under User configuration in qmon. The groups a @grp1 and @grp2. Then under host configuration in qmon, I select the execution host tab and select host1 and modify its User Access so that @grp1 is allowed access, and @grp2 is denied access. My question is how do I as user joe in group @grp2 see what machines i'm allowed access to from the command line? Notice i'm talking about what "machines" not queues! I realize that there are a number of ways to see what queues I have access to. The only way I could conceive of how to do this was with the following script: #!/bin/bash mygroup=`groups | cut -f1 -d" "` listofmachines=`qhost | grep -v HOSTNAME |grep -v "-" |cut -f1 -d" "` for f in $listofmachines; do q_output=`qconf -se $f|grep xuser|grep $mygroup` if [ -z "$q_output" ]; then echo $f fi done; Even this isn't ideal. This assumes that the first group that the group cmd. returns is the one i'm referring to when the query to qconf is made. In a nut shell I'm looking for a way for users to see there access to hosts in the cluster based on what groups they belong to. ------- Additional comments from sgrell Mon Dec 12 03:14:37 -0700 2005 ------- Changed subcomponent. Stephan
Note: See
TracTickets for help on using
tickets.