0

I'm trying to setup a chmod using this command

sudo chmod +a "www-data allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs

apparently this does not work on debian.

Any clue on how to achieve the same thing ?

Paté
  • 115
  • 1
  • 5
  • What are you trying to accomplish? – Mircea Vutcovici Jun 07 '11 at 20:03
  • Where have you ever seen that command work? I've been around the block a few times, and have never seen such a thing. – EEAA Jun 07 '11 at 20:03
  • I'm trying to setup the cache of symfony2 based on the tutorial http://symfony.com/doc/current/book/installation.html#configuration-and-setup and I opened a bug here https://github.com/symfony/symfony-docs/issues/374 – Paté Jun 07 '11 at 20:05
  • @ErikA: http://www.manpagez.com/man/1/chmod/ – Massimo Jun 07 '11 at 20:11

2 Answers2

1

The command seems to be correct... if you are using a version of CHMOD which supports ACLs and a filesystem which does the same.

Massimo
  • 70,200
  • 57
  • 200
  • 323
  • Is there a way to achieve the same thing witout ACL ? – Paté Jun 07 '11 at 20:17
  • Uhm... according to the article you linked, I'd say "yes, it's the example shown *exactly below* the one with ACLs" :-D – Massimo Jun 07 '11 at 20:21
  • Well I was thinking command line wise – Paté Jun 07 '11 at 20:26
  • I don't know what the exact requirements are for this software to works, and looks like you don't know it so much in depth as well; since the tutorial you are following provides two ways of configuring it, one with ACLs and one without them for those systems which don't support them, I'd just stick to the tutorial. – Massimo Jun 07 '11 at 20:31
  • And if you *really* want to use ACLs, you should make sure that the filesystem is [mounted with ACL support as well](http://www.debianhelp.co.uk/acl.htm) – the-wabbit Jun 07 '11 at 21:49
1

The Symfony documentation at Installing and Configuring Symfony explains that if chmd +a is not supported, you can install the acl package and use the setfacl command instead of chmod +a.

Once you install the acl package, follow the directions at FilePermissions#ACLs to enable acl on your partition. This will allow you to use setfacl,