Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Networking
Reload this Page Mounting CIFS Share as RW
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Networking Hardware/Software related, Modems, Internet connection sharing, IPTables etc.

Reply
 
Thread Tools Display Modes
Old 06-16-2006   #1 (permalink)
joanywhere
Just Joined!
 
Join Date: Jun 2006
Posts: 6
Mounting CIFS Share as RW

Hiya all,
I have a Server and a desktop both running FC5.

The Server is running SAMBA (My windows notebook comes home and needs to play nicely sometimes ) and has a couple of shares set on it.

I have the following line in /etc/fstab on the FC5 Desktop
Code:
//192.168.1.3/data      /network/data           cifs  credentials=/jocred 0 0
which works just fine, but loads the share as read only.

if I make it look like this
Code:
//192.168.1.3/data      /network/data           cifs  rw, credentials=/jocred 0 0
I get the following error when I do a mount -a
Code:
[mntent]: line 8 in /etc/fstab is bad
I don't know quite where to go from here so any help will be appreciated.

Cheers
Jo
__________________
The only things I know about Linux make things worse
joanywhere is offline   Reply With Quote
Old 06-18-2006   #2 (permalink)
Kingedgar
Just Joined!
 
Join Date: Nov 2004
Location: Iowa
Posts: 43
Send a message via Yahoo to Kingedgar
I had to end up using uid=xxx like this

Code:
//192.168.0.15/music      /music                  cifs    credentials=/root/samba/credentials,uid=501,gid=501 0 0
This works for me across several linux versions.
__________________
Registered Linux User #372955
Kingedgar is offline   Reply With Quote
Old 06-18-2006   #3 (permalink)
joanywhere
Just Joined!
 
Join Date: Jun 2006
Posts: 6
King Edgar,
thanks for the idea.

I changed the line in my /etc/fstab to look like this
Code:
//192.168.1.3/data      /network/data           cifs    credentials=/jocred, uid=501, gid=501 0 0
and got exactly the same error message as before. The username and password specified in the credentials file is all a-ok

Next thoughts?

Cheers
Jo
__________________
The only things I know about Linux make things worse
joanywhere is offline   Reply With Quote
Old 06-18-2006   #4 (permalink)
joanywhere
Just Joined!
 
Join Date: Jun 2006
Posts: 6
OK, So I just learned something REALLYimportant!! No spaces in the comma delimited list of parameters in /etc/fstab.... (I'm sure it says it somewhere, but I'm blowed if I can see it)

So, my error has gone away, but I am still in readonly land on my CIFS share.

Next thoughts people?

Much respect
Jo
__________________
The only things I know about Linux make things worse
joanywhere is offline   Reply With Quote
Old 06-18-2006   #5 (permalink)
aimstolemylife
Linux Newbie
 
Join Date: Nov 2003
Location: Maryland
Posts: 105
Send a message via AIM to aimstolemylife Send a message via MSN to aimstolemylife
Kind of simple, but on the Windows box, have you selected "Allow users to edit files?" This laptop is the acting server, no?
aimstolemylife is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 12:16 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0