Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 07-28-2005, 04:18 AM   #1
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Rep: Reputation: 34
Default permissions of files and folder

I have realy made a dummy thing... I have made chmod -x * in my home folder.... so every file lost it exec permission, of course this cause me some other problems, like folder with no acess and losting some script execs... so to fix it I reverted making chmod +x * ... okay, now I have a bouch of file with exec permission, I tryed fixing making a chmod -x *.jpg and *.mp3 and */*/*.mp3 and so on, but I know this isnt the right thing to do... is there any way to make the files back to its default perm like making folder exec and images , videos, songs, txt and docs files dont?
Old 07-28-2005, 05:11 AM   #2
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
I had a similar problem to this, and wrote a recursive script to fix it. It's not 100% fool-proof, but will in essence chmod -x everything except your folders.

You can find a rather poorly documented detail here:

(Under "Massively recursive chmod command")

As an aside, the chmod string must in the numerical form, and I would suggest picking something like the following:

644 = rw-r--r--
640 = rw-r-----
600 = rw-------

Give me a bell if you need any help!
Old 07-29-2005, 04:52 AM   #3
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Original Poster
Rep: Reputation: 34
thanks, this helped me



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 06:23 PM
default files and folder acl permissions Baltasar Fedora 4 08-30-2004 01:50 PM
changeing permissions for a folder + subfolders and files ? YBA^[x] Slackware 7 08-06-2004 05:07 AM
how can i default the max folder file size when it create inside a folder antony_csf Linux - Software 1 06-17-2004 03:26 AM
Folder permissions fatboyjim Linux - Newbie 12 06-05-2002 03:20 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:20 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration