Topic
  • 6 replies
  • Latest Post - ‏2013-04-22T09:40:11Z by pdubovitsky
mementovitae
mementovitae
6 Posts

Pinned topic How to change a webview owner?

‏2013-04-16T14:37:02Z |

Hello Everyone,

We have a couple of users who had their system Linux UIDs changed (while their user names remain the same).

These users had a couple of webviews. The CM server and view storage is on Linux.

What needs to be done to let these users own their old webviews back? Just chown the webviews' "View server access path" directories to the new user UID? Or does something more need to be done?

I know the fix_prot tool, but it does not seem to support webviews. At least the documentation does not mention this.

  • pdubovitsky
    pdubovitsky
    189 Posts

    Re: How to change a webview owner?

    ‏2013-04-16T18:07:36Z  

    Hello,

    fix_prot should help you. Also, on pre-7.1.2 system you need to change ownership of the user's session directory.

    Pavel

  • tcassid
    tcassid
    20 Posts

    Re: How to change a webview owner?

    ‏2013-04-18T21:35:12Z  

    fix_prot is the way to go.  See my example below.

    [root@RHEL-62-X64 ericsson]# ct lsview -l -full -prop tcassid_ccrc
    Tag: tcassid_ccrc
      Global path: <no-gpath>
      Server host: RHEL-62-X64
      Region: unix
      Active: NO
      View tag uuid:b847eae9.a14a11e2.84b7.00:50:56:98:56:15
    View on host: RHEL-62-X64
    View server access path: /var/adm/rational/clearcase/ccweb/tcassid.<unknown>/tcassid_ccrc/.view.stg
    View uuid: b847eae9.a14a11e2.84b7.00:50:56:98:56:15
    View attributes: snapshot,webview
    View owner: tcassid

    Created 2013-04-09T15:14:37-04:00 by tcassid.users@RHEL-62-X64
    Last modified 2013-04-09T18:41:27-04:00 by tcassid.users@RHEL-62-X64
    Last accessed 2013-04-09T18:41:27-04:00 by tcassid.users@RHEL-62-X64
    Last read of private data 2013-04-09T18:41:27-04:00 by tcassid.users@RHEL-62-X64
    Last config spec update 2013-04-09T15:14:51-04:00 by tcassid.users@RHEL-62-X64
    Last view private object update 2013-04-09T18:41:27-04:00 by tcassid.users@RHEL-62-X64
    Text mode: unix
    Properties: snapshot webview readwrite
    Owner: tcassid          : rwx (all)
    Group: users            : rwx (all)
    Other:                  : r-x (read)

    [root@RHEL-62-X64 ericsson]# /opt/ibm/RationalSDLC/clearcase/etc/utils/fix_prot -r -chown tim -chgrp tim -chmod 775 /var/adm/rational/clearcase/ccweb/tcassid.\<unknown\>/tcassid_ccrc/.view.stg

    [root@RHEL-62-X64 ericsson]# /opt/ibm/RationalSDLC/clearcase/etc/utils/fix_prot -root -chown tim -chgrp tim /var/adm/rational/clearcase/ccweb/tcassid.\<unknown\>/tcassid_ccrc/.view.stg
    Re-protect "/var/adm/rational/clearcase/ccweb/tcassid.<unknown>/tcassid_ccrc/.view.stg"?  [no] y
    Reprotection complete.

    [root@RHEL-62-X64 ericsson]# ct lsview -l -full -prop tcassid_ccrc
    Tag: tcassid_ccrc
      Global path: <no-gpath>
      Server host: RHEL-62-X64
      Region: unix
      Active: NO
      View tag uuid:b847eae9.a14a11e2.84b7.00:50:56:98:56:15
    View on host: RHEL-62-X64
    View server access path: /var/adm/rational/clearcase/ccweb/tcassid.<unknown>/tcassid_ccrc/.view.stg
    View uuid: b847eae9.a14a11e2.84b7.00:50:56:98:56:15
    View attributes: snapshot,webview
    View owner: tcassid

    Created 2013-04-09T15:14:37-04:00 by tcassid.users@RHEL-62-X64
    Last modified 2013-04-09T18:41:27-04:00 by tcassid.users@RHEL-62-X64
    Last accessed 2013-04-09T18:41:27-04:00 by tcassid.users@RHEL-62-X64
    Last read of private data 2013-04-09T18:41:27-04:00 by tcassid.users@RHEL-62-X64
    Last config spec update 2013-04-09T15:14:51-04:00 by tcassid.users@RHEL-62-X64
    Last view private object update 2013-04-09T18:41:27-04:00 by tcassid.users@RHEL-62-X64
    Text mode: unix
    Properties: snapshot webview readwrite
    Owner: tim              : rwx (all)
    Group: tim              : rwx (all)
    Other:                  : r-x (read)

  • mementovitae
    mementovitae
    6 Posts

    Re: How to change a webview owner?

    ‏2013-04-19T06:29:24Z  
    • tcassid
    • ‏2013-04-18T21:35:12Z

    fix_prot is the way to go.  See my example below.

    [root@RHEL-62-X64 ericsson]# ct lsview -l -full -prop tcassid_ccrc
    Tag: tcassid_ccrc
      Global path: <no-gpath>
      Server host: RHEL-62-X64
      Region: unix
      Active: NO
      View tag uuid:b847eae9.a14a11e2.84b7.00:50:56:98:56:15
    View on host: RHEL-62-X64
    View server access path: /var/adm/rational/clearcase/ccweb/tcassid.<unknown>/tcassid_ccrc/.view.stg
    View uuid: b847eae9.a14a11e2.84b7.00:50:56:98:56:15
    View attributes: snapshot,webview
    View owner: tcassid

    Created 2013-04-09T15:14:37-04:00 by tcassid.users@RHEL-62-X64
    Last modified 2013-04-09T18:41:27-04:00 by tcassid.users@RHEL-62-X64
    Last accessed 2013-04-09T18:41:27-04:00 by tcassid.users@RHEL-62-X64
    Last read of private data 2013-04-09T18:41:27-04:00 by tcassid.users@RHEL-62-X64
    Last config spec update 2013-04-09T15:14:51-04:00 by tcassid.users@RHEL-62-X64
    Last view private object update 2013-04-09T18:41:27-04:00 by tcassid.users@RHEL-62-X64
    Text mode: unix
    Properties: snapshot webview readwrite
    Owner: tcassid          : rwx (all)
    Group: users            : rwx (all)
    Other:                  : r-x (read)

    [root@RHEL-62-X64 ericsson]# /opt/ibm/RationalSDLC/clearcase/etc/utils/fix_prot -r -chown tim -chgrp tim -chmod 775 /var/adm/rational/clearcase/ccweb/tcassid.\<unknown\>/tcassid_ccrc/.view.stg

    [root@RHEL-62-X64 ericsson]# /opt/ibm/RationalSDLC/clearcase/etc/utils/fix_prot -root -chown tim -chgrp tim /var/adm/rational/clearcase/ccweb/tcassid.\<unknown\>/tcassid_ccrc/.view.stg
    Re-protect "/var/adm/rational/clearcase/ccweb/tcassid.<unknown>/tcassid_ccrc/.view.stg"?  [no] y
    Reprotection complete.

    [root@RHEL-62-X64 ericsson]# ct lsview -l -full -prop tcassid_ccrc
    Tag: tcassid_ccrc
      Global path: <no-gpath>
      Server host: RHEL-62-X64
      Region: unix
      Active: NO
      View tag uuid:b847eae9.a14a11e2.84b7.00:50:56:98:56:15
    View on host: RHEL-62-X64
    View server access path: /var/adm/rational/clearcase/ccweb/tcassid.<unknown>/tcassid_ccrc/.view.stg
    View uuid: b847eae9.a14a11e2.84b7.00:50:56:98:56:15
    View attributes: snapshot,webview
    View owner: tcassid

    Created 2013-04-09T15:14:37-04:00 by tcassid.users@RHEL-62-X64
    Last modified 2013-04-09T18:41:27-04:00 by tcassid.users@RHEL-62-X64
    Last accessed 2013-04-09T18:41:27-04:00 by tcassid.users@RHEL-62-X64
    Last read of private data 2013-04-09T18:41:27-04:00 by tcassid.users@RHEL-62-X64
    Last config spec update 2013-04-09T15:14:51-04:00 by tcassid.users@RHEL-62-X64
    Last view private object update 2013-04-09T18:41:27-04:00 by tcassid.users@RHEL-62-X64
    Text mode: unix
    Properties: snapshot webview readwrite
    Owner: tim              : rwx (all)
    Group: tim              : rwx (all)
    Other:                  : r-x (read)

    tcassid,

    And why hasn't the "View owner:" changed after your fix_prot run? Only the "Owner:" field has changed...

  • pdubovitsky
    pdubovitsky
    189 Posts

    Re: How to change a webview owner?

    ‏2013-04-21T10:18:00Z  

    tcassid,

    And why hasn't the "View owner:" changed after your fix_prot run? Only the "Owner:" field has changed...

    "View owner" from the output is based on information from the registry. You need to re-register the view in order to change it.

    Pavel

  • mementovitae
    mementovitae
    6 Posts

    Re: How to change a webview owner?

    ‏2013-04-22T08:06:50Z  

    "View owner" from the output is based on information from the registry. You need to re-register the view in order to change it.

    Pavel

    OK. And would the new "Owner" have any problems accessing the view if I didn't re-register the view, and so the "View Owner" remained as it was before the fix_prot run?

  • pdubovitsky
    pdubovitsky
    189 Posts

    Re: How to change a webview owner?

    ‏2013-04-22T09:40:11Z  

    OK. And would the new "Owner" have any problems accessing the view if I didn't re-register the view, and so the "View Owner" remained as it was before the fix_prot run?

    Initially, you stated that the view owner's UID was changed only. In this case, there is no need to re-register the view.
    Moving CCRC view to a different user is not supported, but you can try the following steps:
    1. use fix_prot to change view owner
    2. stop view server process
    3. re-register view
    4. copy view snapshot to a new user machine
    5. update .ccase_wvreg file in the new user home directory

    Usually, it easier to create a new view.

    Pavel