Operating System - Linux
1832219 Members
2527 Online
110041 Solutions
New Discussion

Basic Samba Configuration

 
SOLVED
Go to solution
steven Burgess_2
Honored Contributor

Basic Samba Configuration

Hi all

I have an issue joining a samba domain from a win2k pc

I am getting the error

The account used is a computer account. Use your global user account or a local user account to access this server

On the pc I am logged into the machine as smbuser, the machine name is smbuser

On the linux server the user is defined as a local linux user (in /etc/passwd) and defined and enable in /etc/samba/smbpasswd and smbusers

my smb.conf looks like the below

# Global parameters
[global]
workgroup = R2SMBTEST
netbios name = ENGLAND4
server string = r2smb test server
interfaces = 10.100.2.0/24
encrypt passwords = Yes
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
unix password sync = Yes
log level = 3
log file = /var/log/samba/%m.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
domain admin group = @smbadmin
domain logons = Yes
os level = 65
preferred master = Yes
domain master = Yes
dns proxy = No
admin users = @smbadmin
printer admin = @smbadmin
hosts allow = 10.100.2. 10.101.2. 127. 192.168.253. 192.168.254. 10.8.128.36 10.200.2. 10.100.7.
printing = cups

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[homes]
read only = No
create mask = 0644
browseable = No

[netlogons]
path = /home/samba/netlogons
guest ok = Yes

[profiles]
path = /home/samba/profiles
read only = No
create mask = 0600
directory mask = 0700

The password for the user is the same across the system. The UID also matches

Any ideas/help appreciated

TIA

Steven

take your time and think things through
2 REPLIES 2
Ivan Ferreira
Honored Contributor
Solution

Re: Basic Samba Configuration

I don't see the add machine script option, so I must ask:

1 - Did you created the accounts required for the user and the computer (machine$)?

2 - Which user account are you using to join the computer to the SAMBA domain?

3 - Is this the first computer that you add or you currently have other computers in the domain?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
steven Burgess_2
Honored Contributor

Re: Basic Samba Configuration

Hi,

This is version

samba-2.2.7a-7.9.0

Checking through documentation, I see this.

When I added the add machine script to smb.conf I got errors when performing

add machine script = /usr/sbin/useradd -d /dev/null -g samba-clients -s /bin/false -M %u

smbpasswd -a -m machine$

I removed this and added the machine manually. This worked ok for root, I have joined the domain.

Apparently version 3 adds this automatically. Will upgrade

TIA

Steve
take your time and think things through