Linux samba server for MS clients
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 1 of 1

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2009
    Posts
    435
    Linux (Fedora) Firefox 65.0

    Linux samba server for MS clients

    From the Linux side - install samba (most of the commands here require sudo inf front)
    dnf install samba
    or if you like
    dnf install samba samba-common samba-common-tools samba-libs samba-python
    Now to make it all work you need to configure /etc/samba/smb.conf
    a) change the workgroup line to something you want
    I found other recommended changes from the net were already the defaults
    b) decide on who is going to access samba and how
    - for the purposes of this write-up, I will use "user1" as a private user
    "group1" as an artificial Linux user with shared samba access for a group of samba users
    i.e. there will be a user1 and group1 Linux user (group1 does not have to be able to login)
    SO - create the two samba users and give them passwords (what you need to login using samba)
    SO - create the two samba users and give them passwords (what you need to login using samba)
    in samba.conf (I made a sub-directory in each Linux account to leave other things private)
    N.B. - user1 will be in the group smbusers so has access to both areas
    Changes to smb.conf file
    [group1]
    path = /home/group1/exports
    valid users = @smbusers
    browseable = yes
    read only = no
    create mask = 0750

    [user1]
    path = /home/user1/exports
    valid users = user1
    browseable = yes
    read only = no
    create mask = 0750

    smbpasswd -a user1
    smbpasswd -a group1

    to change the passwords, simply omit the "-a" later
    c) make an entry in the /etc/group file (I used vi, but there are better ways)
    - I made the group name smbgroup and the groupid 999 (change as you like)
    smbgroup:x:999:user1,group1
    d) now to get the whole thing cooking - here are the Fedora root commands (sudo if you like)
    systemctl enable smb nmb
    firewall-cmd --add-service=samba --permanent
    firewall-cmd --reload
    systemctl start smb nmb
    setsebool -P samba_enable_home_dirs on


    --- if you need to change the config file, restart with the below
    systemctl restart smb

    https://docs.fedoraproject.org/en-US...ers/index.html


    From the MS side, the user needs to do five things to mount Samba areas.
    a) turn on network discovery (after this you should be able to see the computer by name)
    b) make sure you have the samba client service configured
    c) make sure you have configured your MS workgroup to match the server configuration workgroup
    d) map the samba network drive --- permanently is easier (unless you like to do each time)
    e) mapping the server areas - using the above exports (user1 and group1) here are the two alternative ways to do
    - one using the server name (if that does not work, use the IP)
    \\sambaserver\user1
    OR if you cannot “see” the server's – use the fixed IP address (I used the other export in my example)
    \\192.168.2.3\group1

    You will be prompted for your Samba userid and password.
    The Samba userid will be the same as the Linux userid, but the passwords could be the same or different.

    https://www.hiroom2.com/2016/06/26/f...th-windows-10/
    Last edited by rholme; 11th February 2019 at 05:50 PM.

Similar Threads

  1. [SOLVED]
    fedora samba server & MS clients
    By rholme in forum Servers & Networking
    Replies: 5
    Last Post: 29th January 2019, 01:15 AM
  2. Replies: 1
    Last Post: 19th February 2010, 02:34 AM
  3. samba share setup on linux clients
    By jbkt23 in forum Servers & Networking
    Replies: 5
    Last Post: 26th January 2009, 01:00 AM
  4. SAMBA - An Anonymous FC2 Server for XP Clients
    By JonR in forum Guides & Solutions (Not For Questions)
    Replies: 5
    Last Post: 5th July 2006, 02:16 AM
  5. Printer Server (Cups+Samba) in FC3 for windows clients
    By mpaiva in forum Guides & Solutions (Not For Questions)
    Replies: 0
    Last Post: 23rd May 2005, 05:58 PM

Posting Permissions

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