[Samba] Mounting Samba Share using linux login
Hullen at t-online.de
Wed Jun 11 13:15:00 GMT 2008
Du (d.kuntadi) meintest am 11.06.08:
>> 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%
Sorry - I've written a batch file for DOS/Windows.
Linux users should use a shell script.
There are several options to run this shell:
(is run when the user logs in)
Icon on the desktop
(must be clicked to run)
command in ~/.Xdefaults
(is run when an X session is started)
> 1. What credentials should I put in fstab?
None. "/etc/fstab" is not necessary for mounting.
And the special user share can't be mounted via the (global) "/etc/
Which linux distribution is installed on the clients? Which GUI is
installed: KDE or something else?
> 2. Do you mean the batch file is an executable plain text file
> executed during login?
That is one way.
pure shell script:
test -s $Credfile && source $Credfile || exit 1
# and now the username and the password for the shares on the
# server are known
More information about the samba