cant access shares as other users

srinivaskakarala
Posts: 7
Joined: Sun Sep 04, 2011 3:53 pm

cant access shares as other users

Postby srinivaskakarala » Sun Sep 04, 2011 4:06 pm

Hi, i have created my shares. a the primary user. later i added new users. for some reason when is use the other users login i can see all my shares in the HDA but have access to none of them. where as i was able to acces the shares on the same computer when i login as me. i haved tried the work group and also tried accessing them with workgroup\username.

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

Re: cant access shares as other users

Postby radioz » Sun Sep 04, 2011 4:48 pm

I'm not sure what you are asking, but you control the permissions on your shares by going to http://hda/setup?sub=shares&tab=share and click on the share name you want to control.

When that opens up, you can change the 'permissions' to allow everyone, or just specific users to get access to that share. You can repeat this for each share to control who gets access.

srinivaskakarala
Posts: 7
Joined: Sun Sep 04, 2011 3:53 pm

Re: cant access shares as other users

Postby srinivaskakarala » Sun Sep 04, 2011 5:30 pm

sorry for the confusion, i have configured it there, i have unchecked all users, and gave read and write permissions for me and my wife(see screen shot srinivas an access where as vidya cannot). but for some reason i can read and write to the shares, but when i login as her, i can see the shares but cannot access none of them, when i double click on any of the shares i am getting an error

see sceen shot
Attachments
hda error.jpg
hda error
hda error.jpg (138.85 KiB) Viewed 5073 times
share setting.jpg
the settings i have for shares
share setting.jpg (139.23 KiB) Viewed 5073 times

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

Re: cant access shares as other users

Postby radioz » Sun Sep 04, 2011 6:19 pm

It sounds like a permissions problem somewhere.

Open up a terminal on the hda (or login using ssh) and type:
id

That should display your user id (uid) and your group id (gid). Show us the output.

Then type:

id <other username> (perhaps vidya in your case)

and show us that output. We're looking to see if each user is a member of the 'users' group (gid)

srinivaskakarala
Posts: 7
Joined: Sun Sep 04, 2011 3:53 pm

Re: cant access shares as other users

Postby srinivaskakarala » Sun Sep 04, 2011 6:51 pm

hi here is the reply
Attachments
results.jpg
here are the results
results.jpg (228.34 KiB) Viewed 5070 times

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

Re: cant access shares as other users

Postby radioz » Sun Sep 04, 2011 8:35 pm

Ok, that's fine.

In your terminal, try:

cd /var/hda/files/
ls -l

Then:
cd Movies
ls -l

These commands should show us the permissions on the Movies directory and the files in the Movies directory (you can repeat this for other directories if you want).

srinivaskakarala
Posts: 7
Joined: Sun Sep 04, 2011 3:53 pm

Re: cant access shares as other users

Postby srinivaskakarala » Mon Sep 05, 2011 6:10 am

Hi,

all my shares are on a external hard drive which is formated in ntfs. I am attaching the permissions on the folders in external hard drive. i see them as drwx------. I tried changing them a root but nothing changed. i tried chmod --R 777 Movies. but the group users have access to it and my wife is in the group

here is the screen shot
Attachments
permissions.jpg
permissions on shares
permissions.jpg (292.47 KiB) Viewed 5060 times

srinivaskakarala
Posts: 7
Joined: Sun Sep 04, 2011 3:53 pm

Re: cant access shares as other users

Postby srinivaskakarala » Mon Sep 05, 2011 7:06 am

hi,

like you said the problem seems to be the access to the hard drive. i have tried to access the hard drive through terminal as her and i coudn't access them.

is there a way i can mount the external hard drive so that all the users have access to it

thanks for all the support

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

Re: cant access shares as other users

Postby radioz » Mon Sep 05, 2011 10:20 am

Ok, the problem is that the group permissions are not being set correctly:
permissions.png
permissions.png (33.61 KiB) Viewed 5054 times
I'm not sure if you are familiar with Linux permissions, but each file or directory has permissions for the owner, the group, and others. For each of those, there are 3 bits: read permission (r), write permission (w), and execute permission (x).

The directory listing above shows that kakarala has r, w, and x permissions on the files but that members of the 'users' group and others have no permissions on the files (---, ---).

I'm not sure how that happened, but but you could fix it by enabling rwx permissions for members of the 'users' group. Open up a terminal on your hda and change directory to /var/hda/files. Use the ls command to display the directories. For each of the directories you want to allow other members of the 'users' group to access, issue the following command:

sudo chmod g+rwx <directoryname>
(this command says to enable r,w,x permissions for members of the 'users' group).

If you want to allow access to the directory and ALL of its files and subdirectories, you can do this instead:

sudo chmod -R g+rwx <directoryname>
(the -R says to do the changes recursively)

You can read about the chmod command by typing 'man chmod' in a terminal.

I hope that helps.

srinivaskakarala
Posts: 7
Joined: Sun Sep 04, 2011 3:53 pm

Re: cant access shares as other users

Postby srinivaskakarala » Mon Sep 05, 2011 1:55 pm

Thanks for the help. The problem seams to be with the way how fedora mounts the external hard drives. When i first start my HDA and before i login to the ui as any user, if i login to HDA through putty from some other machine and check the permissions of all the external hard drives it has the permissions as root only. If i login to the ui on my hda as me that i am getting pemissions and they stay even if i log out now. if i restart my hda and login as my wife than she is getting permissions to the external hard drives and now i cannot access the shares. but if leave it as root none of us is getting access. Like i mensioned earlier all my shares are on the external hard drive and i am struck. i tried chmod as root as well, it is not returning any errors but not changing the permissions as well. I will look around the internet if i can come up with a solution for this. Please let me now if you have a way to handle this kind of situtation. also see attached

Thanks
Attachments
permissions.jpg
permissions.jpg (306.21 KiB) Viewed 5050 times

Who is online

Users browsing this forum: No registered users and 18 guests