1

I've only got access to the directadmin panel (and ftp access as well), and for my mediawiki install I need to change the ownership of a particular folder (so chown). More specifically, I need to do this:

sudo chown -R www-data:www-data images/

Is there a way to do this without the commandline? With directadmin or via ftp?

2 Answers2

0

filezilla and other well known ftp client supports to change permission of file and folder on server. Also you can use umask for changing permissions using php. Then there is not any need for command line access.

Savan Koradia
  • 127
  • 3
  • 14
  • OP wants to change ownership, not permissions. – l'L'l Jun 09 '14 at 11:38
  • Then FTP doesn't supports this. try to use chown in php. – Savan Koradia Jun 09 '14 at 11:42
  • Actually, some versions of FTP do support it (albeit it's not part of RFC959) the HELP command will tell you if it's available. And why assume that the PHP user has adequate permission to change the ownership of the files? – symcbean Jun 09 '14 at 11:49
  • @symcbean, "Actually, some versions of FTP do support it". — I'm curious to know which 'versions' exactly? – l'L'l Jun 09 '14 at 12:21
0

CHOWN doesn't work over FTP and SFTP, the FTP protocol doesn't support it. You'll either need direct access or a full blown SSH2 remote shell.

In DirectAdmin you can only 'reset' ownership through "File Manager".

l'L'l
  • 44,951
  • 10
  • 95
  • 146
  • `In DirectAdmin you can only 'reset' ownership through "File Manager".`, yeah that's what I saw as well. And resetting ownership doesn't help in this case. Ok, so basically it's not possible with the limitations in this situation, right? –  Jun 09 '14 at 11:40
  • @Sam, Correct. (You could ask the server admin perhaps). Good Luck :) – l'L'l Jun 09 '14 at 11:41
  • Are you quoting that from somewhere? If so, where? – svick Jun 09 '14 at 12:30