Page 1 of 1
Unable to write/delete existing files/Folders
Posted: Tue Nov 15, 2011 8:51 pm
by fishsnjeHDA
I installed a headless Amahi HDA using express CD on a blank drive. When the system was up, I attached three drives with files/photos already on them. When I try to write/delete to these 3 disks, I am told that I do not have permissions. However, I am able to write to folders I have created after the Amahi installation on these same 3 disks.
I am frustrated because I want to delete some files to make more room on these Hard drives.
Can anyone help? Please!!
Finney
Re: Unable to write/delete existing files/Folders
Posted: Wed Nov 16, 2011 5:42 am
by bigfoot65
Sounds like the files/folders you want to delete do not have the correct permissions assigned.
You will need to SSH into your HDA and change that via a terminal window as root user (see
http://wiki.amahi.org/index.php/Open_Terminal_as_root).
Check to see that the files are owned by your user and the file permissions are 775.
The command is to change that is:
Code: Select all
chown -R username:users directoryname
Replace username with your user name of course and directory name will be the directories you cannot delete files.
Hope this helps.
Re: Unable to write/delete existing files/Folders
Posted: Wed Nov 16, 2011 9:01 am
by fishsnjeHDA
Thanks for the reply.
I will try it tonight. So, from what you wrote, I have to assume that these steps should be done for every directory/folder. Is it possible to change the permissions for all the contents of a drive with just a few steps, instead of doing for each folder in the drive?
Re: Unable to write/delete existing files/Folders
Posted: Wed Nov 16, 2011 10:37 am
by bigfoot65
Yes that is possible. You could also just do it for /var/hda/files directory which would cover all shares.
Re: Unable to write/delete existing files/Folders
Posted: Wed Nov 16, 2011 9:16 pm
by fishsnjeHDA
I tried your steps, bigfoot. I used AjaXplorer to try to delete the directory. I was unsuccessful and got a message on the bottom of the window "the directory /recycle_bin is not writable. This might be a permissions problem". Please tell me how to rectify this.
Re: Unable to write/delete existing files/Folders
Posted: Thu Nov 17, 2011 5:47 am
by bigfoot65
Check the file permissions of the directory you are trying to delete. There is a good link which tells you how to read the permission settings.
http://wiki.amahi.org/index.php/Basics
To change them, do the following as root user:
chmod -R 775 /var/hda/files/sharename
Hope that helps.
Re: Unable to write/delete existing files/Folders
Posted: Tue Nov 22, 2011 9:59 am
by fishsnjeHDA
Thanks bigfoot.
I followed your steps, but I ran into resistance from the files of a backup I had made on my previous Ubuntu machine using rsync. The regular files/folders outside the backup folder were behaving well after the change of permissions.
I had to go in as root and individually remove the files and directories in the backup folder from command line.