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

Defect: Determine the ownership and file permissisons for all components in opt. #110

Open
sdake opened this issue Oct 11, 2023 · 0 comments

Comments

@sdake
Copy link
Member

sdake commented Oct 11, 2023

All files in /opt:

wise@wise-a40x1-1:/opt$ ls -l
total 0
drwx--x--x 4 root root 28 Oct  5 13:39 containerd
drwxr-xr-x 3 wise wise 20 Oct  5 14:07 intel
drwxr-xr-x 3 root root 19 Oct 11 19:00 meta
drwxr-xr-x 4 root root 50 Oct  5 10:02 nvidia

Chown owner/group to root:root:

wise@wise-a40x1-1:/opt$ sudo chown -R root:root *
sudo: unable to resolve host wise-a40x1-1: Name or service not known
wise@wise-a40x1-1:/opt$ ls
containerd  intel  meta  nvidia

List of owner/permissions/sizes of /opt:

wise@wise-a40x1-1:/opt$ ls -l
total 0
drwx--x--x 4 root root 28 Oct  5 13:39 containerd
drwxr-xr-x 3 root root 20 Oct  5 14:07 intel
drwxr-xr-x 3 root root 19 Oct 11 19:00 meta
drwxr-xr-x 4 root root 50 Oct  5 10:02 nvidia

Chmod /opt to 777
```console
wise@wise-a40x1-1:/opt$ sudo chmod 777 /opt

sudo: unable to resolve host wise-a40x1-1: Name or service not known

wise@wise-a40x1-1:/opt$ ls /opt/meta
faiss
wise@wise-a40x1-1:/opt$ ls -l /opt/meta/faiss
total 0
drwxr-xr-x 3 root root 19 Oct 11 18:40 include
drwxr-xr-x 2 root root 49 Oct 11 18:40 lib
drwxr-xr-x 3 root root 19 Oct 11 18:40 share
wise@wise-a40x1-1:/opt$ sudo chown -R wise:wise /opt
sudo: unable to resolve host wise-a40x1-1: Name or service not known
wise@wise-a40x1-1:/opt$

Need to be able to set read-only, or read-write, and for read-write modes, the username needs to be mapped.

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

1 participant