Find the answer to your Linux question:
Results 1 to 9 of 9
Okay, in my house we have a fileshare where we can put files and anybody connected to it can access it. It runs Debian, and I'm trying to mount it. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2008
    Posts
    30

    Setting up a fileshare through fstab


    Okay, in my house we have a fileshare where we can put files and anybody connected to it can access it. It runs Debian, and I'm trying to mount it.

    This is my entry for it in fstab:
    Code:
    //my.ip/fileshare /mnt/fileshare cifs user,uid=jordy,cred=/root/.cred 0 0
    /mnt/fileshare does exits, and I can mount the fileshare with the mount -a command. /root/.cred also exists and is formatted like this:
    Code:
    username=<username>
    password=<password>
    ls -lsa /root/.cred gives me this:
    Code:
    4 -rwx------ 1 root root 34 2008-12-22 13:07 /root/.cred
    I think it might be because I don't have samba client, but I'm using KDE and I really don't want to install the entire GNOME desktop so I can use samba.

    Does anybody see anything I'm missing that will make this work?

    Thanks,
    Cogitati

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    Is the shared file on a linux box or a windows box?

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Just Joined!
    Join Date
    May 2008
    Posts
    30
    Quote Originally Posted by Lazydog View Post
    Is the shared file on a linux box or a windows box?
    Well, our fileshare runs Debian, so it would be a Linux box.

  4. #4
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    OK, to share with other linux systems you need to add it to the export file.
    To share with windows you need to use SMB and set it up.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  5. #5
    Just Joined!
    Join Date
    May 2008
    Posts
    30
    Quote Originally Posted by Lazydog View Post
    OK, to share with other linux systems you need to add it to the export file.
    To share with windows you need to use SMB and set it up.
    Where is the export file? And how is it formatted?

  6. #6
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    Google is your friend. Search on 'linux export file'

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  7. #7
    Just Joined!
    Join Date
    May 2008
    Posts
    30
    Quote Originally Posted by Lazydog View Post
    Google is your friend. Search on 'linux export file'
    Google's great, but I can't find anything on it. It's all on exporting files. There isn't even any good results if I when I put quotes around 'export file'.

  8. #8
    Just Joined! cheapscotchron's Avatar
    Join Date
    Dec 2008
    Location
    swamps of jersey
    Posts
    68
    I think this is what Lazydog is referring to....

    Linux NFS Export / share directory to other UNIX / Linux computer


    CSR

  9. #9
    Just Joined!
    Join Date
    May 2008
    Posts
    30
    Quote Originally Posted by cheapscotchron View Post
    I think this is what Lazydog is referring to....

    Linux NFS Export / share directory to other UNIX / Linux computer


    CSR
    Thanks guys, but I'm trying to mount a CIFS filesystem, not an NFS one. Is there any way to do this?

    Thanks everyone for your input,
    Cogitati

Posting Permissions

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