1 |
On Tue, 2006-04-04 at 08:53 +0200, Jean Blignaut wrote: |
2 |
> |
3 |
|
4 |
> So I was wondering if there is some way to devide file permissions into |
5 |
> more than just rwx how about "may be deleted by" - u/g/o and maybe "may |
6 |
> be created by" - u/g/o or some such (call it precation or maybe just |
7 |
> laziness to implement too much error checking in scripts) I hope that |
8 |
> some thing like this is covered by extended attributes or some thing but |
9 |
> I haven't had too much luck finding documentation on the subject. |
10 |
|
11 |
Have you looked at ACLs? |
12 |
|
13 |
getfacl |
14 |
setfacl etc? |
15 |
|
16 |
They do provide more fine grained controls. Eg: file owned by root:root, |
17 |
but you want user "popeye" to be able to write to it. |
18 |
|
19 |
eg: setfacl -m u:popeye:rwx,u:oliveoil:r filename |
20 |
|
21 |
|
22 |
rememeber to mount your dir with "acl" mount -o remount,acl /dev/hdX |
23 |
|
24 |
-- |
25 |
Ow Mun Heng |
26 |
Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM |
27 |
98% Microsoft(tm) Free!! |
28 |
Neuromancer 15:05:54 up 3 days, 17:24, 6 users, load average: 0.26, |
29 |
0.30, 0.28 |
30 |
|
31 |
|
32 |
-- |
33 |
gentoo-server@g.o mailing list |