Click to See Complete Forum and Search --> : Mounting a NT share from Linux


infotech
11-09-2001, 11:50 AM
This may not be very interesting or impressive, but I had a hard time finding info on basic stuff like this.
First I created a dir in my Home directory as a mount point, I well call it share here. I went into properties - permissions tab - and made sure I was owner, then selected the Set UID check box (not 100% sure it was necessary). Then as root

1.Open fstab located in /etc
2.on a new line use this syntax
//servername/sharename /home/user/share smbfs username=domainuser,password=password,uid=username ,rw

The uid sets the owner of files and folders on the mount point, and the rw allows read And write access. Save the work, and log out of KDE. When you log back in, one new icon that look like a drive will be on the desktop that is a shortcut to the mount point. The share will automaticaly be mounted at startup. Not a very interesting thing, but very neccesary for domain users. Couldn't have done it without help from forums and MAN pages in Linux.

[ 09 November 2001: Message edited by: infotech ]

Kerey
11-09-2001, 08:56 PM
Is there a way to do this without putting the password in plaintext?

Icarus
11-09-2001, 09:21 PM
The way I do this at work, with me having to logon to the network just to be assigned the DHCP, is this shorter more obfuscated password method :)

smbclient -t //<server>/<directory>

then it asks for your password and will not even display the cursor movement...much more secure. If you need, put your user name in there at the end.

infotech
11-12-2001, 12:39 PM
there is an option to (credentials=filename) that lets you specify a file name with your username and password. Syntax is:

username=domainusername
password=domainpassword

You can then protect this file.