permissions when mounting from Ubuntu

kelso78
Posts: 2
Joined: Thu Dec 04, 2008 9:18 pm

permissions when mounting from Ubuntu

Postby kelso78 » Sat Mar 07, 2009 7:22 am

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!!

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: permissions when mounting from Ubuntu

Postby cpg » Sat Mar 07, 2009 1:39 pm

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.
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

kelso78
Posts: 2
Joined: Thu Dec 04, 2008 9:18 pm

Re: permissions when mounting from Ubuntu

Postby kelso78 » Sun Mar 08, 2009 1:26 pm

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.

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: permissions when mounting from Ubuntu

Postby cpg » Sun Mar 08, 2009 1:42 pm

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.
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

Who is online

Users browsing this forum: No registered users and 47 guests