[Samba] Mounting Samba Share using linux login

Helmut Hullen Hullen at t-online.de
Wed Jun 11 10:55:00 GMT 2008


Hallo, David,

Du (d.kuntadi) meintest am 11.06.08:

> Windows users are able to mount samba share using windows. But for
> linux user, we need to create credentials file, to mount samba share
> e.g:

> //servername/file_store /home/user/Desktop/file_storage smbfs
> credentials=/root/.smbcredentials

> Is it possible to change the credentials to something like windows
> users (for example credentials=unix user) so as the mounted share
> would depend on who login the linux box?

You can make your own credential file as a batch file:

        @echo off
        rem my special batch file
        set specialusername=abc
        set specialpassword=topsecret

call this batch file within the logon batch file
and then use %specialusername% and %specialpassword%

Viele Gruesse!
Helmut


More information about the samba mailing list