Problems with share permissions

Brimfulof
Posts: 16
Joined: Mon Dec 21, 2009 4:22 am

Problems with share permissions

Postby Brimfulof » Mon Jan 11, 2010 6:12 am

Hi,

I've been reading through a number of similar problems on here, but none seem to be quite the same as what I'm experiencing, I'd really appreciate a few things I could try.

I'm using Amahi 5 on Fedora 12. I set up two users and 2 custom shares. There seems to be a problem though that neither user is part of the 'users' group (as far as I can tell). Each user can see folders/shares the other set up, but cannot open files or save anything there. I've checked the folder permissions in Fedora and 'users' should be able to. When I change the permissions for 'Others' then everyone can access the share. Any new folders created in the share have the same permissions problem though.

First user is the one used for set up (and is admin, other isn't).
Both users have all lowercase names.
Clients have been restarted several times.
One client is Vista Home other is XP Home.
I've tried deleting the second user and setting up another user, didn't help.

Any ideas? Thanks.

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: Problems with share permissions

Postby moredruid » Mon Jan 11, 2010 6:15 am

can you check the users' groups and post it here?
you can do this by issuing the following command:

Code: Select all

id <username>
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

Brimfulof
Posts: 16
Joined: Mon Dec 21, 2009 4:22 am

Re: Problems with share permissions

Postby Brimfulof » Fri Jan 15, 2010 7:30 am

First user created was 'asher'; second was 'greg' this was deleted in Amahi and another user created 'gregs' to see if this would solve the problem.

These are the results from running id <username>

Code: Select all

uid=500(asher) gid=500(asher) groups=500(asher) uid=501(greg) gid=100(users) groups=100(users) uid=502(gregs) gid=100(users) groups=100(users)
So, I can see from this that my initial user is in a different group to the rest. Should I set up another user for myself (asher) in Amahi and then change the groups associated with the shares in Fedora?

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: Problems with share permissions

Postby moredruid » Fri Jan 15, 2010 12:40 pm

nope that should not be needed.
you could try to put yourself into the "users" group:

Code: Select all

usermod -g users asher
then the output of id should give you the primary group users.
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

Brimfulof
Posts: 16
Joined: Mon Dec 21, 2009 4:22 am

Re: Problems with share permissions

Postby Brimfulof » Mon Jan 18, 2010 9:29 am

Right, think I've got this fixed. Used

Code: Select all

usermod -g users asher
to add myself to the 'users' group.

Then found that neither Greg nor I could access any files/folders. Tried changing the folder permissions again in Fedora GUI, these appeared to change, but neither we still couldn't access files.

So, opened up another terminal and using

Code: Select all

ls -l
saw that the permissions of all the folders were for the group 'asher'. So used

Code: Select all

chgrp -R users directoryname
to change permissions on the shares. This seems to have worked.

mogwai
Posts: 10
Joined: Thu Jan 28, 2010 3:35 pm

Re: Problems with share permissions

Postby mogwai » Tue Mar 30, 2010 2:42 am

having exactly the same problem, second user account can see the shares but cannot access any of them... seems my main account was created in a user group of its own, whereas the second one was in the normal users group. going to try this fix and report back, looks like a pretty glaring flaw in amahi user management though

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

Re: Problems with share permissions

Postby bigfoot65 » Tue Mar 30, 2010 6:42 am

Hello,

Please submit a bug on this issue at http://bugs.amahi.org. This will ensure visibility is not lost and you will be notified when it is resolved.
ßîgƒσστ65
Applications Manager

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

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: Problems with share permissions

Postby gboudreau » Fri Apr 02, 2010 5:41 am

If you're sharing your own directories, i.e. if you use existing directories instead of the dashboard-created /var/hda/files/something, you might need to adjust the permissions on your files and folders.

If you want to have your shared directories & files readable & writable to other users:

Code: Select all

chown -R your_username:users /your/shared/directory find /your/shared/directory -type d -exec chmod 775 {} \; find /your/shared/directory -type f -exec chmod 664 {} \;
Example:

Code: Select all

chown -R gboudreau:users /var/hda/files/movies find /var/hda/files/movies -type d -exec chmod 775 {} \; find /var/hda/files/movies -type f -exec chmod 664 {} \;
To make those files & folders only readable to others, but not writable, replace 775 with 755, and 664 with 644 in the above commands.

Repeat for all your shared directories.
- Guillaume Boudreau

Who is online

Users browsing this forum: No registered users and 43 guests