Page 1 of 1

Unable to access share sub directories [solved]

Posted: Thu Mar 22, 2012 5:07 pm
by gromit4x4
Hi all,

I seem to be unable to access any sub directories in my share "Tv" as a user from my windows box.
I can access the share no problem, but not write to it either.

I did a search on the forrums and then performed a chmod

Code: Select all

cd /var/hda/files chmod -R 0775 Tv
which has given access to the folders but they show up as empty and I know that they are not, and I still cannot write to the share as a user

Access is set to visible
permissions for this share are set to all users and writeable

If I access the share as admin everything works fine.
What can I do to access the files?

Thanks
gromit

Re: Unable to access share sub directories

Posted: Thu Mar 22, 2012 5:17 pm
by bigfoot65
Have you checked ownership of the files? Should be owned by your first admin user (i.e. username:users).

Make sure when you apply ownership permissions, always do it recursively. You might also consider checking out the Shares Troubleshooter.

http://wiki.amahi.org/index.php/Shares_troubleshooting

Re: Unable to access share sub directories

Posted: Fri Mar 23, 2012 12:31 pm
by gromit4x4
I have checked the owners and they are gromit4x4: users gromit4x4 is the first admin with the little green sheild.

I have found that I can access and write to only one sub directory in the Tv share via my windows client as a user other than admin.
The folder is called F1
( note that I have shown only the first entry in each directory to keep the post manageable)
in terminal I see

Code: Select all

[gromit4x4@amahihda ~]$ cd /var/hda/files/Tv/F1 [gromit4x4@amahihda F1]$ ls -l total 28 lrwxrwxrwx 1 gromit4x4 users 121 Mar 22 20:40 BBC Horizon.FLV -> /var/hda/drives/drive1/gh/Tv/F1/BBC Horizon.FLV [gromit4x4@amahihda F1]$
I can access the folder Comedy but I can't see any files inside or write to it :?
In terminal I see

Code: Select all

[gromit4x4@amahihda ~]$ cd /var/hda/files/Tv/Comedy [gromit4x4@amahihda Comedy]$ ls -l total 20 lrwxrwxrwx 1 gromit4x4 users 79 Mar 22 20:40 Lee_Evans_XL_Tour_2005_Live_22-May-2006.mpg -> /var/hda/drives/drive1/gh/Tv/Comedy/Lee_Evans_XL_Tour_2005_Live_22-May-2006.mpg [gromit4x4@amahihda Comedy]$
The Tv directory looks like this:

Code: Select all

[gromit4x4@amahihda ~]$ cd /var/hda/files/Tv [gromit4x4@amahihda Tv]$ ls -l total 236 drwxrwxr-x 2 gromit4x4 users 4096 Mar 23 21:19 Comedy drwxrwxr-x 2 gromit4x4 users 4096 Mar 23 20:11 F1
The landing zone looks like this:

Code: Select all

[gromit4x4@amahihda Comedy]$ cd /var/hda/files/ [gromit4x4@amahihda files]$ ls -l total 80 drwxr-xr-x 10 root root 4096 Mar 17 17:36 gh drwxrwxr-x. 2 gromit4x4 users 16384 Feb 29 19:49 lost+found drwxrwxr-x. 6 gromit4x4 users 4096 Mar 22 20:26 movies drwxrwxr-x. 363 gromit4x4 users 20480 Mar 22 20:37 music drwxrwxr-x. 11 gromit4x4 users 4096 Mar 22 20:26 pictures drwxrwxr-x 7 gromit4x4 users 12288 Mar 23 18:55 Tv drwxrwxr-x 10 gromit4x4 users 4096 Mar 22 20:40 Videos drwxr-xr-x 3 gromit4x4 root 4096 Mar 6 21:25 web-apps [gromit4x4@amahihda files]$
Thanks for the wiki link but I have had no luck there.
Does this look normal to you?
And thanks.

Re: Unable to access share sub directories

Posted: Fri Mar 23, 2012 6:01 pm
by radioz
Are all of the other users members of the 'users' group?

On your hda, open a terminal window and type:
groups <username>

Where <username> is replaced by the username that is having problems accessing the share.

It should show something like:
joe : users

If it doesn't, then that is your problem and all you need to do is add that user to the 'users' group and you should be fine.

Hope that helps.

Re: Unable to access share sub directories

Posted: Sat Mar 24, 2012 12:58 am
by gromit4x4
[solved]
The answer is in this post: http://forums.amahi.org/viewtopic.php?f=4&t=3395

Permissions were required in the drives directory

Code: Select all

cd /var/hda/drives chmod -R 755 drive1 chmod -R 755 drive2
Thanks for all the help guys
gromit.

Re: Unable to access share sub directories [solved]

Posted: Sat Mar 24, 2012 7:19 am
by bigfoot65
This might be something good to add to the wiki on shares troubleshooting. Would you have to to add it? We would greatly appreciate it.

Re: Unable to access share sub directories [solved]

Posted: Sun Mar 25, 2012 5:16 am
by gromit4x4
I would appreciate it also, the more info like this in the wiki the better and more usable the product becomes.