1 |
On Tue, 10 Apr 2012 12:18:38 +0100 |
2 |
Stroller <stroller@××××××××××××××××××.uk> wrote: |
3 |
|
4 |
> |
5 |
> On 9 April 2012, at 20:59, Mark Knecht wrote: |
6 |
> > … |
7 |
> > In the past I've gotten around this by having root mount the drive |
8 |
> > and then change ownership to mark:users once it's mounted. Linux |
9 |
> > remembers I've done that once and no longer requires me to do |
10 |
> > anything else as root. |
11 |
> > |
12 |
> > Is that truly required or is there a way to give the user access |
13 |
> > to the top of the new mount point without roots' involvement? |
14 |
> |
15 |
> |
16 |
> I recall having exactly this problem years ago, and having had it |
17 |
> explained to me here on this list. |
18 |
> |
19 |
> I'm sure that if you *once* chmod / chown as root, then the |
20 |
> permissions will be remembered correctly forever after. If you |
21 |
> unmount and remount the drive, reboot the computer or whatever, the |
22 |
> user will be able to write to the drive. |
23 |
> |
24 |
> Do double & triple check this because, although I'm certainly |
25 |
> fallible, I feel certain of this. |
26 |
> |
27 |
> If I'm mistaken I guess you could do something involving udev |
28 |
> mounting rules. |
29 |
> |
30 |
> Note that if you use the same USB drive on different computers (or |
31 |
> dual-boot different distros) then you have to be aware of user name |
32 |
> vs. user ID number. |
33 |
> |
34 |
> Stroller. |
35 |
> |
36 |
> |
37 |
|
38 |
You are correct. |
39 |
|
40 |
chown the mount point and the top-level "." directory on the disk and |
41 |
that is what is used in future. |
42 |
|
43 |
Fancy software like udev and DEs may undo all of that work, but without |
44 |
their input the above is what works. |
45 |
|
46 |
|
47 |
|
48 |
|
49 |
-- |
50 |
Alan McKinnnon |
51 |
alan.mckinnon@×××××.com |