LinuxQuestions.org
Help answer threads with 0 replies.
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
  Search this Thread
Old 12-06-2006, 06:44 PM   #1
bl0tt0
Member
 
Registered: Aug 2005
Location: The Glorious People's Republic of Austin
Posts: 178

Rep: Reputation: 62
restoring permissions to my home


This is probably a newbish question, but I just noticed some strangenes about the permissions in my user account compared to that of others, either I used a relative path when I didn't want to or something else, but the permissions on many of the files in my user account are quite a bit different from that of other users. Can someone give me an idea of how I can go through and put correct permissions on everuthing in my /home directory without having to look at every single file myself?
 
Old 12-06-2006, 07:01 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Have a look at the man pages for chown and chmod. They both support the -R switch to make changes recursive and chmod supports X as well as x so that only directories (or files that are already executable) are made executable.

If you need something more than that, you could do something like the following. The middle line will break files that should be executable, so be careful with it:
Code:
find /home/steve -type d -exec chmod 0750 {} \;
find /home/steve -type f -exec chmod 0640 {} \;
chown -R steve:steve /home/steve
Some people also set group permissions to 0 - it depends on your requirement.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restoring Permissions keysorsoze Linux - Software 8 05-16-2008 12:42 PM
Restoring /var permissions? Vinter Linux - Software 1 08-10-2006 09:41 AM
Need help restoring /var permissions Thiink Slackware 1 02-21-2005 05:36 AM
Help restoring file permissions from a Dump bminish Linux - Newbie 3 12-12-2004 01:34 PM
Restoring Home Directory Ownership taylortbb Linux - General 1 08-27-2004 09:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:36 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration