Page 1 of 1

permissions when mounting from Ubuntu

Posted: Sat Mar 07, 2009 7:22 am
by kelso78
I have followed the instructions on http://wiki.amahi.org/index.php/SharingToLinux using the "Permanent Mount" method. The shares have mounted successfully and I can see all my files.

I have a permissions problem though. When I try to edit or delete a file, I am told I do not have the permissions necessary to perform the task.

"You do not have the permissions necessary to save the file."

This happened to me once before, when I set this all up on my laptop. cpg helped me but I don't remember what we did to make it work. I tried the following on the hda:
chown 500.100 /var/hda/files/docs
chown 500.100 /var/hda/files/pictures
chown 500.100 /var/hda/files/music
chown 500.100 /var/hda/files/movies
chown 500.100 /var/hda/files/books

But it did not solve the issue. Any ideas?
thanks!!

Re: permissions when mounting from Ubuntu

Posted: Sat Mar 07, 2009 1:39 pm
by cpg
i would chown the files to your user and the group 'users'.

say, if your user is "foo",

chown -R foo:users file1 file2 file3 ...

and the permissions should be 775 for directories and 664 for files.

all amahi-created users should belong to group "users" so, that should work.

Re: permissions when mounting from Ubuntu

Posted: Sun Mar 08, 2009 1:26 pm
by kelso78
cpg, thanks for your help. Pleases excuse me for my lack of linux knowledge but when you say
chown -R foo:users file1 file2 file3 ...
are you saying that I will need to list each file in place of "file1 file2 file3"? I have thousands of files so that would be impractical. Maybe I am misunderstanding what you are saying. I will check each of the permissions as well to make sure they are 775 for directories and 664 for files.

Re: permissions when mounting from Ubuntu

Posted: Sun Mar 08, 2009 1:42 pm
by cpg
the -R will do it recursively, so you could do it like this:

chown -R foo:users .

and it will be done for the current folder and everything in it.

there is a -R option for chmod too. you have to be careful not to put 644 on directories, because then you cannot traverse them.

man chmod or look for tutorials for chmod.