Results 1 to 7 of 7

Thread: Can't access samba folder

  1. #1
    Join Date
    Jan 2014
    Beans
    16

    Can't access samba folder

    Hello,
    I have an Ubuntu 20.02 LTS server, and I followed the ubuntu tutorial on setting up a Samba server. I am unable to 'see' the server from my other Kubuntu and Win10 machine - kinda lost as to what to do next.
    Code:
    /etc/samba$ systemctl status smbd 
     smbd.service - Samba SMB Daemon 
         Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled) 
         Active: active (running) since Sun 2021-06-20 13:44:17 IST; 2h 58min ago 
           Docs: man:smbd(8) 
                 man:samba(7) 
                 man:smb.conf(5) 
        Process: 97316 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (code=exited, status=0/SUCCESS) 
       Main PID: 97335 (smbd) 
         Status: "smbd: ready to serve connections..." 
          Tasks: 4 (limit: 18914) 
         Memory: 13.3M 
         CGroup: /system.slice/smbd.service 
                 ├─97335 /usr/sbin/smbd --foreground --no-process-group 
                 ├─97337 /usr/sbin/smbd --foreground --no-process-group 
                 ├─97338 /usr/sbin/smbd --foreground --no-process-group 
                 └─97339 /usr/sbin/smbd --foreground --no-process-group 
    
    Jun 20 13:44:17 daystrom systemd[1]: Starting Samba SMB Daemon... 
    Jun 20 13:44:17 daystrom smbd[97335]: [2021/06/20 13:44:17.445204,  0] ../../lib/util/become_daemon.c:135(daemon_ready)
    Jun 20 13:44:17 daystrom smbd[97335]:   daemon_ready: daemon 'smbd' finished starting up and ready to serve connections
    Jun 20 13:44:17 daystrom systemd[1]: Started Samba SMB Daemon.
    
    
    

  2. #2
    Join Date
    Sep 2009
    Location
    Oregon
    Beans
    159
    Distro
    Kubuntu Development Release

    Re: Can't access samba folder

    If you're not running a DE, this might not be everything you need, but it may help. What are the permissions for your shared folders on the server? You can find out by running:
    Code:
    ls -l /path/to/the/folder/you're/trying/to/share
    I'm running Plasma dekstop, and if I choose to share a folder through Properties, it doesn't work until I
    Code:
    sudo chmod -R 777 /path/to/folder/I/want/to/share
    then reboot.

    I only allow a specific list of MAC addresses on my network, so I'm not too careful about folder permissions. I want anyone allowed on the network to access those locations.
    You may need to reboot all machines on the network before they realize each other are there.
    Oh, Linux... if only I had known.

  3. #3
    Join Date
    Dec 2009
    Beans
    6,556

    Re: Can't access samba folder

    I don't understand the question.

    Please provide the output of the following command so the folks here can see how you are set up:
    Code:
    testparm -s
    Also, you might want to provide a link to the HowTo you used to set this up.

  4. #4
    Join Date
    Jan 2014
    Beans
    16

    Re: Can't access samba folder

    Quote Originally Posted by Morbius1 View Post
    I don't understand the question.

    Please provide the output of the following command so the folks here can see how you are set up:
    Code:
    testparm -s
    Also, you might want to provide a link to the HowTo you used to set this up.
    Output is:
    Code:
    $ testparm -s 
    Load smb config files from /etc/samba/smb.conf 
    Loaded services file OK. 
    Server role: ROLE_STANDALONE 
    
    # Global parameters 
    [global] 
            map to guest = Bad User 
            name resolve order = bcast host 
            security = USER 
            server string = File Server 
            idmap config * : backend = tdb 
            include = /etc/samba/shares.conf 
    
    
    [Public Files] 
            create mask = 0664 
            directory mask = 0775 
            force create mode = 0664 
            force directory mode = 0775 
            force group = smbgroup 
            force user = smbuser 
            guest ok = Yes 
            path = /share/public_files 
            read only = No 
    
    
    [Protected Files] 
            create mask = 0664 
            directory mask = 0775 
            force create mode = 0664 
            force directory mode = 0775 
            force group = smbgroup 
            force user = smbuser 
            guest ok = Yes 
            path = /share/private_files
    
    Sorry it was not clear, my problem is : as far as I can tell I have set everything up correctly, but when I search for the samba folders on my network computers I never find anything (via Win10 network, via Dolphin KDE samba pointing to the correct IP)

  5. #5
    Join Date
    Dec 2009
    Beans
    6,556

    Re: Can't access samba folder

    Please don't put spaces in the name of things in Linux.

    Run this command to find your exact host name on the Ubuntu server:
    Code:
    hostname
    In dolphin ask for the server by that name - with a .local attached at the end - and it's share explicitly:
    Code:
    smb://ubuntu-server-hostname.local/public files
    In explorer in Win10 do the same thing - with it's syntax:
    Code:
    \\ubuntu-server-hostname.local\public files
    Do you not get access to the share?

  6. #6
    Join Date
    Dec 2009
    Beans
    6,556

    Re: Can't access samba folder

    Are you running Ubuntu Server? Or are you running Ubuntu desktop as a server?

    If you are running Ubuntu Server you need to install avahi for the previous post to work:
    Code:
    sudo apt install avahi-daemon

  7. #7
    Join Date
    Jan 2014
    Beans
    16

    Re: Can't access samba folder

    Quote Originally Posted by Morbius1 View Post
    Please don't put spaces in the name of things in Linux.

    Run this command to find your exact host name on the Ubuntu server:
    Code:
    hostname
    In dolphin ask for the server by that name - with a .local attached at the end - and it's share explicitly:
    Code:
    smb://ubuntu-server-hostname.local/public files
    In explorer in Win10 do the same thing - with it's syntax:
    Code:
    \\ubuntu-server-hostname.local\public files
    Do you not get access to the share?

    Wow, just worked! I had tried in Dolphin using the folder icon thing and nothing. Thank you!

Bookmarks

Posting Permissions

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