Attempt to add or modify the Options attribue for a Share resource fails with WARNING V-16-1-10603.

book

Article ID: 100026589

calendar_today

Updated On:

Description

Error Message

# hares -modify share_test Options "-o root=host1:host2"
VCS WARNING V-16-1-10603 Unknown option: -o root=host1:host2
 

Cause

The "-o" option is unnecessary.

The Share agent has the required "-o" for the share options embedded.

Therefore, an attempt to add "-o" to the command will result in the following to be sent from VCS:

"share -o -o root=host1:host2"

Where "-o" is not a valid modifier for the embedded "-o" option that will already be invoked by the VCS agent.

Resolution

Remove the "-o" from the "hares -modify" command to successfully execute the command.

For example:

# hares -modify share_test Options "root=host1:host2"
 

Of further note, it can be useful to understand the differences between the share option syntax which may be unclear.

In the options for share both colons and commas may be used.

For example:

root=host1:host2

root=host1,anon=host2

In the first of the two examples above, root privilege is possible from any user connecting from hosts after the equal sign that are separated by colons.

In contrast, the second example shows a share configuration where only host1 has ability to connect a user with root privilege, but the additional host2 only has "anonymous" access.

It should be noted that great care should be taken when implementing share options as the options can greatly affect security of a system. 

Additionally, the available share options vary depending on the filesystem type that will be shared.

 

For further guidance in implementing the share command and it's options, please reference the man page for the "share" command on the system in use.

Example:

# man share

Issue/Introduction

Attempts to add or modify the "Options" attribute for a Share resource fail.