mount_smbfs without password

Status
Not open for further replies.

janisi

Cadet
Joined
Dec 18, 2011
Messages
3
Hello,
I would like mount mount_smbfs remote time capsule without password and write nsmb.conf host username and password when execute bash script.
mount_smbfs //user@host/share /mnt/backups/share
But after system reboots nsmb.conf file is overwritten in previews old state and without my new settings.
 

janisi

Cadet
Joined
Dec 18, 2011
Messages
3
who has reads user manual when you didn't have problem :D

The problem was using in this case mount_smbfs without -N

mount_smbfs //user@host/share /mnt/backups/share

-N Do not ask for a password. At run time, mount_smbfs reads the
~/.nsmbrc file for additional configuration parameters and a
password. If no password is found, mount_smbfs prompts for it.
In my case password was stored .nsmbrc file.
Probably not the safest way store plain text password for remote source but as it is in the root account I did not care.
 
Status
Not open for further replies.
Top