Find the answer to your Linux question:
Results 1 to 4 of 4
Hi.. I am new to linux and know some basics, no proper knowledge of servers. I want to know is that how can i access my companies "fileserver" from linux ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2011
    Location
    Kharar, Punjab, India
    Posts
    2

    How to access Windows file server from linux


    Hi.. I am new to linux and know some basics, no proper knowledge of servers. I want to know is that how can i access my companies "fileserver" from linux (gui as well as from cmd line). This file server i can access easily from windows machine but i don't know how to open/access file server from linux machine.... please help.... If can tell what tools are needed and also but is the process from command line.
    File server is windows server and my machines is Redhat linux.......

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,356
    hi,

    Personally I prefer to mount shares via autofs.
    To do this, you need the autofs package and the userland tools including mount.cifs.
    On a redhat 5, it is part of the package "samba-client", on fedora it would be "cifs-utils"

    In /etc/auto.master
    Code:
    /mnt/cifs /etc/auto.cifs
    And then in /etc/auto.cifs
    Code:
    <LOCAL_CIFS_DIRECTORY>	-fstype=cifs,credentials=<PATH_TO_YOUR_CREDENTIALS_FILE>,uid=<YOUR_UID>,gid=<YOUR_GID>,file_mode=0660,dir_mode=0770	://<CIFS_SERVER>/<CIFS>/

    You can of course also put the mount parameters in /etc/fstab, but I prefer to only have the cifs mounted, if I really need them.

    Yet another way would be to mount it manually.
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    May 2011
    Location
    Kharar, Punjab, India
    Posts
    2
    Thanks for your reply, but i am unable to understand what is it. Do know any other way to do this process. It is too confusing for me, sorry for that but if you can tell me other method or parameters then it will be greatfull

  4. #4
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,356
    As a first approach, try this as root:
    Code:
    yum install samba-client
    mkdir -p /mnt/cifs/myshare
    mount -t cifs -o workgroup=<DOMAIN>,username=<YOUR_AD_USER> <IP_OF_WINDOWSSERVER>/<CIFS_NAME>  /mnt/cifs/myshare/
    You need to replace these placeholders to reflect your environment:
    - <DOMAIN>
    - <YOUR_AD_USER>
    - <IP_OF_WINDOWSSERVER>
    - <CIFS_NAME>
    You must always face the curtain with a bow.

Posting Permissions

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