Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.os.linux.ubuntu > #197476
| From | Paul <nospam@needed.invalid> |
|---|---|
| Newsgroups | alt.os.linux.ubuntu |
| Subject | Re: Mount external ext4 partition |
| Date | 2017-10-14 18:03 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <oru1ip$oqq$1@dont-email.me> (permalink) |
| References | (3 earlier) <f4f8avFh44eU1@mid.individual.net> <f4f9mnFhdtbU1@mid.individual.net> <f4fb3kFho79U1@mid.individual.net> <f4fca4Fi0eiU1@mid.individual.net> <f4fd7uFi6qbU1@mid.individual.net> |
Mike Easter wrote:
> Mike Easter wrote:
>> I believe I want to work on chmod instead of chown, since chown
>> doesn't fix the Others problem which is what needs to be fixed.
>
> How about I just change the Others to read on all the .pdf/s
>
> chmod o=r *.pdf
>
> I plan to navigate to the directory to apply that and I want to affect
> all the .pdf/s inside that dir and all of the dir/s within that dir.
>
> I could do them one at a time since there are only 6 that have
> restricted others.
>
Try it and see.
As long as you have full sudo (not feature limited)
or root, you can usually dig yourself out of a hole.
Now is a perfect time to learn how to use chown,
chmod, chattr.
*******
Account numbers don't have to be the same on a bunch
of multi-booting OSes. You will see this when you
list a directory and you see "1000:ubuntu" rather
than "somename:ubuntu". It means in the /etc/password
file (or whete ever account information is stored), there
is nothing indicating the symbolic name for a particular
numeric value. The system runs on numeric values, and
symbolic (name) representations are to make the system
"user friendly".
You see this a lot more, when "tarring" a structure from
dis-similar systems and then trying to restore it elsewhere.
The numbers may not have any names defined, so you can
figure out what the account "used to be". It helps if you
have access to the old system, to get the account list
so you have a mapping for later.
Even things like the "Nobody" account might not have
consistent definitions (between say, FreeBSD, Solaris, Linux).
Nobody might be the highest value numerically, but the
numerical range might be 32767 on one ecosystem and
65535 on another, and then the "highest value" heuristic
doesn't work out. A tarfile might have something stamped
with Nobody, and then that isn't the value of Nobody
on a different platform.
*******
At work, when I parachuted into a Unix group, one of the
first things I was taught by the other employees, was
permissions and ownership. For many other functions,
I was left to my C-shell and Bourne-shell books
(as by mutual agreement, I wasn't to ask questions
on obscure stuff unless I was really stuck). There
was no Google back then :-) If it wasn't for my books,
I would really have been stuck. But the permissions
and ownership lecture was "free", because of the need
to share files immediately. And because the basics are
so simple, that part should stick with you over the
years.
There are always parts of the ecosystem which are obscure
and little used. And that's for the best :-)
There are rules for the $TEMP directory. Root cannot
delete user files in $TEMP. There is a bit set on the
TEMP (/tmp) directory indicating that behavior is required
there.
There is setuid for executables (like maybe Xterm).
There is the CHATTR "immutable" to protect Linux files.
So you cannot delete them, without undoing the immutable first.
There are permissions for "sockets", which you might
see in temp. Maybe Xorg needs a socket, and there's
one of them in there. So some of these things are
a bit on the obscure side, and more things that a
programmer would know.
But at the very least, you should understand the
simple stuff, like how the /tmp behavior works
so that multi-users can all share the same /tmp
without trampling on one another.
I think there's also a kind of bit that covers "terminate and
stay resident". That was intended, long ago, to cache
an executable that has just run, making it easier
to load the next time (a means to improve script
performance perhaps). This isn't really necessary any
more, because the OS has a ton of features that
do the same sorts of things (system read cache perhaps).
I think one of the first system read caches I ran into,
was SunOS 4.1.3 or so, but many OSes copied this feature
afterwards. I remember being blown away, when my
new Mac G4 at the time, exhibited system read cache
behavior (running a checksum on a file twice, the
second run was "super-fast" because the file was
still in RAM). On Windows, it was Win2K, but the
behavior has "back-slided" quite a bit over the years.
Win2K took it seriously. Many Windows operations now,
refuse to use the cached copy, for no good reason.
Paul
Back to alt.os.linux.ubuntu | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Mount external ext4 partition Mike Easter <MikeE@ster.invalid> - 2017-10-13 15:12 -0700
Re: Mount external ext4 partition Bit Twister <BitTwister@mouse-potato.com> - 2017-10-14 00:41 +0000
Re: Mount external ext4 partition Mike Easter <MikeE@ster.invalid> - 2017-10-14 00:03 -0700
Re: Mount external ext4 partition Mike Easter <MikeE@ster.invalid> - 2017-10-14 11:54 -0700
Re: Mount external ext4 partition "Jonathan N. Little" <lws4art@gmail.com> - 2017-10-14 15:03 -0400
Re: Mount external ext4 partition Mike Easter <MikeE@ster.invalid> - 2017-10-14 12:54 -0700
Re: Mount external ext4 partition Mike Easter <MikeE@ster.invalid> - 2017-10-14 13:17 -0700
Re: Mount external ext4 partition Paul <nospam@needed.invalid> - 2017-10-14 16:37 -0400
Re: Mount external ext4 partition Mike Easter <MikeE@ster.invalid> - 2017-10-14 14:08 -0700
Re: Mount external ext4 partition Mike Easter <MikeE@ster.invalid> - 2017-10-14 14:28 -0700
Re: Mount external ext4 partition Mike Easter <MikeE@ster.invalid> - 2017-10-14 15:09 -0700
Re: Mount external ext4 partition "Jonathan N. Little" <lws4art@gmail.com> - 2017-10-14 23:21 -0400
Re: Mount external ext4 partition Marek Novotny <marek.novotny@marspolar.com> - 2017-10-14 22:22 -0500
Re: Mount external ext4 partition "Jonathan N. Little" <lws4art@gmail.com> - 2017-10-14 23:29 -0400
Re: Mount external ext4 partition Mike Easter <MikeE@ster.invalid> - 2017-10-14 13:41 -0700
Re: Mount external ext4 partition Mike Easter <MikeE@ster.invalid> - 2017-10-14 14:01 -0700
Re: Mount external ext4 partition Mike Easter <MikeE@ster.invalid> - 2017-10-14 14:17 -0700
Re: Mount external ext4 partition Paul <nospam@needed.invalid> - 2017-10-14 18:03 -0400
Re: Mount external ext4 partition Mike Easter <MIkeE@ster.invalid> - 2017-10-15 18:55 +0000
Re: Mount external ext4 partition Mike Easter <MIkeE@ster.invalid> - 2017-10-15 19:11 +0000
Re: Mount external ext4 partition Paul <nospam@needed.invalid> - 2017-10-15 16:40 -0400
Re: Mount external ext4 partition "Jonathan N. Little" <lws4art@gmail.com> - 2017-10-15 18:31 -0400
Re: Mount external ext4 partition "Jonathan N. Little" <lws4art@gmail.com> - 2017-10-14 23:17 -0400
Re: Mount external ext4 partition Big Bad Bob <BigBadBob-at-mrp3-dot-com@testing.local> - 2017-10-15 12:38 -0700
Re: Mount external ext4 partition Paul <nospam@needed.invalid> - 2017-10-15 16:58 -0400
csiph-web