• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Linux and permissions/ownership

So a program creates a new folder called "myfolder" on a drive owned by me. I own everything on this drive. However myfolder because it was created by a program and not me is owned by root. This is linux mint 16.

How can I make it so that whenever anything new is created on this drive I am the default owner?

If it helps to know the reason I want this is because I cannot administer new files/folders on the server from my windows PC due to permissions. I have to VNC in and take ownership of folders like myfolder, at which point its kind of a waste of time because I can move/change/whatever the folder over VNC anyway.
 
Make your personal group the group owner of the directory, and then set the setgid bit on the directory. This will replace the group owner of any files and subdirectories with your personal group, regardless of what created the file.
 
Make your personal group the group owner of the directory, and then set the setgid bit on the directory. This will replace the group owner of any files and subdirectories with your personal group, regardless of what created the file.

If its this kinda thing you mean (I didnt under stand a lot of what you said sorry):

x0flPk6.png


Clicking apply to enclosed folders only solves it one time. As soon as a new folder is created after that then ill have to keep coming back and doing this because the new folder will belong to root.
 
Um, you shouldn't be running a 'normal' program as root, that is the problem.

You need to see why that program is being run by root.
 
Bah.
OK, then run the configuration program for that, and fix it there.
(I have never used mint, or that program, but, it should have a config file someplace...)
 
Back
Top