Bug #494

smb shares not working with multiple users

Added by mogwai over 12 years ago. Updated over 12 years ago.

Target version:
Start date:
Due date:
% Done:



Only the first user created in amahi is able to access the server shares via smb. tried on various platforms ubuntu/mac osx/win7/winxp pro and all have the same issue, they can see the network shares but are unable to access them. it seems to be a permissions issue. The first user is added to their own group, all subsequent users are added to the standard 'user' group... this has been discussed on the forums here...

it's proving a huge pain for me, my flatmate and I both need to access the shares and currently only I can browse them. the suggested tricks on the forum thread above haven't helped for my amahi server. I have reinstalled amahi from scratch twice now to try and work around this, the user-management with vanilla Fedora12_64 works perfectly


#1 Updated by gboudreau over 12 years ago

Try this, and report the URL you receive:

ls -la /var/hda/files/ | fpaste

Did you install a secondary hard-disk, and are you using that for your shares?

If so, please execute this command too:

cat /etc/fstab | fpaste

#2 Updated by mogwai over 12 years ago

ls -la /var/hda/files/ | fpaste -
cat /etc/fstab | fpaste -

The OS is on the primary IDE drive, all media is on the secondary drive (a software raid5 array 4 x 1.5TB). The shares have been mapped to directories on the raid array using the shares creator in the amahi webgui. /media/Data/Videos for example instead of the usual local hda files directories

#3 Updated by gboudreau over 12 years ago

How is your software array mounted? I don't see it in your fstab file.

What I need to see is the permissions on your shared directories, and how they are mounted.

This should show me your shares permissions:
ls -la /media/Data/ | fpaste

#4 Updated by gboudreau over 12 years ago

Note that this isn't an Amahi problem.
Since you create and mount your shared directories yourself, you'll need to also make sure the permissions on those directories are what you need them to be (775, or maybe 755).
If you create share directories using the Amahi Dashboard, instead of specifying your already existing directories, Amahi will take care of permissions, but it won't change the permissions of existing directories.

#5 Updated by mogwai over 12 years ago

heh, i've edited a share out as it's a touch private, but here are the rest...

drwx------ 1 amahi users 0 2010-03-30 19:15 Backups
drwx------ 1 amahi users 4096 2010-03-30 19:14 Music
drwx------ 1 amahi users 0 2010-03-27 18:28 Photos
drwx------ 1 amahi users 0 2010-03-02 11:53 Software
drwx------ 1 amahi users 0 2010-03-02 15:16 .Trash-500
drwx------ 1 amahi users 4096 2010-03-10 13:02 Unsorted
drwx------ 1 amahi users 4096 2010-03-24 14:58 Video

I appreciate that this isn't going to affect the bulk of users as they will be happy to use the default shares amahi sets up. There must be a fair few users out there though with pre-existing file structures though who want to retain them.

#6 Updated by gboudreau over 12 years ago

  • Status changed from New to Feedback

You just need to change the permission on you shared directories to make them available to other users.
If you want to make files writable by other users, use 775 and 664 in the commands below.
If you want other users to be able to read, but not write files, use 755 and 644 in the commands below.

find /media/Data -type d -exec chmod 775 {} \;
find /media/Data -type f -exec chmod 664 {} \;

Those command find, in /media/Data, all directories (type d) or files (type f), and for each dir/file found, it executes a chmod command to make the dir/file readable by others.

Also available in: Atom