× Warning! This forum is in archival status. New contributions may not work.
Automated Import Script, problems with setup
  • I'm trying to set it up according to the guide here:


    Admittedly, I changed the directory that I was using for the uploads to /home/music/uploads instead. I had created /home/music already beforehand. there were no files in that folder.

    After setting it up I used filezilla to login via SFTP. it was allowing me to browse, but permissions for writing to the folder 'incoming' as detailed in the guide, were denied, so transfer would fail. I asked in #ubuntu for some clarification of the command itself, in case something had slipped my mind. It was mentioned that using the shell the following command sets up is not a good idea, and I should be using /bin/false/ instead to disallow shell access:

    sudo adduser --home /srv/airtime/uploads --shell /usr/lib/sftp-server uploads

    because of this, I was told to delete the user with the following command:

    deluser uploads --remove-home --remove-all-files

    and that's where I'm at right now. after running the command i had a series of this:
    /usr/sbin/deluser: Cannot handle special file /proc/1126/task/1126/fd/12
    /usr/sbin/deluser: Cannot handle special file /proc/1126/fd/0
    /usr/sbin/deluser: Cannot handle special file /proc/1126/fd/1
    /usr/sbin/deluser: Cannot handle special file /proc/1126/fd/2
    /usr/sbin/deluser: Cannot handle special file /proc/1126/fd/8
    /usr/sbin/deluser: Cannot handle special file /proc/1126/fd/9
    /usr/sbin/deluser: Cannot handle special file /proc/1126/fd/10
    /usr/sbin/deluser: Cannot handle special file /proc/1126/fd/11
    /usr/sbin/deluser: Cannot handle special file /proc/1126/fd/12
    /usr/sbin/deluser: Cannot handle special file /proc/1127/task/1127/fd/0
    /usr/sbin/deluser: Cannot handle special file /proc/1127/task/1127/fd/1
    /usr/sbin/deluser: Cannot handle special file /proc/1127/task/1127/fd/2
    /usr/sbin/deluser: Cannot handle special file /proc/1127/fd/0
    /usr/sbin/deluser: Cannot handle special file /proc/1127/fd/1
    /usr/sbin/deluser: Cannot handle special file /proc/1127/fd/2
    /usr/sbin/deluser: Cannot handle special file /proc/1137/task/1137/fd/0
    /usr/sbin/deluser: Cannot handle special file /proc/1137/task/1137/fd/1
    /usr/sbin/deluser: Cannot handle special file /proc/1137/task/1137/fd/2
    /usr/sbin/deluser: Cannot handle special file /proc/1137/task/1137/fd/255
    /usr/sbin/deluser: Cannot handle special file /proc/1137/fd/0
    /usr/sbin/deluser: Cannot handle special file /proc/1137/fd/1
    /usr/sbin/deluser: Cannot handle special file /proc/1137/fd/2
    /usr/sbin/deluser: Cannot handle special file /proc/1137/fd/255
    /usr/sbin/deluser: Cannot handle special file /proc/8820/task/8820/fd/0
    /usr/sbin/deluser: Cannot handle special file /proc/8820/task/8820/fd/1
    /usr/sbin/deluser: Cannot handle special file /proc/8820/task/8820/fd/2
    /usr/sbin/deluser: Cannot handle special file /proc/8820/fd/0
    /usr/sbin/deluser: Cannot handle special file /proc/8820/fd/1
    /usr/sbin/deluser: Cannot handle special file /proc/8820/fd/2
    /usr/sbin/deluser: Cannot handle special file /proc/9290/task/9290/fd/0
    /usr/sbin/deluser: Cannot handle special file /proc/9290/task/9290/fd/1
    /usr/sbin/deluser: Cannot handle special file /proc/9290/task/9290/fd/2
    /usr/sbin/deluser: Cannot handle special file /proc/9290/fd/0
    /usr/sbin/deluser: Cannot handle special file /proc/9290/fd/1
    /usr/sbin/deluser: Cannot handle special file /proc/9290/fd/2


    people in ubuntu support ignored me in the channel after this so i have no idea what to do next or even if that was a monumental mistake. 
    airtime still seems to be working. 
    i found this guide searching online for solutions:
    http://blog.swiftbyte.com/linux/allowing-sftp-access-while-chrooting-the-user-and-denying-shell-access/

    but i don't know what to do with it. I could follow the instructions but i have no idea if it would mess with the rest of the system. I'm running airtime on an
    Ubuntu 12.04.3 VPS.
  • 4 Comments sorted by
  • This is an old way to remove users in Ubuntu

     Lets start over

    do this

    sudo userdel uploads

    You never need to create any home directory

    Now issue the command as per link
    sudo adduser --home  /srv/airtime/uploads --shell /usr/lib/sftp-server uploads

    you are not restricted to call it uploads you can call it what ever you want so if you are having problem create a new $USER$  to whatever you like

    Lets keep for ease unless you know how to modify the import script given at the bottom

    basically for the command you are just restricting the person to their own home folder

    now make your import folder writeable

    sudo chmod 777 /srv/airtime/uploads
    # this is the folder you stated above

    #this is the step you missed

    follow the rest of the tutorial and you should be on your way

    Good look
    Voisses




    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.
  • thank you! that last bit of code probably needs to be included in the manual. it's nowhere on that page. you'd have to run it for the folder 'incoming' as well, for the script to work.
  • ingest doesn't seem to be working. doesn't show up in the library.
  • Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.