can't change permissions for directory

  • Hi,


    what i want to do is have a directory that is not on the storage file system but in "/home/xxxxxxxx" so i can execute files in this folder and it needs to be accessible via FTP


    i already have made a new user named minecraft and a folder named minecraft in /home/.
    i used this command.

    Code
    sudo useradd ftp_user -p your_password -d /home/ftp -s /bin/false
    sudo passwd ftp_user


    after that i have applied chmod -R 771 to the folder.

    Code
    chmod -R 771 minecraft/


    and now i can connect to the ftp with the user minecraft but i cannot add or change any files.
    i use fillezilla to connect to the server, and this is the error that i get when i try to eddit the something in the folder.


    Code
    PASV
    Response:	227 Entering Passive Mode (192,168,0,203,226,100).
    Command:	STOR test.sh
    Response:	550 test.sh: Toegang geweigerd
    Error:	Critical file transfer error
  • i have enabled the passive ports annd changed them as in the guid and it is still not working.
    i can create a folder with the gui on the normal storage file system and that works fine.
    but it goes wrong when i try to change something in a folder that is on the system disk that i had to make using the cli.


    filezilla after the changes.


    edit: when i do "ls -l myfolder" via ssh i get "total 0"

  • Code
    root@openmediavault:/home# stat minecraft/
      File: ‘minecraft/’
      Size: 4096            Blocks: 8          IO Block: 4096   map
    Device: 801h/2049d      Inode: 3538948     Links: 2
    Access: (0755/drwxr-xr-x)  Uid: ( 1004/minecraft)   Gid: (65534/ nogroup)
    Access: 2014-07-16 16:06:15.987755327 +0200
    Modify: 2014-07-16 09:39:34.971814848 +0200
    Change: 2014-07-16 16:06:15.987755327 +0200
  • The ftp settings in the web interface.

    content of /etc/modprobe.d/options.conf

    Code
    options nf_conntrack_ftp ports=21,14100,14101,14102,14103,14104,14105


    content of /etc/modules

    Code
    # /etc/modules: kernel modules to load at boot time.
    #
    # This file contains the names of kernel modules that should be loaded
    # at boot time, one per line. Lines beginning with "#" are ignored.
    # Parameters can be specified after the module name.
    
    
    loop
    nf_conntrack_ftp


    edit: typos.

  • Did you name the the folder module or modules? It should be:


    /etc/modules


    and this is supposed to be:


    /etc/modprobe.d/options.conf


    I don't know if you are being careless in post above or you were in the actual files.

  • i changed the correct files, those where mistakes in the post.


    edit: i made a folder in the "/home/minecraft/" and it is not showing up, so i think the ftp isn't going to the directory that i want.

  • i can now access and upload files in the folder in /home/minecraft.


    i changed defaultroot in the "proftpd.conf" from "/home/ftp" to "~" and now it works the way that i want it.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!