On Wed, 28 Oct 2015 14:05:45 -0500 listreader <suselist@cableone.net> wrote:
On Wed, 28 Oct 2015 11:05:04 -0700 John Andersen <jsamyth@gmail.com> wrote:
On 10/28/2015 7:25 AM, jdd wrote:
I think an user can remove any file in his owned folder:
did I miss something?
Yes, that is true for simple files. (Although it seems like it shouldn't be).
It depend on the permissions of the containing directory. If root creates a subdirectory in a user's space, and then places files into it, the user can't delete the files OR the directory.
Yes, the subdirectory created here in ~/.config is also owned by root.
drwxr-xr-x 2 root root 37 Oct 28 13:49 YaST2
Interestingly, though, I just noticed that if the user first creates a ~/.config/YaST2 subdirectory himself, the root-owned files will be placed in that pre-existing subdirectory. The files will still be owned by root but the subdirectory's properties won't be changed, the subdirectory will still be owned by the user (and thus it and the enclosed files could be manually deleted by the user as jdd suggested) drwx------ 2 userxx users 64 Oct 28 14:18 YaST2 -rw------- 1 root root 136 Oct 28 14:18 y2controlcenter-qt.conf -rw------- 1 root root 357 Oct 28 14:18 YQOnlineUpdate.conf Seems to be a poorly thought-out arrangement... Ralph -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org