Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

While joining a domain from a linux machine , I give this command: net rpc join member -U Administrator. Now, the above command prompts for (Administrator) password.

Now, I wish to store the password somewhere(smb.conf OR krb5.conf) so that it does not prompts for password. Is it possible?

Note:Necessary changes to join a domain are carried out in /etc/samba/smb.conf

PS: Please do not consider any security issue with this.


share|improve this question
ACtually the command accepts password as parameter it should be given like: net rpc join member -U Administrator%password...Thanks ! – kumar Oct 20 '11 at 5:57

You should only need to join the domain once per machine, once your machine has been joined the machine account secret will be stored in a database file on your system.

share|improve this answer

I don't know if what you are asking for is possible, but if that net rpc join command doesn't accept the password as a parameter, and doesn't accept it via pipe redirection either, you can try wrapping it up in an expect script.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.