Accessing samba shares without password prompts

Beecher Rintoul akbeech at
Wed Nov 23 03:03:31 GMT 2005

On Tuesday 22 November 2005 04:08 pm, Alex Zbyslaw wrote:
> Robert Fitzpatrick wrote:
> >Can someone point me to info on how to access shares on the netowrk
> >without having to provide the password. I am logged in to my FreeBSD 6.0
> >workstation with the user name and password equal to that of a user on
> >the other samba servers and Windows.
> IIUC and AFAIK, you can't.  Unlike windows, Unix does not store your
> password when you log in (just encrypts and compares to passwd file) so
> it cannot automatically provide credentials to samba.
> You can, however, get mount_smbfs to look in a file to find your
> password, so as long as that file is protected.  See man mount_smbfs
>      -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.
> If you're going to do this you might want to use a different password
> for windows from BSD.  And make sure you protect the file, though any
> super-user will always be able to read it, if that is an issue.

Samba can be configured in security=shared mode so users can access with no 
password. You can also use this mode for a combination of no pass and 
passwords for different levels of access. You also need to setup the guest 
account in samba to use this mode.

You'll find docs and how-to's here:


Beech Rintoul - System Administrator - akbeech at
/"\   ASCII Ribbon Campaign  | NorthWind Communications
\ / - NO HTML/RTF in e-mail  | 201 East 9th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \ 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list