Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Delete configuration Samba

  1. #1

    Default Delete configuration Samba

    Hi,

    I have tried to set up Samba on my new installation and I almost had it. I made some tweaks in the configuration, and suddenly the shares were gone on my Windows machines. I did something I can't remember. Is it a way to delete the configuration so I can start a new with setting up Samba? I even got a message in dolphin saying it could not connect to smb localhost.

    Dag R

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    24,234
    Blog Entries
    1

    Default Re: Delete configuration Samba

    Quote Originally Posted by dagring View Post
    Hi,

    I have tried to set up Samba on my new installation and I almost had it. I made some tweaks in the configuration, and suddenly the shares were gone on my Windows machines. I did something I can't remember. Is it a way to delete the configuration so I can start a new with setting up Samba?
    The smb.conf file is the pertinent config file for samba.

    I even got a message in dolphin saying it could not connect to smb localhost.

    Dag R
    Check
    Code:
    sudo systemctl status smb
    Any errors?
    Last edited by deano_ferrari; 11-Sep-2022 at 15:47.
    openSUSE Leap 15.4; KDE Plasma 5

  3. #3
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    24,234
    Blog Entries
    1

    Default Re: Delete configuration Samba

    BTW, what does testparm report?
    Code:
    testparm -s
    openSUSE Leap 15.4; KDE Plasma 5

  4. #4

    Default Re: Delete configuration Samba

    testparm -s

    HTML Code:
    dagr@opensuse22:~> testparm -s 
    Load smb config files from /etc/samba/smb.conf 
    Loaded services file OK. 
    Weak crypto is allowed 
    
    Server role: ROLE_STANDALONE 
    
    # Global parameters 
    [global] 
            logon drive = P: 
            logon home = \\%L\%U\.9xprofile 
            logon path = \\%L\profiles\.msprofile 
            map to guest = Bad User 
            printcap name = cups 
            usershare allow guests = Yes 
            usershare max shares = 100 
            wins support = Yes 
            idmap config * : backend = tdb 
            cups options = raw 
    
    
    [homes] 
            comment = Home Directories 
            inherit acls = Yes 
            read only = No 
            valid users = %S %D%w%S 
    
    
    [profiles] 
            comment = Network Profiles Service 
            create mask = 0600 
            directory mask = 0700 
            path = %H 
            read only = No 
    
    
    [users] 
            comment = All users 
            guest ok = Yes 
            inherit acls = Yes 
            path = /home 
            read only = No 
            veto files = /aquota.user/groups/shares/ 
    
    
    [groups] 
            comment = All groups 
            inherit acls = Yes 
            path = /home/groups 
            read only = No 
    
    
    [Nedlastinger] 
            guest ok = Yes 
            inherit acls = Yes 
            path = /home/dagr/Nedlastinger 
            read only = No 
    
    
    [Plysh] 
            guest ok = Yes 
            inherit acls = Yes 
            path = /home/dagr/Plysh 
            read only = No
    

  5. #5

    Default Re: Delete configuration Samba

    systemctl status smb:

    HTML Code:
    systemctl status smb 
    ● smb.service - Samba SMB Daemon 
         Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled) 
         Active: active (running) since Sun 2022-09-11 21:48:23 CEST; 18h ago 
           Docs: man:smbd(8) 
                 man:samba(7) 
                 man:smb.conf(5) 
        Process: 5880 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (code=exited, status=0/SUCCESS) 
       Main PID: 5889 (smbd) 
         Status: "smbd: ready to serve connections..." 
          Tasks: 4 (limit: 4915) 
         CGroup: /system.slice/smb.service 
                 ├─ 5889 /usr/sbin/smbd --foreground --no-process-group 
                 ├─ 5891 /usr/sbin/smbd --foreground --no-process-group 
                 ├─ 5892 /usr/sbin/smbd --foreground --no-process-group 
                 └─ 5893 /usr/lib64/samba/samba-bgqd --ready-signal-fd=47 --parent-watch-fd=13 --debuglevel=0 -F
    

  6. #6
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    24,234
    Blog Entries
    1

    Default Re: Delete configuration Samba

    Quote Originally Posted by dagring View Post
    I made some tweaks in the configuration, and suddenly the shares were gone on my Windows machines. I did something I can't remember.
    Dag R
    When you say the shares were gone, do you actually mean you can't discover the shares automatically? Or that when you try to access them by a file manager you are denied access?

    It should be as simple as navigating to them with "\\<IP address or hostname>\<share>"
    openSUSE Leap 15.4; KDE Plasma 5

  7. #7

    Default Re: Delete configuration Samba

    The shares on my windows machine does not appear and when I tries to take them up in Dolphin (network shares) on the Opensuse server it says:

    Code:
    Klarte ikke kople til vert for smb://opensuse22.local/ No shared folders found.
    The first part is in Norwegian and means: cannot connect to (host) local shares. I must have done something wrong here.

    Dag R

  8. #8
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    24,234
    Blog Entries
    1

    Default Re: Delete configuration Samba

    Quote Originally Posted by dagring View Post
    The shares on my windows machine does not appear and when I tries to take them up in Dolphin (network shares) on the Opensuse server it says:

    Code:
    Klarte ikke kople til vert for smb://opensuse22.local/ No shared folders found.
    The first part is in Norwegian and means: cannot connect to (host) local shares. I must have done something wrong here.

    Dag R
    On the server check
    Code:
    smbclient -L localhost
    I expect that to show the shares without any issue.

    Also, regarding the Avahi hostname "opensuse22.local"...

    On the openSUSE host itself, check
    Code:
    avahi-resolve-host-name opensuse22.local
    Can you ping that successfully from the Windows machine?
    Code:
    ping opensuse22.local
    If you use the actual IP address in the Windows file manager, does it work ok?
    Last edited by deano_ferrari; 13-Sep-2022 at 01:17.
    openSUSE Leap 15.4; KDE Plasma 5

  9. #9

    Default Re: Delete configuration Samba

    Quote Originally Posted by deano_ferrari View Post
    On the server check
    Code:
    smbclient -L localhost
    I expect that to show the shares without any issue.

    Code:
    smbclient -L localhost 
    Password for [WORKGROUP\dagr]: 
    
            Sharename       Type      Comment 
            ---------       ----      ------- 
            homes           Disk      Home Directories 
            profiles        Disk      Network Profiles Service 
            users           Disk      All users 
            groups          Disk      All groups 
            Nedlastinger    Disk       
            Plysh           Disk       
            IPC$            IPC       IPC Service (Samba 4.15.8-git.527.8d0c05d313e150400.3.14.1-SUSE-oS15.0-x86_64) 
            dagr            Disk      Home Directories 
    SMB1 disabled -- no workgroup available
    Also, regarding the Avahi hostname "opensuse22.local"...

    On the openSUSE host itself, check
    Code:
    avahi-resolve-host-name opensuse22.local
    Code:
    avahi-resolve-host-name opensuse22.local
    opensuse22.local        127.0.0.1
    Can you ping that successfully from the Windows machine?
    Code:
    ping opensuse22.local
    I can ping opensuse22.local in Powershell.

    If you use the actual IP address in the Windows file manager, does it work ok?

    It does not work
    All the tests you made me do works but the ip adress in the file manager.

    Dag R

  10. #10
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    24,234
    Blog Entries
    1

    Default Re: Delete configuration Samba

    Quote Originally Posted by dagring View Post
    All the tests you made me do works but the ip adress in the file manager.

    Dag R
    Ok. Next thing to check is your openSUSE firewall.

    Code:
    firewall-cmd --list-all
    openSUSE Leap 15.4; KDE Plasma 5

Page 1 of 3 123 LastLast

Posting Permissions

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