Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-21-2007, 06:51 PM   #1
LQ Newbie
Registered: Apr 2006
Distribution: Mandriva 2006
Posts: 4

Rep: Reputation: 0
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?
Old 01-21-2007, 07:35 PM   #2
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
You could add the "users" option to that mount to allow any user to mount it.
Old 01-21-2007, 08:47 PM   #3
LQ Newbie
Registered: Apr 2006
Distribution: Mandriva 2006
Posts: 4

Original Poster
Rep: Reputation: 0

Users worked. Thx

I could have sworn I tried that before. Oh well.
Old 01-21-2007, 09:00 PM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting windows share via cifs (fstab entry) - error 13 opening credentials file O(V)eGA_l2el) Linux - Networking 2 12-05-2006 11:22 AM
Problem mounting a samba share "CIFS VFS: Send error in SETFSUnixInfo = -5" mrcoffee11 Linux - Software 1 11-07-2006 05:29 PM
mounting an smbfs share using mount vs /etc/fstab sichen Linux - Networking 4 08-13-2004 06:40 PM
Mounting Samba shares and Samba Share Login time112852 Linux - Software 1 09-14-2003 02:23 PM
fstab and samba auto network mounting! eca00cdy Linux - Newbie 3 05-14-2002 05:16 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration