LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problem mounting samba share with fstab (https://www.linuxquestions.org/questions/linux-software-2/problem-mounting-samba-share-with-fstab-521530/)

MBrinkley 01-21-2007 06:51 PM

Problem mounting samba share with fstab
 
Ok, I'm running Mandriva 2006 on a laptop and I am trying mount a networked pc using samba.

My fstab entry:
//pc1/C /mnt/pc1c smbfs credentials=/etc/samba/auth.pc1.joeuser,defaults 0 0

When I plug in my laptop using a wired Ethernet connection everything works fine. I log in and /mnt/pc1c has the files from my networked pc.

However, since this is laptop I need this to work with with my wireless connection. So when I log in with just a wireless connection /mnt/pc1c is not mounted. As I understand it, the wireless connection is not setup before fstab is executed.
Ok, so now I try:
mount //pc1/C but I get "only root can do that"
if a change to su and try mount //pc1/C it works fine with no problems.

I checked the password file /etc/samba/auth.pc1.joeuser and I have rwx rights.

I didn't post this on the wireless forum because I didn't think it is a wireless issue per se.

Any suggestions?
Thanks

Matir 01-21-2007 07:35 PM

You could add the "users" option to that mount to allow any user to mount it.

MBrinkley 01-21-2007 08:47 PM

Doh!

Users worked. Thx

I could have sworn I tried that before. Oh well.

jschiwal 01-21-2007 09:00 PM

Offering the windows C: drive as a service is not a good idea. It would be better just offering up shares for your data so another infected doesn't have access to system files.


All times are GMT -5. The time now is 11:40 PM.