philspitler
Posts: 17
Joined: Thu Apr 07, 2016 5:17 am

Permisions

Wed Apr 13, 2016 7:03 am

I finally had my SMB share working today so that my PiZero could read files from my OSX Server.

But something has stopped working.

Now when i type sudo mount - a I get a permissions error.

Code: Select all

sudo mount -a -v
mount.cifs kernel mount options: ip=192.168.1.45,unc=\\192.168.1.45\Two_Terror,iocharset=utf8,uid=1000,gid=1000,user=philspitler,pass=********
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
It was working perfectly earlier and I haven't being doing anything that would screw up the permissions.

I am a total noobie with Linux so I don't really know where to start looking.

Any ideas?

Cheers.

User avatar
MarkHaysHarris777
Posts: 1820
Joined: Mon Mar 23, 2015 7:39 am
Location: Rochester, MN
Contact: Website

Re: Permisions

Wed Apr 13, 2016 7:11 am

Your security options are probably wrong.

Use the -v switch to see if you can get some more information from the mount command... also check your log files in /var/log

What have you changed lately?
marcus
:ugeek:

philspitler
Posts: 17
Joined: Thu Apr 07, 2016 5:17 am

Re: Permisions

Wed Apr 13, 2016 4:57 pm

Thanks Marcus, the output in my original post was with the -v and it didn't really give any clues to me.

I looked in the logs but there are so many files again no read flags.

The things I have been working on were getting an SMB share to mount on the PiZero by editing the /etc/fstab file.

I think I must have screwed up my fstab file is I noticed it was missing a few lines from the top;

Code: Select all

proc            /proc           proc    defaults          0       0
/dev/mmcblk0p6  /boot           vfat    defaults          0       2
/dev/mmcblk0p7  /               ext4    defaults,noatime  0       1
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that
I added these back in and it seems to be fine now.

Any chance you could help me understand what these lines are doing?

Thanks again.

Phil

JimmyN
Posts: 1109
Joined: Wed Mar 18, 2015 7:05 pm
Location: Virginia, USA

Re: Permisions

Wed Apr 13, 2016 5:30 pm

philspitler wrote:

Code: Select all

proc            /proc           proc    defaults          0       0
/dev/mmcblk0p6  /boot           vfat    defaults          0       2
/dev/mmcblk0p7  /               ext4    defaults,noatime  0       1
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that
I added these back in and it seems to be fine now.

Any chance you could help me understand what these lines are doing?

Thanks again.

Phil
It's mounting the 6th partition on the SDCard as "/boot" (vfat filesystem).
It's mounting the 7th partition on the SCDard as "/" (ext4 filesystem).
It's creating the /proc filesystem, which is virtual (it doesn't contain "real" files, it's for runtime system information).

Return to “Troubleshooting”