LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 01-21-2007, 06:51 PM   #1
MBrinkley
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?
Thanks
 
Old 01-21-2007, 07:35 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

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

Original Poster
Rep: Reputation: 0
Doh!

Users worked. Thx

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

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


Reply


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


All times are GMT -5. The time now is 02:39 PM.

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