LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-25-2004, 02:49 PM   #1
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Rep: Reputation: 30
how to create smb link ?


I can access Windows directory from Linux and I need to edit the files in the directory. So I need access the files using shell.

I tried to create symbolic link to my desktop but get an erroe message taht
smb://MIKESHN/SharedDocs/web

How I can create some sort of link so I can edit the file?

Thanks
 
Old 03-25-2004, 02:55 PM   #2
skel
Member
 
Registered: Jan 2004
Distribution: Slackware 10 ; Gentoo ; OpenBSD 3.6
Posts: 101

Rep: Reputation: 15
mount the share

do this (as root)
Code:
mkdir /mnt/win
mount -t smbfs -o username=winuser,workgroup=domain,uid=xxx //MIKESHN/SharedDocs/web /mnt/win
where winuser is your username in windows
domain is the windows domain or workgroup
xxx is your uid
 
Old 03-25-2004, 03:00 PM   #3
skel
Member
 
Registered: Jan 2004
Distribution: Slackware 10 ; Gentoo ; OpenBSD 3.6
Posts: 101

Rep: Reputation: 15
i forgot the second part, create a symbolic link (or a desktop shortcut or whatever) to /mnt/win and then you can access it
 
Old 03-25-2004, 03:10 PM   #4
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Original Poster
Rep: Reputation: 30
Got the strange Message. The directory is Shared so no password is required to access the directory. What can be wrong?


[[email protected] mnt]# mount -t smbfs -o username=mikeshn,workgroup=Linux,uid=501 //MIKESHN/ShareDocs/web /mnt/win
Password:
13135: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid share name)
SMB connection failed
 
Old 03-25-2004, 03:14 PM   #5
skel
Member
 
Registered: Jan 2004
Distribution: Slackware 10 ; Gentoo ; OpenBSD 3.6
Posts: 101

Rep: Reputation: 15
oh..
mount it as //MIKESHN/ShareDocs

and then the web directory will be /mnt/win/web
 
Old 03-25-2004, 05:24 PM   #6
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by skel
oh..
mount it as //MIKESHN/ShareDocs

and then the web directory will be /mnt/win/web
Still have the same error message.

Don't understand what i'm doing wrong..
 
Old 03-25-2004, 06:08 PM   #7
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Original Poster
Rep: Reputation: 30
I was able to mount the directory, but how to mount C:/Inetpub :

I tried to mount like this, but get the error message.
[[email protected] mnt]# mount -t smbfs -o username=mikeshn,password=123456 //C:/Inetpub /mnt/iis
14338: Connection to C: failed
SMB connection failed
 
Old 03-25-2004, 06:41 PM   #8
skel
Member
 
Registered: Jan 2004
Distribution: Slackware 10 ; Gentoo ; OpenBSD 3.6
Posts: 101

Rep: Reputation: 15
C: is not a host on your network

here is the syntax for mounting an smb filesystem:
mount -t smbfs -o options //address/share mountpoint

where:
options are mount options (such as username, uid, etc...)
address is the address of the machine with a share (either IP or hostname)
share is the name of the share that the machine is sharing
mountpoint is a directory on your computer where you want to the filesystem to be mounted (/mnt/iis for example)

so, assuming that the iis server is on your MIKESHN computer:
go to your computer and set the C:\inetpub folder to share to be shared, and give the user mikeshn access with the password 123456

and then on your linux box do this from a commandline (as root)
Code:
mkdir /mnt/iis 
mount -t smbfs -o username=mikeshn,password=123456,uid=501 //MIKESHN/Inetpub /mnt/iis
 
Old 03-25-2004, 07:28 PM   #9
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Original Poster
Rep: Reputation: 30
Thanks.

Just some short questions.

When I reboot computer, i have to remount the partition again?

Last edited by mikeshn; 03-25-2004 at 07:34 PM.
 
Old 03-25-2004, 08:30 PM   #10
skel
Member
 
Registered: Jan 2004
Distribution: Slackware 10 ; Gentoo ; OpenBSD 3.6
Posts: 101

Rep: Reputation: 15
yes unless you put it in your fstab (/etc/fstab)

search the forums to find out how to do it
 
  


Reply


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
Create Link? How??? ~zoey~ Linux - Newbie 9 07-24-2006 04:23 PM
Create and Delete a SMB printer tripwire45 Red Hat 2 01-08-2005 08:28 PM
how to create link to an executable? Finlay Slackware 12 10-09-2004 08:19 AM
short smb question (create files) CarLost Linux - Networking 5 06-14-2004 09:58 AM
How to create a link? sharathkv Linux - Newbie 4 07-29-2003 08:33 AM

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

All times are GMT -5. The time now is 02:55 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration