zaterdag 5 november 2011

Changing permissions for your files.

I'm messing around with my Ubuntu server once again. I'm trying to get Wakaba running. Wakaba has a lot of Perl scripts that need to the permissions to be set at 755. Here's how you do that.
$ ls |grep .pl > setpermis.txt
$ sudo chmod 755 $(>setpermis.txt)
First we put all the filenames of the files that we'd like to set their permissions into a file named 'setpermis.txt'. And after that we ask chmod to use that file to set all the permissions.