smb.conf does not work on a reinstalled system

W

wizardofOz

Grünschnabel
Hi everyone!

Since I searched the internet for an answer to my problem, for three days, I
though it might be a good idea to make the question in this forum.
My Samba Server is a really simple one, only serving files. My smb.conf is
at the absolute minimum (ok, no really absolute;-)):

[global]
workgroup=Univerum
netbios name= saturn
server String= Universum/Saturn

[public]
path= /var/public
guest ok= no
read only= no

That's it. It works before. Windows XP prompts for username and password. I
used a user and a password that was valid in my linux system. I can use it to log in from the shell or per ssh. Now I
reinstalled my system. The same conf file does not work now. I have no idea
what I should do, since it worked before with nothing else more. The only
strange thing is, that Windows transformed my username to <win_pc_name>\<username> while logging in that was not the case before. My distribution is and was Gentoo.
I would be very glad for any help.


Thanks,

Danny
 
Zuletzt bearbeitet:
Did you used smbpasswd to set a valid user for you samba users ?
 
Hi.

Welcome to the UB.

Here my smb.conf:
Code:
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2005-09-13
[global]
	workgroup = SIM4000
	printcap name = cups
	cups options = raw
	map to guest = Bad User
	include = /etc/samba/dhcp.conf
	logon path = \\%L\profiles\.msprofile
	logon home = \\%L\%U\.9xprofile
	logon drive = P:
	add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
	domain logons = Yes
	domain master = Yes
	security = user
	local master = Yes
	os level = 65
	preferred master = Yes

[homes]
	comment = Home Directories
	valid users = %S
	browseable = No
	read only = No
	inherit acls = Yes

[profiles]
	comment = Network Profiles Service
	path = %H
	read only = No
	store dos attributes = Yes
	create mask = 0600
	directory mask = 0700

[users]
	comment = All users
	path = /home
	read only = No
	inherit acls = Yes
	veto files = /aquota.user/groups/shares/

[groups]
	comment = All groups
	path = /home/groups
	read only = No
	inherit acls = Yes

[printers]
	comment = All Printers
	path = /var/tmp
	printable = Yes
	create mask = 0600
	browseable = No

[print$]
	comment = Printer Drivers
	path = /var/lib/samba/drivers
	write list = @ntadmin root
	force group = ntadmin
	create mask = 0664
	directory mask = 0775

[netlogon]
	comment = Network Logon Service
	path = /var/lib/samba/netlogon
	write list = root

[/]
	path = /
	guest ok = yes
I use SuSE 10.0. For File Transfer to a XP system.

What says the Logfile from your samba?

Yours sincerely, sim4000.

PS: I'm not a great Englishspeaker / writer. :brav:
 
Thanks for your feedback.

Since I reinstalled by system I forgot that I have to run the command smbpasswd. My How-To did only metion everthing about installing and configuring samba, but not how to install users. So I assumed that all system user automaticlly are known by samba. What was not the case.

This was the only thing I had to do!

Bye until my next newbie question ;-)
Danny
 

Ähnliche Themen

NGINX bietet intern abgerufene Seiten nur zum Download an, extern geht's

Nginx als Reverse Proxy für Nextcloud und Emby

Zugriff Ubuntu 16.04. auf Freigabe 18.04. LTS nicht möglich

Email via script via Exchange Server (SASL)

Samba-Server mit Univention Corporate Server

Zurück
Oben