LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 07-28-2005, 03:18 AM   #1
maginotjr
Member
 
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, 04:11 AM   #2
piete
Member
 
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: http://www.kaear.co.uk/default.asp?pageID=33

(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, 03:52 AM   #3
maginotjr
Member
 
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

regards
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 05:23 PM
default files and folder acl permissions Baltasar Fedora 4 08-30-2004 12:50 PM
changeing permissions for a folder + subfolders and files ? YBA^[x] Slackware 7 08-06-2004 04: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 02:26 AM
Folder permissions fatboyjim Linux - Newbie 12 06-05-2002 02:20 PM


All times are GMT -5. The time now is 01:45 PM.

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