userinfo command

Although the userinfo command is available for use by all users, with different results, the intended audience for this page is the group of privileged users who can make changes using the sponsors data mechanism.

The userinfo command is the ls of sponsors data.

userinfo on accounts master machine (cscf.cs.uwaterloo.ca)

Before and after you make changes to the sponsors data you should run the command on the accounts maintenance host (cscf.cs.uwaterloo.ca) and verify that its output reflects your intended changes.

Its output also reveals what it can of details of the given userid in uwdir.

The amount and type of information you see depends both upon how privileged you are, and upon what information is available on the machine where you run the command.

Here is what a member of group accounts would see on cscf.cs.uwaterloo.ca for fictional userid bbaggins.

cscf.cs% userinfo bbaggins
     Userid: bbaggins
  Id Number: e01010101
       Name: Baggins, Bilbo
  Sponsored: printer ljp_cs: Rbb001(-1)
  Sponsored: computing canadenis.student.cs: Teaching(0;cs_instructor,student_cs)
  Sponsored: computing core.cs: Rbb001(5000000)
  Sponsored: computing serverus.cs: Rbb001(0;faculty_cs,general_cs)
  Sponsored: computing student.cs: Teaching(0)
---------------------------------------- uwdir
No person matches your query.
---------------------------------------- uwdir ? ? ?
        Surname: Baggins
  Given Name(s): Bilbo
   Nick Name(s): Brave
     Department: School of Computer Science
         Office: DC 4201
          Phone: 519-888-4567 x39999
          Email: bbaggins@bagend.uwaterloo.ca
        Visible: Y
 Employee Id(s): 01010101
       UWuserid: bbaggins
cscf.cs% 

Beware that, in real cases, much of that information is very sensitive.

The lines relevant to resource changes are the ones beginning Sponsored:.

Mr. Baggins appears to have...

  Sponsored: printer ljp_cs: Rbb001(-1)
  Sponsored: computing canadenis.student.cs: Teaching(0;cs_instructor,student_cs)
  Sponsored: computing core.cs: Rbb001(5000000)
  Sponsored: computing serverus.cs: Rbb001(0;faculty_cs,general_cs)
  Sponsored: computing student.cs: Teaching(0)
  • unlimited printing quota on printer ljp_cs
  • group membership cs_instructor and student_cs in region canadenis.student.cs
  • 5000000 kilobytes of extra disk quota in region core.cs
  • group membership faculty_cs and general_cs in region serverus.cs
  • an account with no extra resources in region student.cs

Rbb001 and Teaching refer to the theoretically billable monetary accounts, which correspond in name to the Class: directives in the sponsors data, unless the name is overridden by an Account: attribute.

Note that if the given userid does not exist you do not get an error message; instead you merely no output.

cscf.cs% userinfo sauron
cscf.cs% 

When you get a result like that, check that you entered the userid correctly.

userinfo on accounts client machines (e.g. core.cs.uwaterloo.ca)

Here is what a member of group accounts would see on core.cs.uwaterloo.ca for the same fictional userid bbaggins.

core.cs% userinfo bbaggins
     Userid: bbaggins
  Id Number: e01010101
---------------------------------------- core.cs account
      Admin: sponsor-cscf
    Created: 1999/11/04
    Classes:     basic(20000000),Rbb001(5000000)2006/05/24
 Disk Quota: 25,000 megabytes
 Filesystem: fs-homedirs.cs:/u4
       Name: Baggins, Bilbo
     Groups: bbaggins
      Shell: /xhbin/tcsh
     Finger: Bilbo Baggins,Bag End Hobbiton,x30303,555-1000
    Forward: bbaggins@mailservices.uwaterloo.ca
   Password: EMo52LQcZAxeQ
 Last Login: cscfpc20.cs.uwa (pts/6) Tue Jul 27 16:28:07 2010
core.cs% 

-- AdrianPepper - 27 Jul 2010

Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r6 - 2011-01-07 - AdrianPepper
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback