LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-19-2003, 09:39 AM   #1
disinformation
Member
 
Registered: Sep 2003
Location: Wakefield, UK
Distribution: Slackware, Debian
Posts: 38

Rep: Reputation: 15
Mounting Samba Shares via console (Newbie)


Hi all,

im having trouble getting mandrake to mount my samba shares through the console, here is what i have tried

(the NT share is \\server1\newhome on domain swhschool.local)

mount -t smbfs -o username=administrator, password=mypw \\server1 \newhome

also;

mount -t smbfs -o domain. swhschool.local username=administrator, password=mypw \\server1 \newhome

its just tells me it cannot resolve the \\NewHome mount point (its definitely there, so im guessing its a syntax error)

any help would be appreciated

Last edited by disinformation; 09-19-2003 at 09:51 AM.
 
Old 09-19-2003, 11:37 AM   #2
Sohni
Member
 
Registered: Sep 2003
Location: Planet Earth
Distribution: SuSE Linux 9.0
Posts: 83

Rep: Reputation: 15
It seems to me, you have syntax error.

Try

mount -t smbfs -o username=YOURUSER,password=YOURPASSWORD //YOURSERVER/SHARE /newhome

Linux makes difference between uppercase and lowercase so newhome and NewHome are not the same
 
Old 09-19-2003, 02:50 PM   #3
downslj
LQ Newbie
 
Registered: Sep 2003
Posts: 1

Rep: Reputation: 0
Below are some examples that may help:

NOTE: The password is enclosed in single quotes since it has a embedded $ sign.

smbclient //ldowns/share -U mydomain/ldowns%'my$passwrd'

or

smbclient //ldowns/WebTest -U mydomain/ldowns

-- you will have to manually enter the password

or

Create user.info with:

username = ldowns
password = my$passwrd
domain = mydomain

and use:

smbclient //ldowns/WebTest -A user.info



or to do a normal mount

as root

mount -t smbfs -o username=ldowns,password='my$passwrd' //ldowns/share /home/downslj/mountdir

as normal user

smbmount //ldowns/WebTest mountdir/ -o credentials=user.info

smbmount //tutor1/migrate mountdir/ -o credentials=user.info

smbmount //tutor1/Convert mountdir/ -o credentials=user.info,fmask=666

smbmount //gph-fascor/D mountdir/ -o credentials=user.info,fmask=666

smbmount //ldowns/share mountdir/ -o credentials=user.info,fmask=666

smbmount //ldowns/share mountdir/ -o username=ldowns/mydomain%'my$passwrd',fmask=666

NOTE: The hostname must resolve. I tried using the IP address but it didn't work. I added the hostname to /etc/hosts and it worked!!
 
Old 09-20-2003, 08:01 AM   #4
disinformation
Member
 
Registered: Sep 2003
Location: Wakefield, UK
Distribution: Slackware, Debian
Posts: 38

Original Poster
Rep: Reputation: 15
thanks for that, unfortunately i am not back at work till monday to try it (my god what am i saying!!!!!)

lol
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting Samba Shares ad user hobz Linux - Software 1 06-17-2005 10:10 PM
mounting shares with samba darkleaf Linux - Software 1 02-13-2005 06:13 AM
Mounting windows shares using samba. TheDirtyPenguin Linux - Software 1 07-05-2004 08:49 AM
Mounting Samba Shares w/ Solaris linux_pioneer Linux - Software 5 11-09-2003 12:59 AM
Mounting Samba shares and Samba Share Login time112852 Linux - Software 1 09-14-2003 02:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 02:16 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
Open Source Consulting | Domain Registration