LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-10-2005, 06:11 PM   #1
exitsfunnel
Member
 
Registered: May 2003
Distribution: RedHat
Posts: 60

Rep: Reputation: 15
How to mount windows shares on startup?


Hello,

I'm running RHEL 4.0 and my wm is Gnomre. I'm able to mount windows shared drives like this:

mount -t smbfs -o username=MYDOMAIN\\myusername //SomeWindowsBox/shareddir /home/myid/mnt/SomeWindowsBox

After a bit it queries me for my password and I'm all set. I'm trying to figure out how to make this happen automatically when I boot (preferably) without storing my network password in clear text. Ideally, after I boot, a window will pop up asking me to authenticate (or cancel if I happen not to be on the network containing the shares) and then the drives will be mounted automatically. I'm sure there is a way to do this but I can't seem to find it and I'm really, really, tired of issuing that command over and over again Any thoughts?

-exits
 
Old 05-10-2005, 07:06 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
For automatic mounts, you'd have to add them to your fstab file.. or you can add them and setup autofs, when you cd into the share, it automounts it for you and then you'd probably get a prompt for the password.. though, thru the fstab mount, don't think there's a way to hide your password.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Startup script to mount windows shares? Higs Linux - Networking 1 05-30-2004 09:28 AM
using fstab to mount windows xp shares yeateke Linux - Networking 4 03-01-2004 08:19 AM
How do I mount Windows shares as directories? paul_m_d Linux - Networking 5 01-31-2004 04:13 AM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 05:28 PM
mount windows shares? Dave Campbell Linux - Networking 7 09-01-2002 04:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:54 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