LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 11-19-2004, 09:48 PM   #1
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
question about smbmnt/smbmount


i am trying to get my head around the arguments for smbmnt and smbmount for my RH9 laptop to connect to my winXP share.

without any arguements i can get it to work if i use the same user name on both my RH and XP box, but my main user on RH is a different name. i want to mount to that user.

http://netadmintools.com/html/8smbmount.man.html

read that and tried to get a command that would alow me to add the user name ONLY so i would be prompted for the password still, but could not get it to work.

without the arguments here is how i can mount it if i am loged in as the same user name on my RH box as my XP share.

smbmount //192.168.2.100/Movies /home/ray/tmp

i need/want to be able to add the

username=

arguement to that line, but every time i tried i got a could not find the share error.

some help please. FYI i do not want to send the p/w with the smbmount i do want to be prompted for it, or is this NOT secure, and should i go though the hassel of creating the file that contains the information? id rather not if i dont have to yet. someday, but not atm.
 
Old 11-20-2004, 01:05 AM   #2
tutwabee
Member
 
Registered: Jan 2004
Location: California
Distribution: Ubuntu 10.04
Posts: 145

Rep: Reputation: 15
If you use the mount command with type smbfs it accomplishes the same thing. The mount command would look like this:
Quote:
mount -t smbfs -o username=ray,password=pass //192.168.2.100/Movies /home/ray/tmp
edit:
I didn't realize you didn't want the password shown on the command line. I'm not sure how you would accomplish this except by making a perl script that prompts the user for password and username (with invisible character captures) and then executes the command from that. I've actually made a perl script that captures characters without them shown on the screen if you want it.

Last edited by tutwabee; 11-20-2004 at 01:07 AM.
 
Old 11-20-2004, 10:33 AM   #3
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
nice, also found what i was missing:

Code:
smbmount //server/share /path/to/mount/point -o username=user
worked perfectly to get me a prompt password and then mounted exactly what i wanted to access.

just for my FYI, what does the -t smbfs do?
 
Old 11-20-2004, 10:24 PM   #4
tutwabee
Member
 
Registered: Jan 2004
Location: California
Distribution: Ubuntu 10.04
Posts: 145

Rep: Reputation: 15
-t smbfs makes the mount command use type samba filesystem.
 
Old 11-20-2004, 10:41 PM   #5
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
ahh kewl. thanks.
 
Old 11-21-2004, 12:00 PM   #6
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Putting your username and password in /etc/fstab is a rather insecure way to go about it if you have multiple users. Others can access the fstab file and get your password information. SMB has an easy way to make it more secure.

Create a small text file in your home directory called ".credentials" and put the following two lines in it:

username=myname
password=mypassword

Change the file permissions so that it's read-only and inaccessable to other users.

Then, in fstab, replace the username and password arguments with "credentials=/home/myname/.credentials". Now, whenever you call up smbmount, it will fetch your password info from that file instead, and nobody else will be able to see them.
 
Old 11-21-2004, 01:11 PM   #7
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
ahh nice.

qusetion for you. when the system prompts for a p/w is that encrypted or plane text going between the 2 systems?
 
Old 11-23-2004, 01:16 AM   #8
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Sorry, that I don't know exactly. I think it depends on the specifics of the systems being networked. I know there's a setting in samba for encrypted passwords, but I'm not sure exactly what that entails. I'm just a simple user myself who recently managed to get his two computers talking to each other.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
smbmount question cjorli Linux - Newbie 5 04-13-2005 02:45 PM
Samba: smbmount question johnnyr Linux - Software 2 04-13-2004 11:33 AM
smbmount problem / question hildog Linux - Networking 8 10-12-2003 05:17 PM
smbmount question tyler_durden Linux - General 3 12-27-2001 12:50 AM
what is the diffrence between smbmount and smbmnt,Please answer me!Thanks! whepin Linux - Networking 1 12-20-2001 12:34 PM

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

All times are GMT -5. The time now is 01:06 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