DirectAdmin and permissions

Status
Not open for further replies.

pi0tr3k

Active Member
3,055
2009
768
10
Hallo again.

I've created a new FTP user 'pi0tr3k'.
I gave access to this directory for this user: /home/XXXX/

How I did it?
I went to DirectAdmin => Reseller level => List Users => logged in as pi0tr3k => FTP Management => Add FTP account => Submit

Now, what the fuck did I wrong?
Why every time I try to delete/add/change something in my XXXX directory, it gives this errors:
Code:
Polecenie*:    DELE controlpanel.php
Odpowiedź**    550 controlpanel.php: Permission denied
Polecenie:    DELE config.php
Odpowiedź    550 config.php: Permission denied
Polecenie:    DELE comments.php
Odpowiedź    550 comments.php: Permission denied
Polecenie:    DELE banner.php
Odpowiedź    550 banner.php: Permission denied
Polecenie:    DELE ad2.php
Odpowiedź    550 ad2.php: Permission denied

* POLECENIE = To Do
** ODPOWIEDZ = Respond
^this happens when I try to delete files from a sub domain. (blah.xxxx)

I get this error when editing a file in my XXXX directory
Code:
Polecenie:    STOR overall_footer.tpl
Odpowiedź    550 overall_footer.tpl: Permission denied
Błąd:    Critical file transfer error

Please help, as I can't do shit now :|

Thanks <3
 
12 comments
pi0 you noob
run this command in ssh
Code:
chown -R username:username /path/to/your/destination

And remove -R if you don't want to recurse into sub-dirs

EDIT: replace username with your actual username (i.e. pi0tr3k)
 
chown -R pi0tr3k:pi0tr3k /home/xxx

ffs

pi0tr3k : pi0tr3k (without spaces)

basically you are giving ownership to all files in the dir + all sub-dirs to pi0tr3k.
 
the problem is that the files are not owned by the username pi0tr3k there own by root, so you need to login as root and chown (Change Owner) to your username so that when you within your account tree you have permissions to edit/delete the files!
 
But, but,.. my username I use on FTP is pi0tr3k@platinumw.org ..

FFS, I still get
Polecenie: DELE slider.php
Odpowiedź 550 slider.php: Permission denied
Polecenie: DELE single.php
Odpowiedź 550 single.php: Permission denied
Polecenie: DELE sidebar1.php
Odpowiedź 550 sidebar1.php: Permission denied
Polecenie: DELE sidebar.php
Odpowiedź 550 sidebar.php: Permission denied
 
Try logging in via SSH and giving additional permissions to the directory with the chmod command: http://catcode.com/teachmod/

I'm not sure why it happened, It could be because you're trying to access "/home", but most ftp servers will only allow you to access the "/www" or "public_html" directories.
 
Status
Not open for further replies.
Back
Top