Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ownership of pf9 directories #15

Open
xagent003 opened this issue Feb 10, 2022 · 2 comments
Open

Ownership of pf9 directories #15

xagent003 opened this issue Feb 10, 2022 · 2 comments

Comments

@xagent003
Copy link
Contributor

Currently doing following in airctl:

	chownCmd := fmt.Sprintf("chown %s:pf9group %s ", NodeletUser, "/var/log/pf9")
	if _, _, err := nd.client.RunCommand(chownCmd); err != nil {
		return fmt.Errorf("Failed: %s: %s", chownCmd, err)
	}

	chownCmd = fmt.Sprintf("chown %s:pf9group %s ", NodeletUser, "/var/opt/pf9")
	if _, _, err := nd.client.RunCommand(chownCmd); err != nil {
		return fmt.Errorf("Failed: %s: %s", chownCmd, err)
	}

	chownCmd = fmt.Sprintf("chown %s:pf9group %s ", NodeletUser, "/etc/pf9")
	if _, _, err := nd.client.RunCommand(chownCmd); err != nil {
		return fmt.Errorf("Failed: %s: %s", chownCmd, err)
	}

	chownCmd = fmt.Sprintf("chown %s:pf9group %s ", NodeletUser, "/opt/pf9")
	if _, _, err := nd.client.RunCommand(chownCmd); err != nil {
		return fmt.Errorf("Failed: %s: %s", chownCmd, err)
	}
@xagent003
Copy link
Contributor Author

I see you fixed /var/log/pf9

But I also then hit error for /var/opt/pf9

I assume the last 2 will also need to be created (I just added them to be safe, not sure)

@pacharya-pf9
Copy link
Collaborator

opt/pf9 and etc/pf9 are not owned by pf9 to avoid users logging in via ARS from making changes to source code i.e. bash script and the config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants