Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #160028 > unrolled thread
| Started by | Richard Owlett <rowlett@cloud85.net> |
|---|---|
| First post | 2015-10-31 16:30 +0100 |
| Last post | 2015-11-08 20:20 +0100 |
| Articles | 5 — 2 participants |
Back to article view | Back to linux.debian.user
Debian Squeeze mounting problem Richard Owlett <rowlett@cloud85.net> - 2015-10-31 16:30 +0100
Re: Debian Squeeze mounting problem David Christensen <dpchrist@holgerdanske.com> - 2015-10-31 22:10 +0100
Re: Debian Squeeze mounting problem Richard Owlett <rowlett@cloud85.net> - 2015-11-01 20:50 +0100
Re: Debian Squeeze mounting problem Richard Owlett <rowlett@cloud85.net> - 2015-11-05 15:40 +0100
ntfs, a POSSIBLE solution - was [Re: Debian Squeeze mounting problem] Richard Owlett <rowlett@cloud85.net> - 2015-11-08 20:20 +0100
| From | Richard Owlett <rowlett@cloud85.net> |
|---|---|
| Date | 2015-10-31 16:30 +0100 |
| Subject | Debian Squeeze mounting problem |
| Message-ID | <qpGgp-4vl-1@gated-at.bofh.it> |
I'm having problems understanding http://manpages.debian.org/cgi-bin/man.cgi?query=mount&apropos=0&sektion=0&manpath=Debian+6.0.10+squeeze&format=html&locale=en I have 3 partitions labeled proj-all, proj-1, and proj-2. The machine intentionally has no networking. There are 2 relevant but minimally privileged users [u1 and u2]. I wish to have proj-all mounted at power on with read/write/execute privileges for both u1 and u2. proj-1 and/or proj-2 will be mounted separately if required. Once mounted, u1 and u2 will each have read/write access. How do I accomplish this. TIA
[toc] | [next] | [standalone]
| From | David Christensen <dpchrist@holgerdanske.com> |
|---|---|
| Date | 2015-10-31 22:10 +0100 |
| Message-ID | <qpLzr-7Sr-7@gated-at.bofh.it> |
| In reply to | #160028 |
On 10/31/2015 08:28 AM, Richard Owlett wrote:
> I'm having problems understanding
> http://manpages.debian.org/cgi-bin/man.cgi?query=mount&apropos=0&sektion=0&manpath=Debian+6.0.10+squeeze&format=html&locale=en
>
> I have 3 partitions labeled proj-all, proj-1, and proj-2.
> The machine intentionally has no networking.
> There are 2 relevant but minimally privileged users [u1 and u2].
> I wish to have proj-all mounted at power on with read/write/execute
> privileges for both u1 and u2.
>
> proj-1 and/or proj-2 will be mounted separately if required.
> Once mounted, u1 and u2 will each have read/write access.
>
> How do I accomplish this.
I don't use labels much in Linux, but they can be helpful when I have
multiple disk drives of the same make and model with identical
partitioning schemes.
I use UUID's to identify partitions in /etc/fstab. For example:
# /boot was on /dev/sda1 during installation
UUID=2ef32b38-2ede-491d-9d4d-e9da3282170f /boot
ext4 defaults,discard 0 2
"mount" connects a disk partition containing a file system into the
Linux file system heirarchical tree.
Traditional read, write, and execute permissions are controlled by the
"mode" bits:
https://en.wikipedia.org/wiki/Modes_%28Unix%29
So:
1. If you want all users to have full access to the file system on the
partition labeled "proj-all", then you need to create an empty directory
(mount point), mount the partition file system into that directory, and
set the "other" read, write, and execute mode bits of the directory once
mounted.
2. If you want just u1 and u2 to have full access to "proj-all", then
you need to create an empty directory, mount the partition, create a
group containing u1 and u2, change the group ownership of the directory
to the group you created, set the "group" read, write, and execute bits,
and clear the "other" bits.
3. If you want just u1 to have full access to "proj-1", then you need
to create an empty directory, mount the partition, and either create a
group with just u1 and do the above, or change the user ownership of the
directory to u1, set the "user" read, write, and execute bits, and clear
the "group" and "other" bits.
David
[toc] | [prev] | [next] | [standalone]
| From | Richard Owlett <rowlett@cloud85.net> |
|---|---|
| Date | 2015-11-01 20:50 +0100 |
| Message-ID | <qq6NA-42r-7@gated-at.bofh.it> |
| In reply to | #160060 |
David Christensen wrote: > On 10/31/2015 08:28 AM, Richard Owlett wrote: >> I'm having problems understanding >> http://manpages.debian.org/cgi-bin/man.cgi?query=mount&apropos=0&sektion=0&manpath=Debian+6.0.10+squeeze&format=html&locale=en >> >> >> I have 3 partitions labeled proj-all, proj-1, and proj-2. >> The machine intentionally has no networking. >> There are 2 relevant but minimally privileged users [u1 and u2]. >> I wish to have proj-all mounted at power on with >> read/write/execute >> privileges for both u1 and u2. >> >> proj-1 and/or proj-2 will be mounted separately if required. >> Once mounted, u1 and u2 will each have read/write access. >> >> How do I accomplish this. > > I don't use labels much in Linux, but they can be helpful when I > have multiple disk drives of the same make and model with > identical partitioning schemes. > > > I use UUID's to identify partitions in /etc/fstab. For example: > > # /boot was on /dev/sda1 during installation > UUID=2ef32b38-2ede-491d-9d4d-e9da3282170f /boot > ext4 defaults,discard 0 2 > > > "mount" connects a disk partition containing a file system into > the Linux file system heirarchical tree. > > > Traditional read, write, and execute permissions are controlled > by the "mode" bits: > > https://en.wikipedia.org/wiki/Modes_%28Unix%29 > > > So: > > 1. If you want all users to have full access to the file system > on the partition labeled "proj-all", then you need to create an > empty directory (mount point), mount the partition file system > into that directory, and set the "other" read, write, and execute > mode bits of the directory once mounted. > > 2. If you want just u1 and u2 to have full access to "proj-all", > then you need to create an empty directory, mount the partition, > create a group containing u1 and u2, change the group ownership > of the directory to the group you created, set the "group" read, > write, and execute bits, and clear the "other" bits. > > 3. If you want just u1 to have full access to "proj-1", then you > need to create an empty directory, mount the partition, and > either create a group with just u1 and do the above, or change > the user ownership of the directory to u1, set the "user" read, > write, and execute bits, and clear the "group" and "other" bits. > > Thank you. The "shape" of your answer indicates my question could be better phrased. The Wikipedia reference (or one of its links) indicates the answer will not be of the originally desired "shape". I think I've been given enough hints to create a workable if not ideal solution.
[toc] | [prev] | [next] | [standalone]
| From | Richard Owlett <rowlett@cloud85.net> |
|---|---|
| Date | 2015-11-05 15:40 +0100 |
| Message-ID | <qrtRL-7Tm-9@gated-at.bofh.it> |
| In reply to | #160079 |
On 11/1/2015 1:47 PM, Richard Owlett wrote:
> David Christensen wrote:
>> On 10/31/2015 08:28 AM, Richard Owlett wrote:
>>> I'm having problems understanding
>>> http://manpages.debian.org/cgi-bin/man.cgi?query=mount&apropos=0&sektion=0&manpath=Debian+6.0.10+squeeze&format=html&locale=en
>>>
>>> I have 3 partitions labeled proj-all, proj-1, and proj-2.
>>> The machine intentionally has no networking.
>>> There are 2 relevant but minimally privileged users [u1 and u2].
>>> I wish to have proj-all mounted at power on with
>>> read/write/execute
>>> privileges for both u1 and u2.
>>>
>>> proj-1 and/or proj-2 will be mounted separately if required.
>>> Once mounted, u1 and u2 will each have read/write access.
>>>
>>> How do I accomplish this.
>>
>> I don't use labels much in Linux, but they can be helpful when I
>> have multiple disk drives [snip]
My 'universe of discourse' is a _personal_ laptop with one
hard-drive.
The set of users is intrinsically "me", "myself" and "i". Only
"i" may use sudo.
"me" and "myself" are working on different aspects of the same
problem and must share results. The only distinction is in
scratch files. Debian's personalized home directories serve that
nicely.
Labels are intrinsically unique mnemonics. UUID's would only be a
source of confusion.
Mr. Christensen had referred me to
https://en.wikipedia.org/wiki/Modes_%28Unix%29
I also found the following to be informative (complementing the
man pages):
https://en.wikipedia.org/wiki/Fstab
https://en.wikipedia.org/wiki/Chmod
https://en.wikipedia.org/wiki/Chown
https://en.wikipedia.org/wiki/Ls
https://en.wikipedia.org/wiki/Mount_(Unix)
For the moment proj-1 and proj-2 should be considered
appropriately formatted and labeled USB flash drives. When one or
other or both are plugged in, they shall be immediately available
WITHOUT operator intervention. FAT32 would work except for file
size limitations.
The laptop being used is dedicated to this project and to me
learning ins and outs of Debian. Due to later I've wiped the disk
and reinstalled multiple times in a single day. [If retirement is
not for education, of what use might it be ;]
Thank you for your time.
[toc] | [prev] | [next] | [standalone]
| From | Richard Owlett <rowlett@cloud85.net> |
|---|---|
| Date | 2015-11-08 20:20 +0100 |
| Subject | ntfs, a POSSIBLE solution - was [Re: Debian Squeeze mounting problem] |
| Message-ID | <qsDFp-4dG-29@gated-at.bofh.it> |
| In reply to | #160225 |
On 11/5/2015 8:33 AM, Richard Owlett wrote:
> On 11/1/2015 1:47 PM, Richard Owlett wrote:
>> David Christensen wrote:
>>> On 10/31/2015 08:28 AM, Richard Owlett wrote:
>>>> I'm having problems understanding
>>>> http://manpages.debian.org/cgi-bin/man.cgi?query=mount&apropos=0&sektion=0&manpath=Debian+6.0.10+squeeze&format=html&locale=en
>>>>
>>>>
>>>> I have 3 partitions labeled proj-all, proj-1, and proj-2.
>>>> The machine intentionally has no networking.
>>>> There are 2 relevant but minimally privileged users [u1 and u2].
>>>> I wish to have proj-all mounted at power on with
>>>> read/write/execute
>>>> privileges for both u1 and u2.
>>>>
>>>> proj-1 and/or proj-2 will be mounted separately if required.
>>>> Once mounted, u1 and u2 will each have read/write access.
>>>>
>>>> How do I accomplish this.
>>>
>>> I don't use labels much in Linux, but they can be helpful when I
>>> have multiple disk drives [snip]
>
> My 'universe of discourse' is a _personal_ laptop with one
> hard-drive.
>
> The set of users is intrinsically "me", "myself" and "i". Only
> "i" may use sudo.
> "me" and "myself" are working on different aspects of the same
> problem and must share results. The only distinction is in
> scratch files. Debian's personalized home directories serve that
> nicely.
>
> Labels are intrinsically unique mnemonics. UUID's would only be a
> source of confusion.
>
> Mr. Christensen had referred me to
> https://en.wikipedia.org/wiki/Modes_%28Unix%29
> I also found the following to be informative (complementing the
> man pages):
> https://en.wikipedia.org/wiki/Fstab
> https://en.wikipedia.org/wiki/Chmod
> https://en.wikipedia.org/wiki/Chown
> https://en.wikipedia.org/wiki/Ls
> https://en.wikipedia.org/wiki/Mount_(Unix)
>
> For the moment proj-1 and proj-2 should be considered
> appropriately formatted and labeled USB flash drives. When one or
> other or both are plugged in, they shall be immediately available
> WITHOUT operator intervention. FAT32 would work except for file
> size limitations.
>
> The laptop being used is dedicated to this project and to me
> learning ins and outs of Debian. Due to later I've wiped the disk
> and reinstalled multiple times in a single day. [If retirement is
> not for education, of what use might it be ;]
>
> Thank you for your time.
>
On a USENET group discussing an unrelated topic I came across
partitions formatted as ntfs. I had seen the acronym before, but
never investigated it.
A minimal reading suggests that Debian's default action when
asked to mount a ntfs partition will make the owner to be 'root'
and give all others read/write access. That will _apparently_
meet my requirements as the machine in question does *NOT* have
any possible network connectivity whatsoever and I am the *ONLY*
one with physical access.
If I actually understand some particulars of what I read, ACL
{Access Control Lists} would allow me to store information WITHIN
SAID partition to control permissions.
If I'm clueless, please inform me.
P.S. Over the decades, I have found that when entering a unknown
office complex I have found that asking Receptionist, "Would you
like to tell someone 'Where to go'?"
[GRIN}
Owl now DUCKs for cover ;/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web