LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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, 07: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, 08:01 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
One command? :)

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


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 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 10:12 PM
Stupid Dumb Stupid Question... drigz Linux - Software 3 09-23-2004 04:09 PM
Stupid question.... PenguinPwrdBox Linux - Networking 1 09-16-2004 05:54 AM
Maybe a stupid question.... Coolstar Linux - Software 1 11-01-2003 07:58 PM
Another Stupid Question Bobmeister Linux - Hardware 3 05-26-2003 07:16 AM


All times are GMT -5. The time now is 04:09 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration