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 possbile 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? This is important as I want to let user change their own password, and keeping .smbcredentials in user's home directory would be insecure. But to keep the .smbcredentials at root would mean to give user admin rights in order to change password file. Regards, David
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
On Wed, Jun 11, 2008 at 5:55 PM, Helmut Hullen <Hullen@t-online.de> wrote:> > 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%Hi Helmut, Thank you very much for your reply. But could you elaborate further as I could not understand how to do it: 1. What credentials should I put in fstab? 2. Do you mean the batch file is an executable plain text file executed during login? Regards, David