0

I have a network folder in my LAN, I have installed smbclient to access it with the command

smbclient //xxx.xxx.xxx.xxx/share_folder --user=share/user%password

I can access it. But how can I store the password to don't have to type it ?

edit: correction

1 Answer 1

1

quoting from man smbclient

-A|--authentication-file=filename

This option allows you to specify a file from which to read the username and password used in the connection.

The format of the file is:

username = value

password = value

domain = value

Make certain that the permissions on the file restrict access from unwanted users.

link to the man

for example:

smbclient --authentication-file=~/.smbcredentials_sharename //xxx.xxx.xxx.xxx/share_folder

1
  • ok, I saw that but, I ask if smbclient has its own password save process may be encripted Commented Mar 29 at 16:33

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.