Re: Changing permission in user's home directory

2014-12-22 Thread Bob Proulx
The Wanderer wrote: > Yes, that makes sense in this case. I'm not in the habit of doing it in > most cases, however, because I commonly-enough need to use find with > commands of the form 'command option {} option +' rather than the form > 'command option {} +'. Yep. That would push you into usin

Re: Changing permission in user's home directory

2014-12-20 Thread David Christensen
On 12/20/2014 06:15 PM, Peter Gerber wrote: On our server we create an user for every of our customer and we run an instance of home-made java application (as the customers respective user). The issue is just who ever set up those servers created a home directory per user and set up everything in

Re: Changing permission in user's home directory

2014-12-20 Thread The Wanderer
On 12/20/2014 at 09:16 PM, Bob Proulx wrote: > The Wanderer wrote: > >> As usual when dealing with recursive action under *nix, the answer is >> find: > > Yes! :-) > >> find -P ... > >> The '-P' option tells find to never follow any symlinks. > > A small comment upon the technique. Just noti

Re: Changing permission in user's home directory

2014-12-20 Thread Peter Gerber
On our server we create an user for every of our customer and we run an instance of home-made java application (as the customers respective user). The issue is just who ever set up those servers created a home directory per user and set up everything in that directory. Including static files nee

Re: Changing permission in user's home directory

2014-12-20 Thread Bob Proulx
The Wanderer wrote: > As usual when dealing with recursive action under *nix, the answer is > find: Yes! :-) > find -P ... > The '-P' option tells find to never follow any symlinks. A small comment upon the technique. Just noting that -P is the default. No need to specify it explicitly.

Re: Changing permission in user's home directory

2014-12-20 Thread Bob Proulx
Peter Gerber wrote: > I want to change permission of a directory, recursively. The directory is a > subdirectory of a user's home directory. Sure. Okay. People do that all of the time. > Is there a way to do this in a secure and easy way with the user having full > write access to the home di

Re: Changing permission in user's home directory

2014-12-20 Thread The Wanderer
On 12/20/2014 at 07:11 PM, Peter Gerber wrote: > I want to change permission of a directory, recursively. The directory is a > subdirectory of a user's home directory. > > Is there a way to do this in a secure and easy way with the user having full > write access to the home directory? > > Let

Re: Changing permission in user's home directory

2014-12-20 Thread David Christensen
On 12/20/2014 04:11 PM, Peter Gerber wrote: I want to change permission of a directory, recursively. The directory is a subdirectory of a user's home directory. Why? To what? E.g. what is the technical requirement(s) that forces you to change permission of a directory and/or it's contents, a

Changing permission in user's home directory

2014-12-20 Thread Peter Gerber
I want to change permission of a directory, recursively. The directory is a subdirectory of a user's home directory. Is there a way to do this in a secure and easy way with the user having full write access to the home directory? Let's assume I would change the permissions as follows $ chgrp -R