I went through this on another server using Ubuntu 14.04 LTS a few years ago and thought that I could set up my new server similarly. Boy was I wrong!
I installed Ubuntu Server and then Desktop 22.04 LTS on a server re-build using a hardware RAID 5 storage solution. I was able to get the server up and operating except for the sharing portion.
Here is the output of Testparm of the Smb.conf file.
Code:
testparm
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Weak crypto is allowed
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
# Global parameters
[global]
bind interfaces only = Yes
client max protocol = SMB3
client min protocol = SMB2
interfaces = lo eno1
log file = /var/log/samba/log.%m
logging = file
map to guest = Bad User
max log size = 1000
obey pam restrictions = Yes
pam password change = Yes
panic action = /usr/share/samba/panic-action %d
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
passwd program = /usr/bin/passwd %u
security = USER
server role = standalone server
server string = %h server (Samba, Ubuntu)
smb ports = 445
unix password sync = Yes
usershare allow guests = Yes
wins support = Yes
idmap config * : backend = tdb
[printers]
browseable = No
comment = All Printers
create mask = 0700
path = /var/spool/samba
printable = Yes
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[Public]
comment = Public Directory
force create mode = 0777
force directory mode = 0777
guest ok = Yes
guest only = Yes
path = /home/serveradmin/shared/public
read only = No
[Data]
comment = Data Directory
force create mode = 0777
force directory mode = 0777
guest ok = Yes
guest only = Yes
path = /home/serveradmin/shared/data
read only = No
Here is the output of netusershare:
Code:
net usershare info --long
[Public]
path=/home/serveradmin/Shared/Public
comment=
usershare_acl=Everyone:F,
guest_ok=y
[Data]
path=/home/serveradmin/Shared/Data
comment=
usershare_acl=Everyone:F,
guest_ok=y
I'm still able to ping this server from my windows laptop so I know that it can be seen...not sure what else I should be trying/installing?
Oh, by the way, I also installed WSDD and Avahi-Daemon.
TheArchitect
Bookmarks