LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   use username/password in fstab (https://www.linuxquestions.org/questions/linux-networking-3/use-username-password-in-fstab-225279/)

jhill 09-01-2004 10:44 AM

use username/password in fstab
 
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

acid_kewpie 09-01-2004 04:06 PM

using samba to connect linux and linux is a poor use of most things involved. you have NFS at your service, so you really should be using it. you can map all of your remote shares on boot, and the permissions that will get preserved perfectly over NFS (unlike samba) and have th same access posibilities as a local home directory. You might also want to look into NIS to keep all passwords and everything actually on the server... might be over kill.


All times are GMT -5. The time now is 09:51 PM.