Kommentare zu: Recovering Linux file permissions http://www.screenage.de/blog/2011/11/13/recovering-file-permissions/ Thu, 22 Oct 2015 22:23:33 +0000 hourly 1 https://wordpress.org/?v=4.4.1 Von: Recover de permisos de archivos y folders en Linux | B3 Linux http://www.screenage.de/blog/2011/11/13/recovering-file-permissions/comment-page-1/#comment-83037 Mon, 22 Jul 2013 13:09:04 +0000 http://www.screenage.de/blog/?p=337#comment-83037 […] for ENTRY in ${ENTRIES} do echo ${ENTRY} | sed “s/;/ /g” | { read FILE USER GROUP MODE chown ${USER}:${GROUP} “${FILE}” chmod ${MODE} “${FILE}” } done Fuente: http://www.screenage.de/blog/2011/11/ … overing-file-permissions/ […]

]]>
Von: trash http://www.screenage.de/blog/2011/11/13/recovering-file-permissions/comment-page-1/#comment-64622 Wed, 16 Nov 2011 09:21:25 +0000 http://www.screenage.de/blog/?p=337#comment-64622 It would be better to use a while read loop with an altered IFS variable to use bash’s word splitting to your favor to be able to handle whitespaces and such properly:

while IFS=‘;‘ read dir user group mode; do
chown „$user“:“$group“ „$dir“ &&
chmod „$mode“ „$dir“;
done < /path/to/permissions.csv

]]>
Von: Links 15/11/2011: Linux still Rules HPC | Techrights http://www.screenage.de/blog/2011/11/13/recovering-file-permissions/comment-page-1/#comment-64536 Tue, 15 Nov 2011 16:21:15 +0000 http://www.screenage.de/blog/?p=337#comment-64536 […] Recovering Linux file permissions […]

]]>
Von: Andrew http://www.screenage.de/blog/2011/11/13/recovering-file-permissions/comment-page-1/#comment-64353 Sun, 13 Nov 2011 21:23:20 +0000 http://www.screenage.de/blog/?p=337#comment-64353 FYI: The commands ‚getfacl‘ and ’setacl‘ in the ‚acl‘ package should do what you want.

]]>
Von: muzzol http://www.screenage.de/blog/2011/11/13/recovering-file-permissions/comment-page-1/#comment-64345 Sun, 13 Nov 2011 16:35:46 +0000 http://www.screenage.de/blog/?p=337#comment-64345 shouldn’t you change the field separator in case you found a filename with spaces?

in you case just adding

IFS=$’\n‘

before the iteration does the trick.

]]>