From: Stephen Samuel <samuel@bcgreen.com>
To: Stephen Samuel <samnospam@bcgreen.com>,
rhys@rhyshardwick.co.uk, linux-newbie@vger.kernel.org
Subject: oops Re: Change permissions of files to -xw +r for all other users
Date: Wed, 13 Jul 2005 04:52:53 -0700 [thread overview]
Message-ID: <42D50095.7020202@bcgreen.com> (raw)
In-Reply-To: <42A86A31.5040200@bcgreen.com>
Stephen Samuel wrote:
> Rhys Hardwick wrote:
>
>> Hey there,
>>
>> I know this may be a case of RTM, but I am getting confused on it.
>>
>> I want to change the permissions of all the files in my home folder to
>> read only for all users but myself, but to leave directories
>> executable so that they can be opened. I have had difficulty doing
>> this for only other users, and have ended up -xw for myself as well,
>> even tyring many variations of the -o tag. Any help would be fantastic.
> find ~ -type f -print0 | xargs -0 chmod og=r
On second thought:
Presuming that you really just want to remove write access, I'd
try 'chmod og-w' or 'chmod og-wx'
That would remove the write bit or the write and execute bits,
but not add the read bit. There tend to be some files in a users
directory that you don't want readable all (like ssh private keys,
cert files etc.)
--
Stephen Samuel +1(604)876-0426 samuel@bcgreen.com
http://www.bcgreen.com/~samuel/
Powerful committed communication. Transformation touching
the jewel within each person and bringing it to light.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
prev parent reply other threads:[~2005-07-13 11:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-26 17:44 Change permissions of files to -xw +r for all other users Rhys Hardwick
2005-05-26 18:36 ` J.
2005-05-26 19:21 ` Rhys Hardwick
2005-05-26 20:50 ` J.
2005-05-27 17:17 ` Rhys Hardwick
2005-05-26 21:00 ` J.
2005-06-09 16:11 ` Stephen Samuel
2005-07-13 11:52 ` Stephen Samuel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42D50095.7020202@bcgreen.com \
--to=samuel@bcgreen.com \
--cc=linux-newbie@vger.kernel.org \
--cc=rhys@rhyshardwick.co.uk \
--cc=samnospam@bcgreen.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox