Unable to write/delete existing files/Folders

fishsnjeHDA
Posts: 4
Joined: Fri Nov 04, 2011 8:08 am

Unable to write/delete existing files/Folders

Postby fishsnjeHDA » Tue Nov 15, 2011 8:51 pm

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

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Unable to write/delete existing files/Folders

Postby bigfoot65 » Wed Nov 16, 2011 5:42 am

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

Code: Select all

chmod 775 -R directoryname
Replace username with your user name of course and directory name will be the directories you cannot delete files.

Hope this helps.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

fishsnjeHDA
Posts: 4
Joined: Fri Nov 04, 2011 8:08 am

Re: Unable to write/delete existing files/Folders

Postby fishsnjeHDA » Wed Nov 16, 2011 9:01 am

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?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Unable to write/delete existing files/Folders

Postby bigfoot65 » Wed Nov 16, 2011 10:37 am

Yes that is possible. You could also just do it for /var/hda/files directory which would cover all shares.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

fishsnjeHDA
Posts: 4
Joined: Fri Nov 04, 2011 8:08 am

Re: Unable to write/delete existing files/Folders

Postby fishsnjeHDA » Wed Nov 16, 2011 9:16 pm

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.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Unable to write/delete existing files/Folders

Postby bigfoot65 » Thu Nov 17, 2011 5:47 am

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.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

fishsnjeHDA
Posts: 4
Joined: Fri Nov 04, 2011 8:08 am

Re: Unable to write/delete existing files/Folders

Postby fishsnjeHDA » Tue Nov 22, 2011 9:59 am

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.

Who is online

Users browsing this forum: No registered users and 7 guests