Find the answer to your Linux question:
Results 1 to 5 of 5
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    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

  2. #2
    Just Joined!
    Join Date
    Nov 2004
    Location
    Iowa
    Posts
    43
    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.

  3. #3
    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

  4. #4
    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

  5. #5
    Linux Newbie
    Join Date
    Nov 2003
    Location
    Maryland
    Posts
    105
    Kind of simple, but on the Windows box, have you selected "Allow users to edit files?" This laptop is the acting server, no?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •