LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-02-2003, 11:36 AM   #1
enjoyzj
LQ Newbie
 
Registered: Nov 2003
Posts: 29

Rep: Reputation: 15
how to access samba server?


Hi all, I am using mandrake 9.2 and redhat 9. I wish to access my department server which is solaris unix with samba server. I am quite a newbie and don't know what to do. Do I also need to install samba? Thanks in advance!
 
Old 12-02-2003, 12:02 PM   #2
gerrit_daniels
Member
 
Registered: Oct 2003
Location: Belgium
Distribution: Kubuntu
Posts: 34

Rep: Reputation: 15
Hi,

You will need to install the samba client software. Mandrake also has an easy gui to configure samba (configure your computer -> mount points). Don't know about red hat.

Hope this helps.
 
Old 12-02-2003, 12:35 PM   #3
rlkiddjr
Member
 
Registered: Feb 2002
Distribution: FreeBSD 4.9
Posts: 69

Rep: Reputation: 15
From a shell:

mount -t smbfs //server/share /yourmountdirectory -o username=???,password=???

You will need to be a superuser to do this.

Hope this helps
 
Old 12-02-2003, 12:48 PM   #4
enjoyzj
LQ Newbie
 
Registered: Nov 2003
Posts: 29

Original Poster
Rep: Reputation: 15
Hi gerrit_daniels, thank you for your reply. But after I chose the server I need from the searched list, what shall I do then?

I wish to create a shortcut for my folder on the server. Cheers!
 
Old 12-02-2003, 12:52 PM   #5
enjoyzj
LQ Newbie
 
Registered: Nov 2003
Posts: 29

Original Poster
Rep: Reputation: 15
Hi rlkiddjr, thank you for your help. But when I try your command, it did not work. The system showed me some information how to use mount. I think I've typed it right. I wish to create a shortcut to my folder on the server and directly access it via graphic interface. Thanks!
 
Old 12-02-2003, 04:14 PM   #6
t3___
Member
 
Registered: Sep 2003
Posts: 240

Rep: Reputation: 30
Dood, to effectively install, configure, and use samba you are going to have to do some reading. This is not MS networking where you right click and select sharing.... its not going to be one or two steps. I would suggest you do research on the following items to understand the process.

1. download and install samba

2. set samba to start automatically on startup

3. create samba shares AND samba users on the unix box

4. decide on some sort of name resolution method - hosts file, wins, dns, etc. make sure that name resolution

5. decide on a method of connecting the windowz clients to the linux box ( gui mapping with \\computername\sharname, net use command in loging script, etc)


Good Luck
 
Old 12-03-2003, 06:21 AM   #7
Charlie Spencer
Member
 
Registered: Nov 2003
Location: South Carolina, USA
Distribution: Fedora Core 5
Posts: 106

Rep: Reputation: 15
T3, I'm not sure about your fifth step. Enjoyzj is attempting to connect his Linux box to a Unix server. He's not trying to connect Windows boxes to his Linux.

Enjoyzh, if you're only interested in accessing the Unix server, not giving others access to your Linux machine, then T3's first step is all you need on your box, and all you need on it is the Samba client.

If there are other Linux users connecting to the Unix server, T3's steps 2, 3, and 4 may already be done. Do you have control over the Unix server, or is it managed by someone else? If not, then you or whoever manages the server will have to do them.
 
Old 12-03-2003, 10:51 AM   #8
t3___
Member
 
Registered: Sep 2003
Posts: 240

Rep: Reputation: 30
my sincerest apologies.... I was working on multiple post and somehow got confused... ooops... sorry for any confusion!
 
Old 12-07-2003, 05:55 PM   #9
enjoyzj
LQ Newbie
 
Registered: Nov 2003
Posts: 29

Original Poster
Rep: Reputation: 15
Thank you all. After I installed samba, and the command given by rlkiddjr works! Charlie you are right, I am just attempting to access a unix server managed by someone else.

Another question arise then: How can I get automatically mount to the unix server every time I log in the system? Which file shall I modify? In what format? Thanks a lot!
 
Old 12-08-2003, 01:15 PM   #10
german
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Debian etch, Gentoo
Posts: 312

Rep: Reputation: 30
add this to /etc/fstab:

//server/share /mount/point smbfs username=???,password=???,uid=you,gid=yourgroup,rw 0 0

everything should be on one line, then you will have permission to write to that folder without being root as well (because of the uid= and gid= part).

HTH

B.
 
Old 12-08-2003, 06:39 PM   #11
enjoyzj
LQ Newbie
 
Registered: Nov 2003
Posts: 29

Original Poster
Rep: Reputation: 15
Thanks, but when I modify like that, I can't login using my username (root is OK, but it seems the server in still not mounted), saying something like problems with setting up interprocess communications and network connections...
My network connection is fine, and when I delete those I added, everything becomes as usual. Oh, my god!
 
Old 02-20-2004, 09:19 AM   #12
jasontn
Member
 
Registered: Feb 2004
Location: Malaysia
Distribution: Fedora Core 2
Posts: 60

Rep: Reputation: 15
mount -t smbfs //jason/c /mnt/jasonC -o username=jason,password=foo

from the terminal works fine but failed when I try to mount Disk Management with the following fstab entry

//jason/c /mnt/jasonC smbfs username=,password=foo rw 0 0

Where did i go wrong?

TIA

Last edited by jasontn; 02-23-2004 at 08:13 AM.
 
Old 02-23-2004, 09:39 AM   #13
jasontn
Member
 
Registered: Feb 2004
Location: Malaysia
Distribution: Fedora Core 2
Posts: 60

Rep: Reputation: 15
Could someone please help?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Want to access samba-server from two subnets by name. pingu Linux - Networking 2 11-21-2005 02:28 AM
Ubuntu Server with Samba, Windows PC's cant access server! elliotfuller Linux - Networking 1 09-10-2005 06:40 AM
Can't access Samba server honghebox Linux - Newbie 2 09-01-2005 08:17 PM
Cannot access Samba server from Windows digiplaya Linux - Networking 7 12-29-2003 12:32 AM
Cannot access Samba Server ZhiYi Linux - Networking 3 03-06-2003 11:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:01 PM.

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