Trinity output directory can be erased only with root privileges
1
0
Entering edit mode
15 months ago
langziv ▴ 70

Hello

I didn't see information in the documentation about that issue. Can the program be used or installed so that no root privileges will be required in order to erase the output directory?

trinity • 723 views
ADD COMMENT
0
Entering edit mode

Have you checked to see if you need to simply change the permissions to allow the deletion? Output directories normally will be created as owned by the account that is running the program (which should be your account, unless your system is set up differently). If not on your server then you will need to ask your local admins.

ADD REPLY
0
Entering edit mode

The output directory's permissions? I tried and it didn't work. It never happened before with another program, so I assumed it has to do with Trinity.

ADD REPLY
0
Entering edit mode

Can you show us the permissions and the exact command? What are you not able to do? Delete the directory or files within?

ADD REPLY
2
Entering edit mode
15 months ago

My guess is that Trinity was run via Docker/Singularity and the Docker container uses user ID 1000 for running jobs. New files outside the container will be written by the user with that ID which usually is root.

To fix:

docker run -u $(id -u):$(id -g) (rest of your command)
ADD COMMENT

Login before adding your answer.

Traffic: 2593 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6