LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Mount windows share (https://www.linuxquestions.org/questions/linux-networking-3/mount-windows-share-647379/)

nkutty 06-06-2008 04:44 AM

Mount windows share
 
hi..

i want mount windows share in fedora 8. wile mount windows share its asking password .. in this passwd i have to pass through text file how to do it or how can i mount with out entering password windows share but i have passwd in windows share



kindl help me


with regards
Kutty N

saneesh00 06-06-2008 05:43 AM

Pls try this!
 
hi,
I don't understand want you are expecting.
suppose you have added windows password in a file(eg:/etc/test.txt),you can call this file when mounting the share.
Eg;#mount -t cifs -o rw //<ipadd-win-machine>/<share-name> -o username=<username in win machine>,password=`cat /etc/test.txt` <mount point>
OR
##mount -t cifs -o rw //<ipadd-win-machine>/<share-name> -o username='<username>%`cat /etc/test.txt`' <mount point>

Just try this.

nkutty 06-08-2008 10:54 PM

yes .. i got
 
Dear,

thanks i got the solution
example = mount //192.168.1.59/share /mnt/win/ -o credentials=/root/.smbcred


All times are GMT -5. The time now is 12:41 PM.