LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-01-2004, 10:44 AM   #1
jhill
LQ Newbie
 
Registered: Jul 2004
Location: Cheshire, UK
Distribution: SuSE 9.0
Posts: 6

Rep: Reputation: 0
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
 
Old 09-01-2004, 04:06 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
username and password no go bmd Linux - Newbie 7 04-06-2005 08:26 PM
username/password sailu_mvn Programming 5 12-21-2004 03:21 AM
UserName and Password luis8460 Red Hat 0 07-08-2004 04:45 AM
Username and Password dance2die Arch 3 09-01-2003 03:32 PM
No username and password Tec1 Linux - Software 1 08-10-2003 09:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration