LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-30-2003, 06:51 PM   #1
dlucas10
LQ Newbie
 
Registered: Aug 2001
Posts: 18

Rep: Reputation: 0
Exclamation Very Stupid question...


Hello Everyone!!!

I have a question about permissions.

How do I set the permissions on everything in my Home Directory to rw to the user and group but I need rwx to directories. So how do I do this in one command. If I do chmod 660 * it also changes the permissions on the directory which then I can't change into the directory. Please Help!!!
 
Old 10-30-2003, 07:01 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
One command? :)

Code:
find . -type f -exec chmod ug+rw {} \; ; find . -type d -exec chmod ug+rwx {} \;
Cheers,
Tink
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Stupid, stupid question; I lost Klaptop. :( Surfrider Slackware 2 08-31-2005 09:12 PM
Stupid Dumb Stupid Question... drigz Linux - Software 3 09-23-2004 03:09 PM
Stupid question.... PenguinPwrdBox Linux - Networking 1 09-16-2004 04:54 AM
Maybe a stupid question.... Coolstar Linux - Software 1 11-01-2003 06:58 PM
Another Stupid Question Bobmeister Linux - Hardware 3 05-26-2003 06:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:31 PM.

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