Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
Connect for Kids

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
Copyright Info
Terms of Use
Privacy Info
Masthead / Impressum
Your Account

Private Messages

News Archive
Submit News
User Articles
Web Links


The Web

Who's Online
There are currently, 84 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here




       resmgr [-s socket] [-u user] [-t] command ...


       The  resmgr  command  is  a  command  line  client for the
       resource manager daemon resmgrd(8).  It passes the  speci­
       fied command to the daemon, and prints the response.


       Currently, the resource manager protocol supports the fol­
       lowing commands, all of which can be  performed  from  the
       command line using resmgr:

       help   Display the list of available commands.

       list [family]
              Display  the list of devices available to the user.

              The optional family argument can be used to specify
              a  resource  family. If specified, the listing will
              include only names from that  specific  family.  In
              addition,  device names will be mapped to that par­
              ticular name space.

              For instance, if the resource  class  includes  the
              device  /dev/cdrom,  listing  the scsi family would
              return a corresponding SCSI device  specifier  such
              as  scsi:0,0,1.   (Of  course,  this  assumes  that
              /dev/cdrom uses the SCSI CD driver,  and  that  the
              user  has  permission to open the corresponding raw
              SCSI device).

       open [flags] device
              Open the specified  device  and  receive  the  file
              descriptor  through  the socket connection. Option­
              ally, one or more flags can be passed.

              The flag -ro tells the server to  open  the  device
              read-only.  Otherwise,  the  device is opened read-

              If the device is flagged read-only, but the  client
              tries to open it read-write, access is denied.

              The  device parameter is usually just the path name
              of the device that should be opened.  However,  you
              can  prefix  the  name  with  a  resource family to
              request a different interpretation  of  the  device
              name,  such as scsi:/dev/cdrom.  This will open the
              raw SCSI device associated  with  /dev/cdrom.   The
              device  must  have the scsi flag set, otherwise the
              request will be refused.  This is useful for  scan­

              If  a conflicting lock exists, access is denied. If
              a stale lock file  is  found,  the  server  returns
              error  code  202  (stale lock file). This indicates
              that the client should perform an unlock  call  for
              this device, which will remove the stale lock.

       unlock device
              Removes  a lock file for the device. If a lock file
              exists which is neither owned by  the  uid  of  the
              calling application, and which is not a stale lock­
              file, access is denied. Otherwise the lock file  is

       login user tty
              Indicates  to the resource manager that user logged
              in on terminal tty.  This will cause  the  resource
              manager  to  create  a  session record for the, and
              grant the user access to all resource classes whose
              ACLs he matches.

              This  command  is  restricted to the administrator.
              Usually, the  login  command  is  executed  by  the
              pam_resmgr  module  when  the user logs in, but you
              can also use it from the  X11  GiveConsole  script,
              for instance.

              The  syntax  of the tty parameter is mostly irrele­
              vant, except that it must be unique.  When  calling
              login  with  a tty name for which a session already
              exists, the previous session is deleted first. This
              is  intended  to increase robustness, when for some
              reason the logout command was not issued.

       logout tty
              This will cause the resource manager to delete  any
              session record for the indicated tty, and decrement
              the reference count on the user  record  associated
              with  that  session.   If this was the last session
              for the user, all access rights for  the  user  are

              This  command  is  restricted to the administrator.
              Usually, the logout  command  is  executed  by  the
              pam_resmgr  module  when  the user logs in, but you
              can also use it from the  X11  TakeConsole  script,
              for instance.

              This  command  lists all currently active sessions.
              It is restricted to the administrator.

              this command is restricted to the administrator. It
              is not very useful, but was added for symmetry with

       add device class [flags]
              This  command adds the specified device to resource
              class class, optionally setting one or  more  flags
              on the entry.

              This command is restricted to the administrator. It
              can be used by  a  hotplugging  daemon  to  make  a
              device available to local users when attached.

              The  read-only  flag  marks  the  device read-only.
              Attempts  to  open  the  device for writing will be

              The  scsi flag allows clients to ask for the corre­
              sponding raw SCSI  device  instead  of  the  device
              itself.  This is useful for applications such as CD
              burners that need to find and open the generic SCSI
              device corresponding to e.g. /dev/cdrom.

       remove device [class]
              This  command  removes  the  specified  device from
              resource class class.   If  no  class  argument  is
              given, the device is removed from all classes.

              This command is restricted to the administrator. It
              can be used by  a  hotplugging  daemon  to  disable
              access to a device when it becomes unavailable.


       resmgr understands the following command line options:

       -t     By  default,  resmgr  will not include the server's
              numeric response codes in its output. By using  the
              -t  option,  you  can  force  resmgr to display the
              server's response as-is.

       -u user
              This option can be used by the root  user  when  he
              wishes  to  contact  the  resource manager as user.
              This option is mostly  for  debugging  and  testing

       -s socket
              specifies  the  name  of  the  socket  on which the
              resource manager  is  listening.   This  option  is
              mostly for debugging and testing purposes.

Show your Support for the Linux Tutorial

Purchase one of the products from our new online shop. For each product you purchase, the Linux Tutorial gets a portion of the proceeds to help keep us going.



Security Code
Security Code
Type Security Code

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!

Amazon Wish List

Did You Know?
You can choose larger fonts by selecting a different themes.


Tell a Friend About Us

Bookmark and Share

Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.09 Seconds