Tuesday, October 18, 2011

Enable access to domain SMB shares from Nautilus (gvfd) in Ubuntu 11.10 Oneiric Ocelot

While running Ubuntu 10.10 on my main desktop I was able to access SMB shares within our Windows domain easily with no setup tweaks.

Recently I tried just released Ubuntu 11.10 and got stuck in situation when Nautilus asked me for credentials upon attempt to open "smb://share/folder", I entered my user name, domain name and password, but immediately on pressing "OK" button I got right the same window to enter password.

Next step I tried was "smbclient" run in terminal.

 $ smbclient -k //sp-filer/public  
 kerberos_get_default_realm_from_ccache: failed to get default principal  
 session setup failed: NT_STATUS_MORE_PROCESSING_REQUIRED  
 did you forget to run kinit?  


 $ smbclient //sp-filer/public  
 Enter abrodkin's password:  
 session setup failed: NT_STATUS_MORE_PROCESSING_REQUIRED  
 did you forget to run kinit?  


 $ kinit  
 The program 'kinit' can be found in the following packages:  
  * krb5-user  
  * heimdal-clients  
 Try: sudo apt-get install <selected package>  


So I installed "krb5-user" package which in turn has "krb5-config" as a dependency.
During "krb5-config" setup I entered our domain server address into prompt.


 $ kinit  
 Password for user@DOMAIN.SERVER.COM:  


And right after this I got both smbclient and Nautilus working like a charm.

Note: It's important to use ALL CAPITALS in domain realm name!

No comments:

Post a Comment