Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


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

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


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?

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

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:28 AM
using fstab to mount windows xp shares yeateke Linux - Networking 4 03-01-2004 09:19 AM
How do I mount Windows shares as directories? paul_m_d Linux - Networking 5 01-31-2004 05:13 AM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 06:28 PM
mount windows shares? Dave Campbell Linux - Networking 7 09-01-2002 05:54 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:48 AM.

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