I run a Samba file server that has both windows and linux clients.
The windows clients are set up so that the logon username and password is the same as the username and password for the samba account. This means the samba shares are accessible straight away without need for a further logon.
Is it possible to do this in Linux?
I am successfully mounting the samba shares on boot up having modified the fstab.
e.g.
Code:
//172.16.0.2/folder /mnt/folder smbfs username=name,password=pass 1 2
This works fine if I were the only user on the linux machine but if another user were to log on I would only want them to be able to access their shares.
Also I don't like having my password visible in the fstab.
Is there a way of mounting drives when a user logs in? And if so is there a variable that takes their username and password as values? That way I could replicate the windows functionality where just logging on is sufficent to mount the shares.
Thanks