I am connecting to a samba share using the following command../usr/bin/smbclient \\\\server78\\publicfolderIt asks me for my linux account password before it will connect.This isn't a problem if I am running it manually but how can I use this within a bash script without it asking me for the password?
Smbclient asking for password
debian;samba;smb
It should be possible to do it.From man smbclient :     -U|--user=username[%password]       Sets the SMB username or username and password.       If %password is not specified, the user will be prompted.So you could use something like :  /usr/bin/smbclient \\\\server78\\publicfolder -U=user%password