May 03, 2024, 01:29:13 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Not able to add the machine_name$ to samba server  (Read 3267 times)

Offline johnbritto

  • Linux Noob !
  • *
  • Posts: 15
Not able to add the machine_name$ to samba server
« on: April 27, 2006, 10:40:23 AM »
Dear All,

I am having a problem in my Samba Server, not able to add the machine_name$ to my server.

Showing Error " useradd : invalid user name 'machine_name$'

In smb.conf file i add this line " add user script /usr/sbin /useradd -d /dev/null -g 100 -s /bin/false -M %u .

Imploring help from ur side. To add my Clinets "Windows XP & 2000 Machines" under my samba domain .

Thanks & Regards
M.John Britto

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Not able to add the machine_name$ to samba server
« Reply #1 on: April 27, 2006, 03:35:48 PM »
Hi

Don't add that line in smb.conf file...., Just add the users like this

means suppose your machine name is node-3 having some ipaddress like 192.168.224.135,means u can ping the machine using its name:) like..

#ping node-3

64 bytes from server (192.168.224.135): icmp_seq=0 ttl=64 time=0.028 ms
64 bytes from server (192.168.224.135): icmp_seq=1 ttl=64 time=0.036 ms
64 bytes from server (192.168.224.135): icmp_seq=2 ttl=64 time=0.036 ms


In above case ur machine name is node-3

So add the machine account like this

Give these commands from ur samba server

#adduser -g machines  -d /dev/null -s /bin/false -n node-3$

Then you need to add that entry to smbpasswd, assuming you have a suitable path to the smbpasswd programme, do this :

smbpasswd -a -m node-3$

 { Before doing all above steps , be sure that  node-3 or any machine name u want to add  must have valid ip-address means its properly resolved to ip-address)


If u wana add more machines accounts  like node-4,node-5, repeat that command:

#adduser -g machines  -d /dev/null -s /bin/false -n node-4$
#smbpasswd -a -m node-4$
#adduser -g machines -d /dev/null -s /bin/false -n node-5$
#smbpasswd -a -m node-5$

So u can add as many machines to this ...., the purpose of this is that ..they are machine trust accounts..means u can add only these machines to your domain not all............, by seeing this only ur samba server recognize that only  these added machines are authorize to join the domain .

Cheers
Gaurav

Offline johnbritto

  • Linux Noob !
  • *
  • Posts: 15
Not able to add the machine_name$ to samba server
« Reply #2 on: April 28, 2006, 09:16:56 PM »
Hi Gaurav,

Thanks for ur Replay ..but im using RHEL AS 4.0 .In 4.0 has a bug which dosent allow machine accounts to be added to a Samba Domin.

Pls give me any tips to add the machine account in RHEL 4.0

Thanks & Regards
John Britto

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Not able to add the machine_name$ to samba server
« Reply #3 on: April 29, 2006, 03:15:38 AM »
ok

Sorry, I have no idea  about "adding machine accounts to RHEL", as i did it in RED HAT 8, RED HAT 9,Fedora,SUSE 9.1,SUSE 9.2

Have u tried the above things which i said already.., It may be possible that the machine-name u want to add doesn't exists on  the network thats why giving that type of error....,
and if u are saying that there is BUG inn RHEL , have u just searched for that on google or REDHAT SITE, or u tried it on your end?????


Means the error u wrote above may be coz of invalid machine-name on the Network...



May be RICKY knows about this BUG...... in  RHEL......


My suggetion is to  try it once again..If still that error comes...then we will see why this type of error comes.......................


Gaurav

Offline johnbritto

  • Linux Noob !
  • *
  • Posts: 15
Not able to add the machine_name$ to samba server
« Reply #4 on: April 30, 2006, 06:36:46 PM »
OK Gaurav.


Ok i will try once and getback U

Thanks & Regards
M.John Britto