Inside a corporate situation, the machines are largely controlled using Microsoft technology.
I have another server on the same network that is running Ubuntu 14.04 headless. No GUI.
I want to write a script inside the Ubuntu headless so that it can access the Windows shared drive.
I also have the username and password of a valid Windows user who can access the shared drive.
This set of credentials has been approved to be used exclusively for this Ubuntu machine.
I believe I should use smbclient to do that.
My two questions are:
- what are the commands to access a shared drive?
- how do I reset the password of the Windows user since there is a company policy of changing the password every 3 months?
Thank you.
mount
command.man mount.cifs
is the easiest, the share will become part of the Linux file system. The alternative issmbclient
a FTP like interface.