Tuesday, July 24, 2012

Sharing using SAMBA on fedora 17

  1. Install SAMBA in fedora 17:
    • $ sudo yum install system-config-samba samba-client samba-common samba system-config-samba system-config-users
  2. Set SElinux permissions:
    • $ sudo yum install policycoreutils-gui
    • in gnome go to Administration > SELinux Management and check (set) the following booleans
      • Allow qemu to share any file/directory read/write
      • Allow samba to share users home diectory 
      • Allow samba to export ntfs/fusersfs volumes
  3. Configure Firewall :
    • check the samba box in System > Administration > Firewall
  4. Configure SAMBA:
    1. Adding users:
      •  Go to System > Administration > Samba > Preferences > Samba Users > Add User
      •  Then to edit the Samba share that was created earlier, click on the share then > File > Properties > Access > Give access to users or choose to give access to everybody.
    2. Sharing user's HOME directory:Here is configuration file /etc/samba/smb.conf
      (NOTE: make changes in above file look as bellow and do not change other options, leave other settings as it is)

      ########## PART of smb.conf file #############
      #=======Global Settings=======
      [global] 
      workgroup = WORKGROUP
      server string = YOURSERVER
      netbios name = YOURSERVER
      interfaces = eth0 192.168.92.3/24
      # ----------------------- Standalone Server Options -------------------
      security = user
      #------------------------ Name Resolution -------------------------------
      wins support = yes
      #========= Share Definitions ===========
      [homes]
          comment = Home Directories
      ;   browseable = yes
          writable = yes
          valid users = %S

      [your_share]
          path = /path/to/your_share
          read only = no
          browseable = no
          valid users = username
      #######################################
       
    5.  Accessing share:
    • Access users HOME sharing:

      In windows go to Run> \\YOURSERVER\samba_username

      Enter your username and password of samba user.
    • Auto mount as Network drive:
      Right-click on computer>Map network drive

      choose Drive from drop down (e.g. L:)

      At Folder enter \\YOURSERVER\samba_username to access home directory share or enter \\YOURSERVER\your_share to access shared directory.

0 comments:

Post a Comment