How to access Windows file share

Asked by Dalek Dude

I am new to Linux.
I have set a up a new Ubuntu 9.10 Server and want to know how to access (mount) a Windows file share on the local network from the command line on the Linux server.
I have a number of files and packages I need to copy accross to the local Linux server from a Share on a Windows Vista PC.
I have tried following a number of posts online but have not been able to find commands that work on Ubuntu 9.10.
I am either referring to incorrect syntax for my Linux version or have missing applications. If I have missing applications I have no idea what I need to install.
Could someone please advise or point me to docuemntation to do this for Ubuntu Server 9.10 that has a full step by step guide to achieve this?
Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu samba Edit question
Assignee:
No assignee Edit question
Solved by:
Wyatt Smith
Solved:
Last query:
Last reply:
Revision history for this message
ronnie_libra (ronnie-libra) said :
#1

i,m also poor in knowledge bout linux command line so i suggest that u install X (GUI) on your server and configure it with samba..i think it is posible to install X in server...Good luck

Revision history for this message
Best Wyatt Smith (wyatt-smith) said :
#2

The following packages may be useful
sudo apt-get install samba smbfs smbclient

Edit you /etc/hosts file and add an entry specifying the hostname and IP Address the windows machine that has the share. This file must be edited with superuser privileges, so
gksu gedit /etc/hosts

Create a mountpoint and set permission
sudo mkdir /media/mountpoint
sudo chown $USER /media/mountpoint

Mount from command line
sudo mount -t cifs //hostname/share /media/mountpoint -o rw,uid=1000,username=usrname,password=passwrd

For more help type
man mount.cifs

Hope this helps

Revision history for this message
Dalek Dude (dalekdude) said :
#3

Thanks Wyatt Smith, that solved my question.