![]() |
A bash script that hits "ENTER"?
Hi,
smbclient -L <ip address> prompts for a password or you can just hit "ENTER" to list the available shared files and printers. I am writing a script to do it automatically. However, when I execute the script I am still prompted for a password. How can I get the script to automatically hit "ENTER". OR Is it possible to have smbclient access a credentials file for user name and password? |
Sounds like you want the -N option http://us1.samba.org/samba/docs/man/...bclient.1.html
|
Yea! That did it.
Quote:
edit This was what I was looking for. I think it is a better option to use the smb username and password in a credential file with 400 permission. Code:
smbclient -L <ip address> -A /path/to/credential/file Code:
username = <value> |
All times are GMT -5. The time now is 07:30 PM. |