Changing permission in user's home directory
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 www-data ~user/subdir $ chmod -R g+rwX ~user/subdir The issue is that the user could do something like this beforehand: $ mv ~user/subdir ~user/subdir2 $ ln -s / ~user/subdir Not a very nice thing to do, is it? Well, I could just change the user's permission for the home directory as follows: $ chown root:users-group ~user $ chmod g+rwx,+t But this seems rather error-prone. Especially because I would have to adjust the permission of quite a lot of directories, some of which are not even in the top level of the users' home directories. Frankly, me forgetting to adjust the permissions of a few directories is just to great. What I now would like to know is, is there an easier way to solve the issue. Like teaching chmod not to follow links. Unfortunately, I haven't found a -- make-sure-as-hell-not-to-follow-links-in-any-way parameter or anything the like. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/201412210111.32524.pe...@arbitrary.ch
Re: Changing permission in user's home directory
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 needed by ngnix for which I need to do something like $chgrp www-data path after an update. I'm aware there is no technical reasons for having such a weird directory constellation. The issue is just reorganizing file hierarchies on docents of productive installations is not that easy, so I hoped for an easy work-around for the old installations. At least until the long overdue revision of the update and installation procedure has been done. On Sunday 21 December 2014 02.21:39 David Christensen wrote: 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, and what must those permissions be? David -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/201412210315.22386.pe...@arbitrary.ch
Re: find -exec Problem
On Saturday 21 May 2005 14.00, Christoph Kaminski wrote: Hi! Ich will mit find in alle subdirs wechseln und einen Befehl ausfuehren... also sowas wie: find -type d -exec 'cd \'{}'\ ; yydecode *' \; find -type d -exec bash -c 'cd {} ; yydecode *' \; Bei dir wir das ganze als ein befehl interpretiert. befehl - cd \'VERZEICHNISS'\ ; yydecode * anstat: befehl1 - cd argument - VERZEICHNISS befehl2 - yydecode argument1 - FILE1 argument2 - FILE2 ... bash -c 'KOMANDO' hilft da weiter. was man sich merken sollte ist das innerhalb von '...' folgendes gilt: 1. das ganze wird zu einem befehl/argument zusammengefast 2. die zeichen *\(){}; verliehren ihre sonderbedeutung Mfg. Peter Gerber -- Haeufig gestellte Fragen und Antworten (FAQ): http://www.de.debian.org/debian-user-german-FAQ/ Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED] mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)
Re: prozessstatus rwsem_
Am Mittwoch, 12. Mai 2004 07.28 schrieb Jan Kesten: peter gerber wrote: | kann mir jemand sagen (bzw. schreiben) was der prozessstatus rwsen_ bedeutet. | praktisch wäre auch noch eine liste mit den bedeutungen der statuse. | ach ja es gibt nicht zufäligerweise eine möglichkeit status in mehrzahl zu | schreiben? Hallo, Peter! rwsen oder rwsem? Und vorallem in welcher Ausgabe kommt das zum Tragen? rwsem steht für read/write semaphore und hat (meistens) etwas mit Threading zu tun - interessant ist natürlich, was hinter dem rwsem_??? noch steht, denn dort könnte wake stehen und ein Prozess (Thread) auf Freigabe warten... Viele Grüße aus dem Harz Jan -- GPG-KeyID: 82201FC4 Available at my public sks keyserver sks.nerdcamp.net Please report any problems using sks.nerdcamp.net! oh sorry ich meinte narürlich rwsem. bei mir war eine festplatte ausgafahlen und die prozzesse die auf diese festplatte zugreifen versuchten hatten dannach einen status namens rwsen_??? wie es genau hies weiss ich leider nicht mehr. mich würde jedoch interessieren was genau passiert ist und da im protokoll nicht der geringste fehler zufinden ist dachte ich ich frage euch einfach mal was der status bedeutet. kann ja sein das ich danach schlauer bin. viele grüsse aus der schweiz peter gerber
prozessstatus rwsem_
Hallo, kann mir jemand sagen (bzw. schreiben) was der prozessstatus rwsen_ bedeutet. praktisch wäre auch noch eine liste mit den bedeutungen der statuse. ach ja es gibt nicht zufäligerweise eine möglichkeit status in mehrzahl zu schreiben? vielen dank für eure hilfe mfg peter gerber PS. bitte gross kleinschreibung misachten sie enthält möglicherweise einige fehler ;-) HOCH LEBE OPENSOURCE