Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-09-2011, 04:14 AM   #1
Registered: Sep 2003
Posts: 209

Rep: Reputation: 32
How to mount network drive (user & password protected)

Hello all,

How to mount network drive (user & password protected)

I tried below:

mount // /tmp -U root -p myroot

returns: argument to -p or --pass-fd must be a number

thanks & regards

Old 02-09-2011, 05:26 AM   #2
LQ Newbie
Registered: Nov 2003
Location: Geneva
Distribution: suse
Posts: 17

Rep: Reputation: 1
mounting a network drive

Hello !

you probably have a syntax problem.

my LAN is a linux PC connected with a windows PC (fixed address IPADDRESS)
I have installed samba-common (already done by default with ubuntu)

for me this works:

USERNAME with your username that is the for witch you have shared the drive
PASSWORD for the password for witch you have shared the drive
UID with your username
GID with your group name
IPADDRESS with the fixed IPADDRESS of the distant computer or it's name if you put the correspondence in /etc/resolv.conf

mount  -o uid=UID,gid=GID,username=USERNAME,password=PASSWORD //IPADDRESS/D$ /mnt/test

hope it will help
1 members found this post helpful.
Old 02-09-2011, 07:22 PM   #3
Registered: Sep 2003
Posts: 209

Original Poster
Rep: Reputation: 32
Thanks, it works!


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] My hard drive is password protected and i have no access Chickenchaser Linux - Hardware 8 12-31-2010 12:05 PM
Password protected network... spaceballs Linux - Wireless Networking 3 01-11-2008 06:36 PM
Password protected network... spaceballs Slackware 2 01-09-2008 01:43 AM
Can a portable Hard drive be password protected? izquierdista Linux - Hardware 1 09-02-2005 09:52 AM
HELP! Error from mount: drive is write-protected... won't mount writeable. system Linux - General 2 12-27-2001 09:08 PM

All times are GMT -5. The time now is 02:26 PM.

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