Forum Discussion

Dilipsun's avatar
Dilipsun
Level 2
10 years ago

File permission change for directory in vcs

Hi All ,

 

We have a directory say /test which is under vcs in AIX ,The filesystem is JFS2 .

 The owner and group of directory is root:root .The filesystem is currently mounted by vcs .

canwe chnage the permission with chown command .

NOTE: i dont see ownership assigned for mountpoint when i checked via hares -display <Mountpoint>

Regards

Dilip

  • Hi Dilip,

    You would indeed configure VCS with same user settings which is required by application. For e.g. if you have a apache service which needs to be onlined as "apache" user ... then you would configure VCS application resource to use "apache" user only .. similarly the mount directory should have appropriate owner & group owner permissions.

    Now if there is any specific non-root owner for mount point, you can configure that in VCS using MntPtOwner option.

    Hope this answers ..

     

    G

     


     

  • Hi Dilip.

    VCS agent would online a resource using root ownership, if you change it to any other user level permission, still the agent has powers to online as root .. so shouldn't be a problem..unless you have explicitly defined optional mount attributes ..

    There are set of optional attributes that can be configured, behavior of mount resource will depend on these parameters .. refer following optional attributes in link below

    AccessPermissionChk

    MntPtGroup

    MntPtOwner

    MntPtPermission

    https://sort.symantec.com/public/documents/sfha/6.1/aix/productguides/html/vcs_bundled_agents/ch02s07s05.htm

    G

     

  • Hi Gaurav, Thanks for the details .wont the permission change affect the underlying application which is running on that mountpoint . Regards Dilip
  • If you check output of 'ps -ef' , which user is listed against the Application processes/daemons?

  • Hi Dilip,

    You would indeed configure VCS with same user settings which is required by application. For e.g. if you have a apache service which needs to be onlined as "apache" user ... then you would configure VCS application resource to use "apache" user only .. similarly the mount directory should have appropriate owner & group owner permissions.

    Now if there is any specific non-root owner for mount point, you can configure that in VCS using MntPtOwner option.

    Hope this answers ..

     

    G