How to By Pass Permission Denied Error in FTP Programs

Welcome Page Forums RetroPie Project Everything else related to the RetroPie Project How to By Pass Permission Denied Error in FTP Programs

This topic contains 7 replies, has 2 voices, and was last updated by Profile photo of labelwhore labelwhore 2 years, 4 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #89326
    Profile photo of blockaboots
    blockaboots
    Participant

    Im using FileZilla and want to replace some files but im getting a permission denied error message how do i bypass this?

    #89327
    Profile photo of labelwhore
    labelwhore
    Participant

    sudo chmod +w /path/to/your/file via the terminal. You need to do that to every file you want to edit.

    Or you could do what I do and nuke the entire directory structure to make it readable/writable by all. It works, but it’s not really the right way to do things. For that I do:

    sudo chmod 777 -R /directory/I/want/to/change

    That will make everything under the specified folder read/write/executable by all. It’s overkill, but it works.

    http://www.th3rdwave.com/tracks/
    ^^ my other hobby

    #89332
    Profile photo of blockaboots
    blockaboots
    Participant

    Hmm, i get a message

    sudo: effective uid is not 0, is sudo installed setuid root?

    when i try

    sudo chmod 777 -R /opt/retropie

    #89334
    Profile photo of labelwhore
    labelwhore
    Participant

    that shouldn’t happen. try this to fix it:

    sudo chmod -R /usr/bin

    http://stackoverflow.com/questions/18607003/sudo-effective-uid-is-not-0-is-sudo-installed-setuid-root

    If that doesn’t work, somebody more experienced with the ins and outs of Linux will have to chime in. Basically, your permissions are hosed and need to be straightened out. I’m pretty new to this stuff and haven’t come across an issue with sudo not working on my end yet.

    http://www.th3rdwave.com/tracks/
    ^^ my other hobby

    #89359
    Profile photo of blockaboots
    blockaboots
    Participant

    Hmm, im trying to remove the permissions for

    /etc/emulationstation/es_systems.cfg

    i have typed….

    sudo chmod +w /etc/emulationstation/es_systems.cfg

    after pressing return i get no error message but when i try and edit or delete the es_system.cfg folder im still getting the permission denied message from Filezilla!!

    #89361
    Profile photo of labelwhore
    labelwhore
    Participant

    hmmm… I thought that should have worked. try this instead:

    sudo chmod 777 /etc/emulationstation/es_systems.cfg

    *sorry for ninja edit

    You should really change it to 755 once you’re done making changes, but it’s not really gonna hurt anything to leave it alone.

    http://www.th3rdwave.com/tracks/
    ^^ my other hobby

    #89365
    Profile photo of blockaboots
    blockaboots
    Participant

    that worked thanks.

    How do i apply the above to a folder rather than just a file?

    #89366
    Profile photo of labelwhore
    labelwhore
    Participant

    same command but make the path the path to a folder instead of a file, use -R after the permission like this sudo chmod 777 -R /path/to/folder to recursively set the permissions below the top level folder specified. For example, to set the permissions on the roms folder and all subfolders and files underneath it I ran sudo chmod 777 -R /home/pi/RetroPie/roms

    http://www.th3rdwave.com/tracks/
    ^^ my other hobby

Viewing 8 posts - 1 through 8 (of 8 total)

Forums are currently read only - please visit the new RetroPie forums at https://retropie.org.uk/forums/

Skip to toolbar