Ubuntu – Fstab mount smbfs share for user noauto asking for password via GUI

cifsfstabgui

I'm trying to do a connection for my work computers d: from my laptop.
Altough to have direct access to the disk I need to use the computers administrator account. And I would not like to save the password for the administrator account in fstab file on my laptop.

# work share
//172.16.8.2/d$         /home/user/domain/d   smbfs username=administrator,domain=domain,user,rw,noauto  0  0

This is how it looks in the terminal

$ mount ~/npn/d
Password: 

And I get the thing mounted in no time.

Now to the trouble: If I try to "click" the d "drive" in the file browser I'm met by this error box:

Unable to mount d
Password: mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Logic, because the graphical interface can't throw me a password login promt like the terminal.

Is there any way for me to solve this problem, to just be able to "click" on the unmounted d drive and get a GUI passpromt thrown?

Best Answer

bodhi.zazen: I believe you are being asked the SAMBA password

Yes it's the samba password that is being asked for in the terminal. There doesn't seem to be a good solution to bringing a GUI popup to enter the SAMBA password. And since I don't want to save the password in either credential file, fstab or individual autofs files. I will live with it as it is and start a terminal and write:

mount ~/npn/d

and then enter the SAMBA password in the terminal.

Related Question