Patchwork Add /var/www to device table

login
register
mail settings
Submitter Simon Dawson
Date June 25, 2012, 8:02 p.m.
Message ID <1340654541-10427-1-git-send-email-spdawson@gmail.com>
Download mbox | patch
Permalink /patch/167233/
State Superseded
Headers show

Comments

Simon Dawson - June 25, 2012, 8:02 p.m.
From: Simon Dawson <spdawson@gmail.com>

The /var/www directory is listed in /etc/passwd in the skeleton target
filesystem as the home directory of the www-data user (uid 33).

In the final target filesystem, /var/www should be owned by www-data. This
is important for the lighttpd package, for example.

Signed-off-by: Simon Dawson <spdawson@gmail.com>
---
 target/generic/device_table.txt |    1 +
 1 file changed, 1 insertion(+)
Arnout Vandecappelle - June 30, 2012, 5:46 p.m.
On 06/25/12 22:02, spdawson@gmail.com wrote:
> From: Simon Dawson<spdawson@gmail.com>
>
> The /var/www directory is listed in /etc/passwd in the skeleton target
> filesystem as the home directory of the www-data user (uid 33).
>
> In the final target filesystem, /var/www should be owned by www-data. This
> is important for the lighttpd package, for example.
>
> Signed-off-by: Simon Dawson<spdawson@gmail.com>

Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

  There's a redundant tab in the /var/www line, however.

  Regards,
  Arnout
Simon Dawson - July 9, 2012, 12:51 p.m.
On 30 June 2012 18:46, Arnout Vandecappelle <arnout@mind.be> wrote:
> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
>
>  There's a redundant tab in the /var/www line, however.

Thanks for the feedback Arnout; will fix patch and resubmit.

Simon

Patch

diff --git a/target/generic/device_table.txt b/target/generic/device_table.txt
index fc397a9..421b357 100644
--- a/target/generic/device_table.txt
+++ b/target/generic/device_table.txt
@@ -10,6 +10,7 @@ 
 /tmp					d	1777	0	0	-	-	-	-	-
 /etc					d	755	0	0	-	-	-	-	-
 /home/default				d	2755	1000	1000	-	-	-	-	-
+/var/www					d	755	33	33	-	-	-	-	-
 /etc/shadow				f	600	0	0	-	-	-	-	-
 /etc/passwd				f	644	0	0	-	-	-	-	-
 /etc/network/if-up.d			d	755	0	0	-	-	-	-	-