accessing local shares: permission denied

marno11
Posts: 3
Joined: Sat Feb 23, 2013 9:22 pm

accessing local shares: permission denied

Postby marno11 » Sat Feb 23, 2013 11:14 pm

Hi, has anyone else had a problem where they cannot access their locally mounted shares??

for example:

Code: Select all

marno11@AlphaCentauri:/$ cd /mnt/samba/Books -bash: cd: /mnt/samba/Books: Permission denied
and yet when I check permissions:

Code: Select all

marno11@AlphaCentauri:~$ sudo ls -la /mnt/samba/ total 8 drwxrwxrw- 12 root root 4096 Feb 24 14:45 . drwxr-xr-x 3 root root 4096 Jan 6 13:46 .. drwxrwx--- 1 marno11 users 0 Jan 6 12:42 Books drwxrwx--- 1 marno11 users 0 Feb 24 11:34 Docs drwxrwx--- 1 marno11 users 0 Jan 30 21:20 Pictures drwxrwx--- 1 marno11 users 0 Feb 3 21:46 UniAndLearning
however when I check permissions not using sudo: (Edited, I originally posted: "checking permissions after remounting local shares [service mount_shares_locally restart] returns:" which is incorrect)

Code: Select all

marno11@AlphaCentauri:/$ ls -la /mnt/samba/ ls: cannot access /mnt/samba/Pictures: Permission denied ls: cannot access /mnt/samba/Docs: Permission denied ls: cannot access /mnt/samba/Books: Permission denied ls: cannot access /mnt/samba/..: Permission denied ls: cannot access /mnt/samba/.: Permission denied ls: cannot access /mnt/samba/UniAndLearning: Permission denied total 0 d????????? ? ? ? ? ? . d????????? ? ? ? ? ? .. d????????? ? ? ? ? ? Books d????????? ? ? ? ? ? Docs d????????? ? ? ? ? ? Pictures d????????? ? ? ? ? ? UniAndLearning
but after rebooting, eveything looks normal, but I still cannot "cd" into the locally mounted shares:

Code: Select all

marno11@AlphaCentauri:/$ cd /mnt/samba/Books -bash: cd: /mnt/samba/Books: Permission denied
Everything is fine accessing the shares over the network, there are no problems there. Only problems when trying to manipulate files locally. Which particularly casues issues with things like the deluge deamon, not having permissions to write in those locations. Starting the deamon as root fixes the permission problem, but that's not good pratice.

So it seems like everything is setup correct, the permissions look correct. There is read, write and execute for user:marno11 and group:users.... right? but permission is denied.

I am familiar with the wiki for mounting shares locally, I have followed it many times before with sucess, and I did follow it this time as well. I havn't found anything to help with this particular problem. I have re-done all the steps to set mouting the shares locally, just to be sure, but no luck. Aditionally I cannot find anything in the greyhole wiki which I think will help me. But of-course if you think I have missed something let me know!

I haven't had this problem in the past (i.e. last year using fedora) and I havn't noticed this problem up until recently (I did a freash reinstall, this time with ubuntu server at the beginning of the year). When I say I haven't noticed, i mean this problem may have been present the whole time, I just didn't notice until now. I hope that makes sense :?

If you think it will help to post in the Greyhole topic area, I will do that soon.

I'm not too sure where to go from here, so if anyone has some advice, or experienced this problem before, any help would be appriecated.

here are some details of my system, just incase you want to know:
  • Distribution: Ubuntu - 12.04 (precise)
    Kernel: 3.2.0-29-generic
    Hostname: AlphaCentauri
    Architecture: x86_64
    greyhole, version 0.9.22, for linux-gnu (noarch)

Streat
Posts: 6
Joined: Wed Feb 13, 2013 9:21 pm

Re: accessing local shares: permission denied

Postby Streat » Tue Mar 05, 2013 10:56 am

Im a noobie but i think i may be having a similar issue, when i mount my shares locally i try to copy into the local mount and receive a permission denied unable to create folder in this destination. When i run under gksudo nautilus the locally mounted share no longer shows up. Frustrating for sure

[ Post made via iPad ] Image

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

Re: accessing local shares: permission denied

Postby bigfoot65 » Tue Mar 05, 2013 2:33 pm

Ensure you have followed the wiki guidance exactly for Greyhole.

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

In the past, some users have inadvertently forgotten the .smb_credentials​ file.

Do not blindly copy and paste from the wiki as it often adds additional hidden characters which causes issues.
ßîgƒσστ65
Applications Manager

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

Plexdhash
Posts: 11
Joined: Sat Mar 09, 2013 10:21 am

Re: accessing local shares: permission denied

Postby Plexdhash » Sat Mar 09, 2013 10:24 am

I THINK I may have had the same problem with the mount shares locally script, and I think it was solved by be changing the permission 0770 to 0777 in the mount_shares_locally file, and putting the username in both the .smb_credentials and in the mount_shares_locally files. See if that helps, if not, i will publish my versions of the scripts, which work fine.

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

Re: accessing local shares: permission denied

Postby bigfoot65 » Sun Mar 10, 2013 8:40 am

Interesting as I did not have that issue and my script shows 0770. The user name configuration is documented in the wiki instructions.
ßîgƒσστ65
Applications Manager

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

Who is online

Users browsing this forum: No registered users and 27 guests