So all are the same, and the mountpoints shall all have
ownership user:group = root:backup
However, the latest harddrive I added, wbhich is sde1 shows wrong ownerhips,
The ownership of the underlying mount point is ignored (and should
generally be set to root:root mode 755 to avoid possible complications
in odd cases). You need to chown the directory *after* it is mounted.
This is not, what I wanted. The questions are:
1. Why does this happen only with one of the 3 drives?
The ownership of the underlying mount point is ignored (and should generally be set to root:root mode 755 to avoid possible complications
in odd cases). You need to chown the directory *after* it is mounted.
This is not, what I wanted.
The questions are:
1. Why does this happen only with one of the 3 drives?
2. What did I do wrong with this drive?
All 3 are ext4 formatted.
All 3 are seperate hardware.
Why wasn't it what you "wanted"? It answers your questions.
Because you are probably confused and did something different with the
one that is different.
A mount point is just a directory that has its own permissions, then you mount something on it and it has the permissions of whatever you
mounted. So there are two sets of permissions to consider for each one: before mounting and after.
You have simply probably forgotten to set them in one case (or did setYes, what might it be?
them in one case, but not in the other two).
All 3 are ext4 formatted.
All 3 are seperate hardware.
It doesn't matter. What you are seeing is completely normal if we assume
you did not set the permissions how you wanted both before and after mounting.
Thanks,
Andy
Why wasn't it what you "wanted"? It answers your questions.
What I want is, starting the machine and want all 3 drives automatically been >mounted with the same rights (here: like /daten1 and /space)
I do NOT want to remount it manually at every boot.
A mount point is just a directory that has its own permissions, then you
mount something on it and it has the permissions of whatever you
mounted. So there are two sets of permissions to consider for each one:
before mounting and after.
Where are the permission be set at the drive? It is just a hardware without >any folders or files on. Freshly formatted. What can be done wrong at this?
Dear list,
I am struggeling with a strange behavior when automounting my inbuilt harddrives.
I have 3 harddrives, which are mounted to
/space (sdc1) ext4
/daten1 (sdd1) ext4
/daten2 (sde1) ext4
So all are the same, and the mountpoints shall all have
ownership user:group = root:backup
However, the latest harddrive I added, wbhich is sde1 shows wrong ownerhips, please see:
drwxrwx--- 22 root backup 4096 11. Jul 10:18 daten1
drwxr-xr-x 3 root root 4096 11. Jul 16:30 daten2
drwxrwx--- 12 root backup 4096 25. Jun 21:37 space
But when I unmount sde1 it looks like this:
drwxrwx--- 2 root backup 4096 11. Jul 16:13 daten2
What can bbe wrong? What did I miss? Anything else I should check?
Where are the permission be set at the drive? It is just a hardware without any folders or files on. Freshly formatted. What can be done wrong at this?
You have to chown/chmod the mount point *after* the drive is mounted. If
you do it before the drive is mounted it won't have any effect on the
mounted drive. (As you can see.) I really am not sure what else to say,
this is how it works.
Just for understanding: What does this procedure affect? Does ist set the >ownerships to this device or does it somehow let the kernel remember or is >this owneship stored somewher else?
You have to chown/chmod the mount point *after* the drive is mounted. If you do it before the drive is mounted it won't have any effect on the mounted drive. (As you can see.) I really am not sure what else to say, this is how it works.
Ok, I did as adviced. Changed permissions and ownerships after mount, then rebooted and it loks like it worked.
Just for understanding: What does this procedure affect? Does ist set the ownerships to this device or does it somehow let the kernel remember or is this owneship stored somewher else?
Permissions are stored for the root directory of each filesystem, which
are used as the permissions of the mount point when the drive is
mounted.
Something that I am curious to learn more about, if anyone has ideas, is
the discussion at the above link about the need to have at least 'chmod
111' on mountpoint directories.
I have not found that necessary, and so I wonder if that advice is
outdated, or somehow not relevant to current ext4 on Debian.
In fact it has been my practice for some years now to 'chown root:' and 'chmod 0' on all my mountpoints and set the immutable bit on them, to avoid accidentally writing into directories that are intended only as
mountpoints
In fact it has been my practice for some years now to 'chown root:' and >'chmod 0' on all my mountpoints and set the immutable bit on them, to avoid >accidentally writing into directories that are intended only as
mountpoints.
And I have never had any problem doing that, and never seen any "permission >denied" messages as described in the link.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 51:17:49 |
Calls: | 10,397 |
Calls today: | 5 |
Files: | 14,067 |
Messages: | 6,417,338 |
Posted today: | 1 |