I am using savefig()
and saveas()
functions to save .fig
and .jpg
files resp. in MATLAB (R2015a, Ubuntu 14.04, personal computer, single account). However, the owner of files being generated is root. I want the owner to be my user account.
I can use chown
in terminal to later obtain the ownership, but I want that to happen directly from MATLAB, i.e. at the time of file creation.
Also, this problem was not occurring before. I just made a fresh installation of OS and all software, and this behaviour started happening.