artificialwisdomai / origin

Artificial Wisdom™ Cloud Platform
Apache License 2.0
3 stars 4 forks source link

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

Open sdake opened 11 months ago

sdake commented 11 months ago

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.