Find the answer to your Linux question:
Results 1 to 4 of 4
Hi all. I have recently mapped a windows server drive to my linux server to be used as a file manager. I have seen I need to create an entry ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2013
    Posts
    6

    Fstab file


    Hi all.

    I have recently mapped a windows server drive to my linux server to be used as a file manager.

    I have seen I need to create an entry into the FSTAB file to ensure it reconnects on reboot.

    First off is this correct? and if so can anyone please help with what this should look like?

    Many thanks in advance.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,755
    You would mount the Windows shares with the CIFS (Common Internet File System) type, which is the current version of SMB/Samba to connect Linux systems to Windows file systems. Yes, you would add the file system to /etc/fstab, but only if you want EVERYONE to have access. The type is cifs, and you would put the userid and password to mount the file system in the options field of fstab. Read the mount and mount.cifs man pages for more details. Also, individual users can mount cifs file systems with the "mount -t cifs ..." on local directories of their own, so they can get access to their own Windows files stored on the server.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Oct 2013
    Posts
    6
    Hi thanks for the reply.

    I used the method

    mount -t smbfs -o username=winntuser,password=mypassword //windowsserver/sharename /mnt/win Obviously replaced with my server details and passwords.

    Is this wrong?

    I can currently see the files on the file system.

    I will require each person to only be able to see there own file directory on the server. Not all of the files. They are students and I wish to allow them to view there own work from home.

    Many thanks.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,755
    These days, use "-t cifs" instead of "-t smbfs". The smbfs is an older SMB standard - CIFS is preferred these days.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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