HPE GreenLake Administration
- Community Home
 - >
 - Servers and Operating Systems
 - >
 - Operating Systems
 - >
 - Operating System - Linux
 - >
 - Re: Basic Samba Configuration
 
Operating System - Linux
        1840192
        Members
    
    
        2963
        Online
    
    
        110162
        Solutions
    
Forums
        Categories
Company
Local Language
                
                  
                  back
                
        
                
        
                
        
                
        
        
        
                
        
                
        
        
        
                
        
              
              Forums
Discussions
Forums
- Data Protection and Retention
 - Entry Storage Systems
 - Legacy
 - Midrange and Enterprise Storage
 - Storage Networking
 - HPE Nimble Storage
 
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
                
                  
                  back
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
            
                
            
                
            
                
            
                
            
            
                
            
                
            
            
                
            
                
              
            Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
 - Appliance Servers
 - Alpha Servers
 - BackOffice Products
 - Internet Products
 - HPE 9000 and HPE e3000 Servers
 - Networking
 - Netservers
 - Secure OS Software for Linux
 - Server Management (Insight Manager 7)
 - Windows Server 2003
 - Operating System - Tru64 Unix
 - ProLiant Deployment and Provisioning
 - Linux-Based Community / Regional
 - Microsoft System Center Integration
 
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
        Information
        Community
Resources
Community Language
        Language
        Forums
Blogs
	
		
			
            
                
            Go to solution
        
            
		
		
			
            	
	
		
        
		
	
	
		Topic Options
			
				
					
	
			
		
	- Subscribe to RSS Feed
 - Mark Topic as New
 - Mark Topic as Read
 - Float this Topic for Current User
 - Bookmark
 - Subscribe
 - Printer Friendly Page
 
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
10-20-2005 12:51 AM
10-20-2005 12:51 AM
			
				
					
					
						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
					
				
			
			
				
	
			
				
		
			
			
			
			
			
			
		
		
		
	
	
	
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
			
			
				Solved! Go to Solution.
		2 REPLIES 2
	
	            
            
		
		
			
            
                - Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
10-20-2005 01:00 AM
10-20-2005 01:00 AM
Solution
			
				
					
					
						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?
		
		
	
	
	
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?
			
			
				
			
			
			
			
			
			
		- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
10-20-2005 01:56 AM
10-20-2005 01:56 AM
			
				
					
						
							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
		
		
	
	
	
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
			
			
				
			
			
			
			
			
			
		The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
		
	
	
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP