Can't move files on webserver into another directory.

Posted on 2007-10-03
Last Modified: 2013-12-16
I've created a new website using Mambo.  I developed the website in and planned to move it up one directory once it was done.  I'm unable to copy some of the files by FTP to my machine.  I can log in using SSH and try to move the files that way, but I get an access denied message.  ls -l from within one of the directories containing files I can't access reveals:

-bash-3.00$ ls -l
total 48
-rw-------  1 nobody 4294967295  6077 Oct  2 02:59 admin.comment.html.php
-rw-------  1 nobody 4294967295 12221 Oct  2 02:59 admin.comment.php
-rw-------  1 nobody 4294967295  1087 Oct  2 02:59 class.comment.php
-rw-------  1 nobody 4294967295  2071 Oct  2 02:59 comment.xml
-rw-------  1 nobody 4294967295   195 Oct  2 02:59 config.comment.php
-rw-------  1 nobody 4294967295  1294 Oct  2 02:59 install.comment.php
-rw-------  1 nobody 4294967295  1567 Oct  2 02:59 toolbar.comment.html.php
-rw-------  1 nobody 4294967295   904 Oct  2 02:59 toolbar.comment.php
-rw-------  1 nobody 4294967295   536 Oct  2 02:59 uninstall.comment.php

If you're not familiar with Mambo, you set up a mySQL database, upload Mambo's installation files by ftp and adjust the permissions on the files.  Mambo is then set up through a browser, and it creates new files.  I think that the files it created are the ones that now have no owner.

How do I move these files into the directory above without being the owner of them?  

We're a student's association and our webhost has given us free hosting.  I'd REALLY like to solve this on my own and contact them to change file permissions only if it's absolutely necessary.

As a temp solution I've created an .htaccess to direct everyone to /mambo.

Question by:slogged
    LVL 48

    Accepted Solution

    The only way you'll be able to move the files is if you have sufficient permissions on the directory.

    ls -ld directory

    will show you what the dir perms are.

    If you do have perms, you can do

    mv directory ..

    If not, then you'll need to contact your webhost to update the perms.
    LVL 1

    Author Comment

    I used PHP/Apache to delete the files, recreated them.

    Why I continue to pay for EE ... I have no idea ....

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
    Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now