Unable to Rename file via FTP or web

bruin03

Verified User
Joined
Dec 4, 2006
Messages
40
Using SSH to download files and then unpacking them, i am unable to rename the file via FTP.

Also, my php scripts are unable to write to the directories that i created by unpacking the file via SSH.

Could this be a permissions issue?
According to my ftp, permissions on the folder are set to 777.

Please advise.
 
If you have problems with rename the file due to owned by 'apache', you can solve that with mod_ruid, and you must 'chown' all files back to the user itself.

* Note: Also its not required then to have directories chmod 777
 
You and your mod_ruid! :D
Indeed, works like a charm Peter! We are using this on all our shared/reseller servers. Since we are using this we never had any tickets with "I cant install Joomla/wordpress" or whatever. Or "I can't upload attachments".
 
Slighly off topic, but I may have a go installing it one day (on a test server first of course), sounds better than suPHP.......
 
After doing ls -l command,

the user of the folder appears to be 1000.
See screen shot.


who is this user?i untarred this file from the tarball in red.
Is this why I cannot change the name of the file highlighted in green via FTP?
How do I fix this moving forward so that files I unzip can be edited via apache without compromising security?
 
Last edited:
You can better do: chown username:username scriptcase*
Then you can remove/renam the files at FTP
 
i untarred this file from the tarball in red.
Its best to upload the individual files in the tarbell via FTP, that way the owned user will be correct.... Or as davey says, after u untar'd, do the chown on the files, or if its a directory, use the -R option, eg chown -R user:user directory.
 
Thanks gentlemen.

What if I don't know the particular user who owns the file?

Is there a particular user all users can access?

Can I make the owner apache or something?
If so, what is the owner name for apache?
 
you should know the user..... what folder is the file located in? it should be in the users folder like this /home/username/bla bla bla

apache is apache:apache but I would not recommend doing that.
 
you should know the user..... what folder is the file located in? it should be in the users folder like this /home/username/bla bla bla

apache is apache:apache but I would not recommend doing that.

thanks. I knew that. i may potentially use wget a lot for faster file downloads that's why I asked the question the way i did.

It would be nice if i didn't have to do a chown every time. Would it make a different if I was logged in as the owner of the folder before unpacking the tarball?
 
thanks. I knew that. i may potentially use wget a lot for faster file downloads that's why I asked the question the way i did.

It would be nice if i didn't have to do a chown every time. Would it make a different if I was logged in as the owner of the folder before unpacking the tarball?

If you log into ssh via the user name of whom these files belong too, then all the permissions and owners will be set appropriately.
 
Back
Top