Sorry for the delay, it took a while to understand what was going on. I can do x commands, but unfortunately, since SAS Studio is run under the "sas" user, I am unable to do anything meaningful under /home/jovyan (can't even create or delete a file). Is it possible to run SAS Studio under the jovyan user instead?
This is why I am getting so many issues working in SAS generally. Any files created by SAS is mostly inaccessible by the jovyan user (at all, can't even delete them) and any files created by jovyan is inaccessibly by SAS (without a chmod from jovyan). This whole being two different user thing is making programming on this image more complex than necessary.
Reported by a client that they are unable to create/delete folders under /home/jovyan in Sas Studio. Currently Sas Studio is run by the SAS user by default. Users are able to add/delete/execute files under /home/sas but since /home/jovyan is the directory that is persisted by the workspace volume they cannot do anything meaningful.
Users are able to add/delete inside the notebook terminal to /home/jovyan because the user is jovyan (ran whoami). Trying to figure out a way to run Sas Studio under the jovyan user instead of Sas.
I tried to create a new user "jovyan" for Sas Studio:
RUN usermod -a -G sasstaff jovyan && \
echo "jovyan:samplepassword" | chpasswd
Slack Support Comment:
Hello! Related to my last comment on this Github issue, the fact that "SAS" on the SAS image is run under another user (the sas user instead of the jovyan user) makes it quite hard to work on this image. In order for SAS to be able to use the files imported from a MinIO bucket (from the jovyan user), the jovyan user has to chmod all files and folders with quite wide permissions. It is worse the other way around, any file created in SAS (by the sas user), even in the jovyan home directory can't be modified by the jovyan user (the only workaround is to move the files and then modify them). This means I can't work with them in another language (R or Python) and I can't zip them to send them to the Net A FDI. Related to the Github issue, I can't chmod filles from the sas user because x commands don't run outside of the sas user home directory.
Is it possible to change user to the sas user in command line (the password is not the same as the SAS Studio password)? Or would it be possible to run SAS Studio as the jovyan user, to prevent all of this? If this is all impossible, is it possible to change ownership of the files after they are created by the sas user (chown gives me a permission error).
User's issue:
Reported by a client that they are unable to create/delete folders under /home/jovyan in Sas Studio. Currently Sas Studio is run by the SAS user by default. Users are able to add/delete/execute files under /home/sas but since /home/jovyan is the directory that is persisted by the workspace volume they cannot do anything meaningful.
Users are able to add/delete inside the notebook terminal to /home/jovyan because the user is jovyan (ran whoami). Trying to figure out a way to run Sas Studio under the jovyan user instead of Sas.
Dockerfile created by CNS: https://github.com/govcloud/docker-sas4c/blob/master/Dockerfile aaw-kubeflow-container Sas docker bit: https://github.com/StatCan/aaw-kubeflow-containers/blob/master/docker-bits/6_sas.Dockerfile#L54
I tried to create a new user "jovyan" for Sas Studio:
Slack Support Comment: