Today I had a bad surprise, at one customer, deploying Linux on desktop, they had some issues with samba shares access: no more shortcuts in places menu for the samba shares. This was due to the update of ubuntu from gusty to hardy.
The problem is that now nautilus 2.22 is provided and this release use gvfs instead of gnome-vfs.
Before that upgrade we decided to add some "share access" via gconf, this was perfect as it was added in /etc/profile.
example :
gconftool-2 --set --type=string /desktop/gnome/connected_servers/1/display_name 'public on samba'
gconftool-2 --set --type=string /desktop/gnome/connected_servers/1/icon 'gnome-fs-smb'
gconftool-2 --set --type=string /desktop/gnome/connected_servers/1/uri "smb://domain;$USERNAME@samba/public"
This is not more possibe :'-(
Ok let's try then to use bookmarks... but the problem is that the login is not used even if forced when the share is also public. The customer use a big public folder and acl's.
So the only solution I had was to setup the share with
public = no
to make it works and request a login and password.
For massive desktop implementation, I preferred the gconf medthod. Maybe somebody could hack gvfs to force a user even on a public share.