IBM Support

How to set acls on /afs? The error I receive is - fs: You can not change a backup or readonly volume.

Question & Answer


Question

-------------------- How can I set an acl for /afs directory. When I try fs setacl /afs system:anyuser l the message I get is "fs: You can not change a backup or readonly volume" I know that /afs is not part of my cell, but my goal is to permit a regular user to do "cd /afs" and see the available cells. The only way I found to let a regular user access subdirectories inside the cell is making a symlink directly to these directories.

Answer

---------
When you cd to /afs you are always in the root.afs.readonly volume.
You can see this with an fs lq.

[smiller] cd /afs
[afs] fs lq
Volume Name Quota Used %Used Partition
root.afs.readonly 1500 244 16% 64%


So what you need to do is get to the read-write version of the
root.afs volume to change the acls, and then release the volume so the
changes go to the Read-only copies of the root.afs volume. But there
is not normally a RW mount point to root.afs so you will have to make
a temporary rw mountpoint to it from anywhere like this.

fs mkmount temp root.afs -rw -cell <cellname>

Then you can cd temp. If you then do a fs lq. You will see that you
are now in the RW version of the volume (no .readonly). You can then
set the acls of make any changes. Then you can cd .. and them remove
the temp mountpoint:

fs rmmount temp

Then you will need to do a vos release.

vos release root.afs

Then you should see the changes in /afs

[{"Product":{"code":"SSXMUG","label":"AFS"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"general","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"3.6","Edition":"All Editions","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Historical Number

52664

Document Information

Modified date:
15 June 2018

UID

swg21047124