Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Map a NT share from my linux workstation?

Status
Not open for further replies.

Taldon

IS-IT--Management
Dec 11, 2002
5
US
I just installed mandrake 9.0 on my work desktop. We have an NT 4.0 fileserver where I have a drive share. How do I map to my NT share from my linux machine?

Yes, I am a noob. Just please help me.

Do I need to be root to do it?
Will I have to repeat this each time I, the user, login?


 
To use a share of an NT Server under Linux:

1. Create a Folder in the Linux PC.
2. use the mount command(smbmount).
syntax:

mount -t smbfs -o username="uname" ,password="passwd" //NT/Share /Linx/dir

Here in the syntax: username and password should be of the appropriate user of the Shared Dir/Drive in the NT Server.

//NT/Share = //"Ntservername"/"ShareName"
Eg: //Fileserver/public

/Linx/dir = Path of the new folder created in the Linux machine.

Eg: /home/user/New Folder

Well, u need to run this everytime u logon. U can automate this, But I don't know how. easiest is copy the command line into a file and run it.

If U find how to automate this, let me know.

 
try out linneighborhood if you want a point and click type of file browser that allows you to mount/map network shares.
 
not quite sure about mandrake, but in redhat this is what I do:

1. create a credentials file with these 2 lines:
username=***
password=***

replace the *** with your proper username & password. save it either in the root folder or your own home folder.

2. edit the fstab file under the /etc and append a line like this to the end:

//servername/sharename /linux/mountpoint smbfs auto,credentials=[credentials file],uid=[you user UID]

replace [credential file] with the absolute path to the credential file that you just created. e.g. if the file "john.creds" is located in the root folder then credentials=/root/john.creds

if you are the only user on your linux machine, then most likely your UID is 500.

you can have multiple lines like this to map to as many shares as you want at boot time.

if someone has a better way please let me know!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top