Web lists-archives.com

Re: User rw Permissions on New Hard Drive




On Fri 01 Mar 2019 at 01:30:47 (-0500), Cindy-Sue Causey wrote:
> On 2/28/19, Felix Miata <mrmazda@xxxxxxxxxxxxx> wrote:
> > David Wright composed on 2019-02-28 20:26 (UTC-0600):
> >
> >> I always add an explicit rw or ro under options, along with defaults.
> >
> > English can be tricky. Please clarify. AIUI, the string "defaults" is a
> > placeholder, unnecessary if
> > any other option is specified. Man mount doesn't make it clear to me. I
> > can't recall ever including
> > it along with any other option. I've always assumed all defaults not
> > explicitly overridden will be
> > used.
> 
> That's what I'd been thinking, too. Because of your question, I just
> tried a search for...
> 
> "defaults,rw" /etc/fstab

You've really limited what can be found with that string.
For example, you won't find rw,defaults. But the shell
makes a more productive search string look like toothpick-hell:

$ grep '\(rw\)\|\(defaults\)' /etc/fstab

will match lines with either word.

Cheers,
David.