Jail writing files with incorrect permissions.

Status
Not open for further replies.

briarknit

Cadet
Joined
Jan 22, 2016
Messages
5
I have a jail set up specifically for lftp. My issue is that the storage that I've attached to the jail has the permissions set to
Code:
Owner: nobody
Group: main
775


The problem comes when I run my task which runs jexec to run my lftp script, lftp is copying files to that attached storage with the owner being root instead of nobody. To make things even stranger, this was all working fine up until I had to recreate the jail today. Why would the jail be writing files to attached storage as root instead of the files being written with whatever owner is already set for that storage in the first place?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
thats how it usually works, a process writes files as whatever user the process is running as. certain programs that run as root can change this behaviour, but that's program specific.
 
Status
Not open for further replies.
Top