Unable to access share sub directories [solved]

gromit4x4
Posts: 12
Joined: Wed Feb 29, 2012 3:33 pm

Unable to access share sub directories [solved]

Postby gromit4x4 » Thu Mar 22, 2012 5:07 pm

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
Last edited by gromit4x4 on Sat Mar 24, 2012 12:59 am, edited 1 time in total.

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

Re: Unable to access share sub directories

Postby bigfoot65 » Thu Mar 22, 2012 5:17 pm

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
ßîgƒσστ65
Applications Manager

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

gromit4x4
Posts: 12
Joined: Wed Feb 29, 2012 3:33 pm

Re: Unable to access share sub directories

Postby gromit4x4 » Fri Mar 23, 2012 12:31 pm

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.

User avatar
radioz
Posts: 406
Joined: Tue Nov 24, 2009 1:07 pm

Re: Unable to access share sub directories

Postby radioz » Fri Mar 23, 2012 6:01 pm

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.

gromit4x4
Posts: 12
Joined: Wed Feb 29, 2012 3:33 pm

Re: Unable to access share sub directories

Postby gromit4x4 » Sat Mar 24, 2012 12:58 am

[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.

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

Re: Unable to access share sub directories [solved]

Postby bigfoot65 » Sat Mar 24, 2012 7:19 am

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.
ßîgƒσστ65
Applications Manager

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

gromit4x4
Posts: 12
Joined: Wed Feb 29, 2012 3:33 pm

Re: Unable to access share sub directories [solved]

Postby gromit4x4 » Sun Mar 25, 2012 5:16 am

I would appreciate it also, the more info like this in the wiki the better and more usable the product becomes.

Who is online

Users browsing this forum: No registered users and 63 guests